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

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Kudoed Authors
Users online (2,009)