Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP

(1) ShareShare
ReportReport
Posted on by 791
Hello,
After moving the database from the sandbox environment to dev, it gets strange errors about SECURITYROLEPRIVILEGERESOURCELICENSEMAP. I have never encountered this error before.
Could someone please help?
 
I have tried this before, but without success.
 
  • Suggested answer
    Navneeth Nagrajan Profile Picture
    1,954 Super User 2025 Season 1 on at
    Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP
    Hi,
     
    Looks like this is an issue while assigning security roles to the user.
     
    1. You can use the solution that @Shooowtek recommended dropping the Licensing_PopulateRolePrivilegeMapV2 which worked in my case too.
    2. Refer to this KB Article that fixes this issue where some of the privileges and resource association to a security role has been fixed.
     
    Hope this helps. Happy to answer questions, if any.
     
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP
    Hi,
    Thanks for sharing this solution, you can mark this as verified to help more people.
    Best Regards,
    Hana

     
  • Shooowtek Profile Picture
    791 on at
    Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP
    I already have a solution. Run the following SQL script on the imported database:
     
    DROP PROCEDURE IF EXISTS LICENSING_POPULATEROLEPRIVILEGELICENSEMAPV2
    GO
     
  • Shooowtek Profile Picture
    791 on at
    Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP
    Hello,
    I've posted the screen below.
     
     
  • André Arnaud de Calavon Profile Picture
    295,912 Super User 2025 Season 1 on at
    Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP
    Hi Shooowtek,

    Are you able to copy the error first to notepad and then to a reply on this forum?
  • Shooowtek Profile Picture
    791 on at
    Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP
    In this case, the database has been transferred. The application is the same version and includes all customizations.
    I tried to use the "Repair" button, but without success.
    I would like to paste here the list of errors I receive in VS, but for unknown reasons I can't do it....
     
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    295,912 Super User 2025 Season 1 on at
    Database sync failed - from sandbox env to dev - SECURITYROLEPRIVILEGERESOURCELICENSEMAP
    Hi Shooowtek,
     
    Did you copy only the database or also the application objects? Was the application on the same version including possible customizations between the sandbox and the dev environment?
     
    On the Security configuration form, there is a function called 'Repair'. Have you tried this job? This will recreate contents from some runtime security tables. See also: Security configuration - What is the 'Repair' button? - Dynamicspedia

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 565

#2
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 402 Super User 2025 Season 1

Product updates

Dynamics 365 release plans