You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

Error when you try to uninstall a managed solution in Microsoft Dynamics CRM: "The object you tried to delete is associated with another object and cannot be deleted"

SYMPTOMS
When you try to uninstall a managed solution in Microsoft Dynamics CRM, you receive the following error message:
The object you tried to delete is associated with another object and cannot be deleted 

However, it is difficult to determine which object is the object to which the error message refers. The CRM Platform Trace log provides no details. 

For example, this issue may occur in either of the following scenarios:
  • You have a managed solution installed that includes "Article Template."
  • You have article records in the system that refer to the Article Temple in the managed solution.

CAUSE
"Article Template" in the solution is not an entity but a record. Therefore, the dependency is record level, not entity level. In this case, dependency tracking does not work, and a cascading error occurs instead.

By default, "Article Template" and "Article" have a 1:N relationship as Restrict for Cascade Delete. This prevents the deletion of an Article Template record from the system if the template is referred to by any article records.

RESOLUTION
In you cannot uninstall a managed solution because of this error, you should check the record type of the solution components inside the solution and check whether any of your records refer to those components. To resolve the reference, you may have to delete or to modify the record that is associated with the solution component and then try to uninstall the solution again.

MORE INFORMATION
Similar issues will occur with other kinds of solution components, such as the following:
  • Other template types
  • Microsoft Knowledge Base articles
  • Web resources
  • Process (Child Process)

Delete Managed Solution The object you tried to delete is associated with another object and cannot be deleted
Properties

Article ID: 2503016 - Last Review: 02/25/2011 15:35:00 - Revision: 2.1

  • Microsoft Dynamics CRM 2011
  • Microsoft Dynamics CRM Online Professional Edition
  • kbmbsmigrate kbsurveynew KB2503016
Feedback
')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> >>