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

Announcements

News and Announcements icon
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 845
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.
 
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    305,465 Super User 2026 Season 1 on at
    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
  • Shooowtek Profile Picture
    845 on at
    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....
     
  • André Arnaud de Calavon Profile Picture
    305,465 Super User 2026 Season 1 on at
    Hi Shooowtek,

    Are you able to copy the error first to notepad and then to a reply on this forum?
  • Shooowtek Profile Picture
    845 on at
    Hello,
    I've posted the screen below.
     
     
  • Shooowtek Profile Picture
    845 on at
    I already have a solution. Run the following SQL script on the imported database:
     
    DROP PROCEDURE IF EXISTS LICENSING_POPULATEROLEPRIVILEGELICENSEMAPV2
    GO
     
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    Thanks for sharing this solution, you can mark this as verified to help more people.
    Best Regards,
    Hana

     
  • Suggested answer
    Navneeth Nagrajan Profile Picture
    2,618 Super User 2026 Season 1 on at
    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.
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 676

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 633 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 624 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans