[SalesForce] Cascade delete limits

Is there a limit to the number of records that can be deleted in cascading delete?

We are receiving an error "Deletion Unsuccessful You cannot delete this object" when trying to delete records involved in master detail and lookup cascade delete relationships.

It is my understanding their are limits on delete() functions in Apex, but is there delete limits in the declarative delete functionality?

Best Answer

From Considerations for Relationships in the Salesforce Help:

In a many-to-many relationship, a user can't delete a parent record if there are more than 200 junction object records associated with it and if the junction object has a roll-up summary field that rolls up to the other parent. To delete this object, manually delete junction object records until the count is fewer than 200.

It may be that the records you're deleting are falling under this limitation.

Related Topic