Search This Blog

Tuesday, January 12, 2016

The record cannot be deleted because it is associated with another record

The record cannot be deleted because it is associated with another record

Whenever you delete the record in the CRM the above error occur.

Solution:
Example:
If you delete the account in CRM.


You have to open the record and delete all the data in the subgrid of that record that means an account has "1:N" relationship  items, those items has to be delete first.

To easily find the associated record, try to delete the account in the sql it throws error as reference constraint error in which it says relationship name. In which you can easily find
in which entity an account is associated with it.
Here credit card entity (custom entity) is linked with that account. So delete that credit card first and then delete the account. It will successfully deleted.



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.