Skip to main content

Notifications

Dynamics 365 Community / Forums / Commerce forum / Error when accessing r...
Commerce forum
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.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,186 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,996 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans