Skip to main content

Notifications

Announcements

No record found.

Power Platform integration forum
Suggested answer

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

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
  • Suggested answer
    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
    AdrianT 14 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
    André Arnaud de Cal... 290,532 Super User 2024 Season 2 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans