Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : ALBybzsN1+32cvxHKj1ENb
Microsoft Dynamics CRM (Archived)

Error on deletion of a security role

Like (0) ShareShare
ReportReport
Posted on 9 Mar 2017 09:17:19 by

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
    6,804 on 10 Mar 2017 at 02:55:11
    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
    23,577 on 10 Mar 2017 at 01:56:47
    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

  • Goloknath Profile Picture
    on 09 Mar 2017 at 13:37:47
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,518 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,595 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete