OData error

1
For our project, we will use OData. We converted the project to Mendix 5.19.0, set up an environment and tried to retrieve data via an odata user. When I try to retrieve an object, the following error occurs: <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>500</code> <message xml:lang="en-US">Exception occurred while processing OData request. </message> </error> Why is this URL in the XML? The link itself doesn't work (the 'scheme=...' Microsoft URL) and probably causes the (500) error. <entry> <id>https://xxxxxxxx-accp.mendixcloud.com/odata/api/SomeObject(5910974510924487)</id> <category term="DefaultNamespace.SomeObject" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"></category> <title></title> Kind regards, Ruben
asked
2 answers
1

Dear Ruben, the error occurs among other things when you try to release a calculated attribute in the OData service.

Such attributes do not exist in the database but are only calculated in runtime.

You should remove such attributes from your OData service.

 

Hope this helps.

answered
0

The scheme value of category is always the same, as specified in the Atom Format for OData: http://www.odata.org/documentation/odata-version-3-0/atom-format/ (See section 6.1.8).

Do you see any errors in the mendix logfile that may point to the cause of your 500 error?

answered