Article ID: 921391 - Last Review: November 19, 2007 - Revision: 3.2 Error message when you delete a record in Microsoft Dynamics CRM: "Error: Deletion Service failed to clean up some tables"SYMPTOMSWhen
you delete a record in Microsoft Dynamics CRM, the
following error message may be logged in the Application log:
Event
Type: Error Event Source: MSCRMDeletionService Event Category: None Event ID: 16387 Date: Date Time: Time AM User: N/A Computer: Computer_Name Description: Error: Deletion Service failed to clean up some tables. CAUSEThis problem occurs because there is a constraint on the
entity table of the record that is being deleted. Additionally, the user who deletes the record may not have the rights to delete all the associated records. For example, assume that you have rights to delete only contacts. You try to delete a contact that is associated with three cases. In Microsoft Dynamics CRM, the cascade relationship between the contact entity and the case entity is set to "Cascade Delete All." Therefore, the contact record is set to a delete status in the Microsoft Dynamics CRM database. However, you do not have rights to delete cases. Therefore, the delete status is not set on the case records. When the Deletion Service tries to delete the contact record, a constraint blocks that deletion because there are three existing cases that are assigned to the contact. To successfully delete this record, you must delete the records that cause the constraint conflict. RESOLUTIONTo resolve this problem, follow these
steps. Note Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs. To identify the table where the Deletion Service is failing, follow these steps:
To resolve the problem for the Campaign table, follow these steps:
| Article Translations
|

Back to the top
