Originally posted by **shahbazchishty** June 28, 2024
Hi,
We have a custom method at CSU using which we wish to return a single response object in response. We are able to return proper data in response but still Retail Proxy is not able to identify it as JSON object.
We are getting error "InvalidOperationException: The response payload is a not a valid response payload. Please make sure that the top level element is a valid Atom or JSON element or belongs to 'http://docs.oasis-open.org/odata/ns/data' namespace."
It is able to convert if I call any standard methods like GetCustomer but it is not working for our custom CommerceEntity
Discussed in https://github.com/microsoft/Dynamics365Commerce.Solutions/discussions/304