Skip to main content

Notifications

Announcements

No record found.

Power Platform integration forum
Unanswered

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... 288,584 Super User 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans