web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

OData connection - Unauthorized Error 401.

(0) ShareShare
ReportReport
Posted on by

Hi All,

I am facing Unauthorized 401 error while i am trying to access a particular table in D365 FO using OData.

Error - "An error occurred while processing this request."

Inner exception - "Unauthorized"

Status code - 401

Please help here.

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi AutoTestDeb,

    When you say that you are having issues trying to access a particular entity using Odata, do you mean that you can access everything else fine?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    - If you only have this issue with this particular entity, make sure that your user account has access to the entity that you are trying to access.

    - If this is a general issue, please share more info about how you are trying to access

    - Try if you can access the entity directly via web browser using the URL

  • Prasanna Penumarthi Profile Picture
    on at

    Is this issue happening with only one entity? how are you making the call? Can you browse the entity data directly from IE/chrome?

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    How You are trying to access , through URL ? or posting something to  endpoint using some third party app ? Make sure to add Your client ID in AAD applications screen in F&O

  • Suggested answer
    BG@Dynamics Profile Picture
    60 on at

    Check to make sure that you don't have a "/" on the end of the URL for your AD Resource.  I was getting the same thing until I removed that slash - I could log in to AAD and get a token but, I was getting an "Unauthorized" on any read against the Odata endpoint.

  • sanjud Profile Picture
    10 on at

    I still get the error even on a custom service call. any other ideas?

  • AnithaEswaran Profile Picture
    2,032 on at

    Hi,

    Before accessing the URL, have you generated the authorization token ?

    Can you brief the steps you followed before accessing the entity?

    Regards,

    Anitha.E

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans