web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

When trying to update user list in PROD get an error

(0) ShareShare
ReportReport
Posted on by 158
When trying to update users list in production the following error appears (don't get it in sandbox):
 
If requesting support, please provide the following details to help troubleshooting:

Error message:
The record in table Permission Set in Licence already exists. Identification fields and values: Plan ID='{D9A6391B-8970-4976-BD94-5F205007C8D8}',Permission Set='D365 TEAM MEMBER',Scope='System',App ID='{437DBF0E-84FF-417A-965D-ED2BB9650972}'

Internal session ID:
6d232997-530a-4a30-b7ba-50bb1f714118

Application Insights session ID:
d9d286da-4c5a-4b5d-a9ca-20271d76e760

Client activity id:
2f7b5018-73ea-481f-b520-40d29133e632

Time stamp on error:
2026-01-16T11:43:13.7694727Z

User telemetry id:
c4c4be0d-5a92-4885-b116-b16856c9f6ee

AL call stack:
"Plan Configuration Impl."(CodeUnit 9822).GetCustomPermissions line 12 - System Application by Microsoft version 27.2.42879.44126
"Plan Configuration"(CodeUnit 9825).GetCustomPermissions line 4 - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Mgmt. Impl."(CodeUnit 9017).ArePermissionsCustomized line 16 - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Management"(CodeUnit 9010).ArePermissionsCustomized - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Update Buffer"(Table 9010)."Update Entity - OnValidate"(Trigger) line 15 - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Sync Impl."(CodeUnit 9029).AddChangesForExistingUser - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Sync Impl."(CodeUnit 9029).GetUpdatesFromGraphUserInfo - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Sync Impl."(CodeUnit 9029).FetchUpdatesForSkippedUsers - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Sync Impl."(CodeUnit 9029).FetchUpdatesFromAzureGraph - System Application by Microsoft version 27.2.42879.44126
"Azure AD User Update Wizard"(Page 9515)."Next - OnAction"(Trigger) line 4 - System Application by Microsoft version 27.2.42879.44126
Users(Page 9800)."Update users from Office - OnAction"(Trigger) line 2 - Base Application by Microsoft version 27.2.42879.44259

 
I have the same question (0)
  • Verified answer
    Dhiren Nagar Profile Picture
    1,926 Super User 2026 Season 1 on at
    Hi,
     
    I checked the call stack and I think that while updating the user plan system is crashing because of some duplicate record in buffer table.
     
    I don't know exact problem without debugging but you can try following solution.
     
    I think one of the plan (License) you are trying to update has Customized permission configuration.
     
    Open this page.
     
     
    Find the plan which you are updating for the user or find the plan with customized permissions(Check the customized permission Boolean on the side).
     
    Once you find that plan, note down the permissions you have customized in the Default Permission Sets section.
     
     
    Now see if for any of the plan, there is duplicate records for Permissions sets. If Yes, delete the duplicate one.
     
    If not you can follow below steps for temporary solution.
     
    You can disable the customization temporarily.
     
    Now run the Get Users action again.
     
    Now for those users for which the plan is updated you need to assign those custom permission sets manually so that permissions are correctly updated based on plan.
     
    Then you can turn the Customized Boolean on.
     
    I think this will solve the problem temporarily.
     
     
    Regards,
    Dhiren.
  • Verified answer
    Khushbu Rajvi. Profile Picture
    21,537 Super User 2026 Season 1 on at

    This happens due to a duplicate permission set entry in License Configuration for D365 TEAM MEMBER. When Update users from Microsoft 365 runs, Business Central tries to insert the same permission set again and fails. Go to License Configuration → Team Member, remove duplicate/custom permission set entries (or reset customization), then run Update users again.

  • Suggested answer
    Assisted by AI
    OussamaSabbouh Profile Picture
    9,972 Super User 2026 Season 1 on at
    Hello ,
    This error is caused by a duplicate record in the internal “Permission Set in Licence” table in production, where the same Plan ID, Permission Set (D365 TEAM MEMBER), Scope, and App ID exist twice; when BC tries to update users from Entra ID, it hits that duplicate and fails. Sandbox works because it doesn’t have the bad record. This is not a user or API issue, but a corrupted plan-permission mapping. If you can access any Plan / License / Permission mapping page, remove the duplicate or reset to defaults; otherwise, this must be fixed by Microsoft Support, who need to delete the duplicate record. Also ensure production is on the latest v27 build, as similar issues are sometimes patched in minor updates.
    Regards,
    Oussama Sabbouh
  • Suggested answer
    YUN ZHU Profile Picture
    97,469 Super User 2026 Season 1 on at
    Hi, hope the following can give you some hints as well.
    Business Central 2022 wave 1 (BC20): License Configuration page (Set Default User Groups and Default Permission Sets for the license type)
     
    Thanks.
    ZHU

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,117 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,026 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans