Skip to main content

Notifications

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
  • 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... 291,969 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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans