The structure of error response from WebAPI in Dynamics 365/ CDS have changed. The innererror property in the JSON response has been removed. Are you aware of it?

And I just faced this an hour back as I was reviewing a piece of code. Can’t paste the actual code but the code was kind of similar to this.

image

Check for the highlighted part where the code check for innererror property. So if your code is referring to this property it is no longer there. And I am not sure why would you do that, but if you are not checking for undefined condition and directly trying to access the innererror property, you shall get an error.

In Microsoft words – “The innererror name/value pair SHOULD only be used in development environments in order to guard against potential security concerns around information disclosure.

Please check this Microsoft Docs article for more.

Hope this helps!

Debajit Dutta

(Business Solutions MVP)

For training and consulting, please write to info@xrmforyou.com