Unable to Delete Custom Object Record
|Knowledge Article Number||000187350|
|Description||When attempting to delete a custom object record, an error message may appear that references a relationship to another object, which is currently preventing the deletion. Within the error, a table is displayed that provides a list of the related records that are causing the problem.
Example Error Message:
"Your attempt to delete [record name] could not be completed because it is associated with the following [object name]. If the following table is empty, it's because you don't have access to the records restricting the delete."
In some situations, the table appears empty even when there are no permissions/access issues.
|Resolution||Check the referenced Object for a custom Lookup field that relates back to the record that needs deletion. Once found, follow these steps:
- Click on the field to see its details.
- Under the "Lookup Options" section, check the value for "What to do if the lookup record is deleted?"
- If the value is set to "Don't allow deletion of the lookup record that's part of a lookup relationship.", this will need to be changed to "Clear the value of this field."
Once this change has been saved, it should be possible to delete the affected record.