Showing results for 
Search instead for 
Did you mean: 
New Member

Cannot Delete Custom Entity

I am trying to delete custom entity but it cannot be deleted because it has relationship with activities that cannot be deleted manually and when I delete the custom entity I get this error message:


"EntityRelationshipRole with id 98716f1f-d6a1-ec11-9840-0022489e0b73 cannot be deleted because it is a system record and system records of this type cannot be deleted."

I think the relationship mentioned in message is the relationship generated when I check activities option on that entity.


I appreciate any ideas.

New Member

Same problem. I also have a custom entity with the activities option selected. Not sure if that is root cause but we have the same situation. I can't find out how to query entity relationship roles to find out exactly what the error message is referring to. Only the following page about dependencies makes a reference to it. When I show dependencies on the custom entity, no dependencies are listed with the component type of entity relationship type.

We opened a ticket from Microsoft and it turned out that it was a known problem and it will be solved through future updates, but in our case we could not wait, so they ran script on their back-end on our organaization on the entities to be deleted and after that I deleted without problems

Helpful resources

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Users online (2,230)