New PWA site metadata error

New Contributor

When trying to use the PowerBi data pack for PWA I received the following error:

OData: The feed's metadata document appears to be invalid. Error

I then  tried to verify if the metadata for the PWA site was actually good, but when I entered the URL [//https://<My Site>/<PWA>/_api/ProjectData/$metadata] it doesn't return any information and gives the following error message:

An IEdmModel instance was found that failed validation

Anybody knows what is the problem and how I can fix it?

4 Replies
best response confirmed by mhugo (New Contributor)

Hello @mhugo ,

As the metadata is view is failing it could be a configuration issue - potentially a duplicate property as described here:

Do you know which endpoint is failing in the Power BI report pack?




I am using a workflow to create a project in project server 2013. This seems like a fairly common operation, but I need to set a few pieces of information when I create the project that are not available in the constructor.

Process Outline

for my own purposes I am using Chrome app DHC for creating these requests.

I use headers:

  Accept:       application/json;odata=verbose
  Content-Type: application/json;odata=verbose
  1. get the Context (X-RequestDigest):

    dev1projects/PWA/_api/contextinfo [POST empty body]
  2. Pick a Project:

  3. Check out the project:

    //Add Header X-RequestDigest:0xTheStringFromTheContextQuery(d/GetContextWebInformation/FormDigestValue)
    [POST empty body]
  4. Update the Draft item:

    //Add Header X-RequestDigest:0xTheStringFromTheContextQuery(d/GetContextWebInformation/FormDigestValue)
    {"__metadata":{"type":"PS.DraftProject"},"Name":"Test 679"}
  5. Check In the Draft:

    //Add Header X-RequestDigest:0xTheStringFromTheContextQuery(d/GetContextWebInformation/FormDigestValue)
    [POST empty body]
Thanks Paul! After a lot of troubleshooting, I found that we had a custom field called "Project#" - when I changed that to "Project Number" it resolved the issue!

Much appreciated.

Great to hear that you have this sorted @mhugo