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 365 | Integration, Dataverse...
Suggested Answer

Dual-write issue: Unable to retrieve legal entity for AX environment:

(1) ShareShare
ReportReport
Posted on by 17
Hi All,

We clone a F&O environment from other environment in F&O.Without unlink the dual-write connection.
 
After cloning from other environment.I tried to do unlink it causes the  issue.shown sc-1
issue is:  [UnknownError] Type=Microsoft.Dynamics.Integrator.Exceptions.IntegratorClientException, Msg=Unable to retrieve legal entity for AX environment: https://sandbox.operations.eu.dynamics.com/data/LegalEntities?$select=LegalEntityId,Name(Type=Microsoft.PowerApps.CoreFramework.Communication.Http.NonSuccessHttpResponseException, StatusCode=Forbidden, Msg=Server returned non-success HTTP response).


Thanks in Advance!

Thanks,
Sindhu
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at
    Hi Sindhu,
     
    I haven't seen this issue before myself. It looks like the F&O environment can't be reached. Maybe it is a user or permissions issue? You can also consider creating a support ticket for Microsoft Support.
  • AdrianT Profile Picture
    14 on at
     
    Hi, 
     
    After you clone F&SCM, make sure the AAD Apps are there, before you attempt to reset the link:
    App ID 00000015-0000-0000-c000-000000000000 exists
    App  ID 2e49aa60-1bd3-43b6-8ab6-03ada3d9f08b exists
     
    Kind regards, 
    Adrian
  • Suggested answer
    Community member Profile Picture
    4 on at
    Just seen the same error while adding a new legal entity and the reason was the AAD app (Microsoft Entra ID app) was missing for both DataIntServiceUser and DualWriteServiceUser.
    After adding the app Id, I was able to proceed further.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans