Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Import solution fails on security role

Posted on by Microsoft Employee

hi all,

When importing a solution i get an error "privilege With Id = 0557f49b-1cf7-46e1-8527-f3c7afee7001 Does Not Exist"

This is on a specific out of the box role which we did not change in the past few weeks... This also only happens on our Acceptance environment. Did already some checks if there are any differences on the role etc but could not find anything which would have impact..

Anyone here can guide me in the right direction?

kind regards

Robin

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Import solution fails on security role

    Update on above error message. We tried something else and we also CAN'T update the role directly in the environment which gives the problem. If we update any of the entities within the role and click save, we get the exact same error when importing the solution...

    Maybe you guys have an idea why this is happening..?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Import solution fails on security role

    Did that.. it is the error i posted. It says that for Security role X with ID Y the following error code 0x80040217 and privilege With Id = 0557f49b-1cf7-46e1-8527-f3c7afee7001 Does Not Exist

  • Suggested answer
    prasanth kancharla Profile Picture
    prasanth kancharla 335 on at
    RE: Import solution fails on security role

    Hi Robin,

    Request you to download log file and open that file with excel, in the second sheet you will find more details about the error. if you provide those details we can identify the root cause.

    Thanks and Regards,

    Prasanth

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Import solution fails on security role

    Sure, DEV: 1710 (9.1.0.4233) online

            ACC:  1710 (9.1.0.4233) online

    Same.. :(

    "If you did not have this issue few weeks ago, i would check the solution history on both environments to see if there are patches or updates done by MS."

    I also did a compare between the solution and customization XML from the day it worked (last week) and the new version from dev now... there was nothing weird about it... normal changes.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Import solution fails on security role

    Hi

    Could you share the source and target environment versions?

    I would also check if there are differences in the applications or solutions (Mostly MS ones) installed between the two environment.

    If the source environment has an  application or module installed that introduced a new privilege. When you export the sec role i will include that privilege. I think its trying to look for that privilege on target and it does not exist.

    If you did not have this issue few weeks ago, i would check the solution history on both environments to see if there are patches or updates done by MS.

    If both source and target environments are identical, then you may have to raise a ticket with MS.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Import solution fails on security role

    hi both, thanks for the help already :) much appreciated. I tried already to search in the Target environment for the ID but it is not there unfortunately.

    So what i did is creating a new solution with the security role that gives this problem. If I try to import this in our acceptance environment it gives this error. So I removed this role from our main solution in DEV and imported this in our Acceptance environment. This works fine :) so it all should be good now. I tried to import the new solution with just this particular security role and it failed again :( same error... So also i checked this role in DEV and ACC and compared all the dots etc... the only difference is One Drive. There is no way to set this in Acceptance since it is turned off.. so i thought this was the problem but in our Test environment this is also not available in this role and it imports just fine there... Also removing all privileges from this Onedrive was not doing anything.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Import solution fails on security role

    Okay there can be two other reasons for this issue:

    1.importing the solution from lower version and pushing to higher version or vice versa

    2. there is a an "extra" privilege that was there in your source system on a role doesnt exist in your target.

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Import solution fails on security role

    Hi Robin ,

    Even if you change the privilege , the solution should import. I am suspecting something deletion activity you did in your source environment , and the particular privilege not able to find your  exported solution  but its exists in target environment.   So try to find the which privilege you are missing as suggested by Rawish in your target environment.

    In addition you could also try to do apply solution upgrade -

    community.dynamics.com/.../how-to-delete-components-from-a-managed-solution

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Import solution fails on security role

    Hi Rawish, thx for the reply. Unfortunately in all my environments the GUID can't be found with the method from the URL you reffered to... really weird

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Import solution fails on security role

    Hi Robin,

    Have a look here : passion4dynamics.com/.../search-for-privilege-name-using-privilege-id

    try to find out what privilege and what entity its complaining about. Then you can work towards fixing it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans