Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error on deletion of a security role

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

When I am trying to delete a security role. I got a process error that this type of record cannot be deleted. when I download the log file there was a message on error details that "cannot not delete a workflow dependency associated with workflow activation". How can I delete that security role?

  

*This post is locked for comments

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Error on deletion of a security role

    Hi SAI,

    The error log should specify the GUID of the workflow.  Navigate to Settings > Process, select all and Export to Excel.  Then you can search for the GUID to find the workflow.  Then open the workflow and click "Show Dependencies" to find the dependencies of the workflow.  Once you remove the dependencies, you'll be able to delete the Security Role.

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: Error on deletion of a security role

    Your workflow must be set to 'run as the owner of the workflow' and probably thats why you are getting it.

    I hope you are not trying to delete an OOB Security Role. if its custom, check the dependencies first

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error on deletion of a security role

    Hello Sai,

    this means that one of your security role has dependencies with a workflow, I find it very strange that it is referencing workflows as its not possible in 2011 to reference a security role.

    what I would do is export the solution and check the XML for dependencies associated with the security role,

    remove those dependencies and then you will be bale to delete the security role

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans