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 :
Microsoft Dynamics AX (Archived)

OData Service in D365

(0) ShareShare
ReportReport
Posted on by

Hi friends,

            I am trying to create odata Service but am getting error like,

7484.image.png

my client configuration is

UriString = "usnconeboxax1aos.cloud.onebox.dynamics.com",
UserName = "padmapriya.v@*****.com"
Password = "*****@123",
ActiveDirectoryResource = "usnconeboxax1aos.cloud.onebox.dynamics.com",
ActiveDirectoryTenant = "https://login.windows.net/******.onmicrosoft.com",
ActiveDirectoryClientAppId = "*****",
ActiveDirectoryClientAppSecret = "lUs6LJtzWscKTpJZBMgkCng7es2BDkY=",

before few months it worked fine , Now it shows an error 

can any one suggest me an solution , 

Thanks & regards,

padmapriya

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    What if you click "View details"? Also, have you tried AX OData service log (Event Viewer)?

    Which authentication mechanism do you want to use? I see you specified both username/password and the app secret, which is weird, as you can't use both at once. Decide which one you want, remove the other and review the setup related to your choice (e.g. it the app secret token hasn't expired).

  • Community Member Profile Picture
    on at

    Hi Martin,

        I tried to view the error detail in inner exception, It shows me the error like

    "{"AADSTS50020: User account 'padmapriya.v@*****.com' from identity provider 'sts.windows.net/.../&; does not exist in tenant '*****.com' and cannot access the application 'cb5c660e-ad09-4895-90a0-778786cdf956' in that tenant.  The account needs to be added as an external user in the tenant first.  Sign out and sign in again with a different Azure Active Directory user account.\r\nTrace ID: 8130449d-8a5b-44df-85ca-a0e612250600\r\nCorrelation ID: 22718c35-f71a-4c28-9a40-3f86e67b5484\r\nTimestamp: 2018-01-11 07:15:52Z"}"

    and one more thing , i removed  the app secret id .

    Thanks & regards,

    padmapriya

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    The error message sounds quite clear. It says that the account doesn't belong to the AAD tenant and you should add it as an external user in the AAD tenant, or you should use another account that already exists there.

  • Salman Pervaiz Profile Picture
    80 on at

    Account does not exist for your AAD. Add this account and as Martin said above you need to choose between one auth mechanism.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans