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
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
  • Suggested answer
    Community member Profile Picture
    on at
    Dual-write issue: Unable to retrieve legal entity for AX environment:
    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.
  • AdrianT Profile Picture
    on at
    Dual-write issue: Unable to retrieve legal entity for AX environment:
     
    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
  • André Arnaud de Calavon Profile Picture
    Super User 2025 Season 1 on at
    Dual-write issue: Unable to retrieve legal entity for AX environment:
    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

Overall leaderboard

Product updates

Dynamics 365 release plans