skip to Main Content

Deleting Custom Security Roles can cause Customization File Issues

Recently we made some modifications to a client’s environment which involved redesigning the use of custom forms and some scripting that we had written to pre-populate some fields on those forms. As a consequence we no longer required certain custom security roles that we had created for some users that were accessing the forms. Deleting these roles turned out to be not such a good idea.

A few days later we wanted to make some edits and publish the Case, Account and Contact forms but they kept failing. Publish all customizations were failing also. But publishing customizations for any other entity in the system was successful. The error message we were receiving simply put wasn’t very insightful; I won’t reproduce it all here but the key element was as follows:

<Message>role With Id = 97a24b0d-68e4-e011-8ee1-1cc1deea2f87 Does Not Exist</Message>

Additionally the human versions of the text file error message were equally cryptic. What really threw us was the ‘role with Id’ – we figured this to be a User Role, but in was in fact a security role.



So after some head scratching we finally figured out the scenario that caused the issue and then we solved the problem.

Scenario that created the issue:

  1. Create Custom Security Role.
  2. Create Custom Form
  3. Assign Security Role to the Form.
  4. Delete Security Role.
  5. Entity will not publish.


  1. Open up the problem custom form.
  2. Save As a new form.
  3. Delete problem form.
  4. Publish successfully.


The moral of the story? – Remove a security role from the form before you delete the security role.


This Post Has 3 Comments
  1. I have this issue as well. The only problem is I can’t follow step number 3 of your solution as the form in question is the default managed form that cannot be deleted. Any suggestions?

    1. I believe you are going to have to contact Microsoft CRM Support. If you are a CRM Online user it is a free support call. That is what we would do because you are correct there isn’t a way to delete the built in managed form.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top