Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
Unanswered

Error when accessing retail API - Dynamics 365 for Commerce

Posted on by 50

I am trying to access the retail API from a .net class.:

However I'm getting the error below. Can you please help me for it.


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." while accessing GetAccessibleOrgUnits() method of dynamics retail proxy.
Dynamics Application Version: 10.0.12
  • Error when accessing retail API - Dynamics 365 for Commerce
    Hello,
     
    I have the same problem using Microsoft.Dynamics.Commerce.RetailProxy
     
    Have you resolve this?
     
  • SergeyP Profile Picture
    SergeyP 2,928 on at
    RE: Error when accessing retail API - Dynamics 365 for Commerce

    >... I am trying to access the retail API from a .net class.: ...

    It is not clear what exactly you meant, normally it is recommended to use Retail Proxy which will simplify your life by eliminating any issues dealing with ODATA because the Proxy shields you from all that, please see How to access Retail Server in managed code. for details

  • ToddB Profile Picture
    ToddB on at
    RE: Error when accessing retail API - Dynamics 365 for Commerce

    Hi Bilal,

    I am looking into this, but am wondering if this is similar to the below:

    community.dynamics.com/.../odata-client-web-service-issue

    Thank you in advance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans