microsoft / microsoft/Dynamics365Commerce.Solutions
Unable to read a single entity using RetilProxy methods
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 80
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
Discussed in https://github.com/microsoft/Dynamics365Commerce.Solutions/discussions/304
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with discussion 304 and compare the custom CSU method's response with the standard GetCustomer response that Retail Proxy can read. Check the top-level Atom or JSON element and CommerceEntity payload; done means Retail Proxy reads the single entity without the InvalidOperationException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100