web
You’re offline. This is a read only version of the page.
close
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 843
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
    301,130 Super User 2025 Season 2 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
    843 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
    301,130 Super User 2025 Season 2 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
    843 on at
    Hello,
    I've posted the screen below.
     
     
  • Shooowtek Profile Picture
    843 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,438 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans