Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error on deletion of a security role

(0) ShareShare
ReportReport
Posted on 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
    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

  • 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans