Print this page

Component is in use by another component in your organization uninstall error

Knowledge Article Number 000205614
Description

Upon uninstalling an App or package you may receive an error, "Component is in use by another component in your organization" or "Another component of your organization is using the component."

Uninstall Error Clean

If you're unable to identify where the reference is in your customizations use the following resources to guide your use of available tools or the Eclipse Force.com IDE to perform this task.  If you have technical questions or concerns regarding the tool see the Force.com IDE FAQ's Troubleshooting and Support documentation.

Resolution Typically, specific component references will be listed with a direct link after the Problem or Issue message:

Uninstall Package Dependency Error with links

However, if you do not see a link after the message above and the component is a custom field, it is likely due to the field being referenced in a workflow.

To locate workflows potentially preventing the uninstall click into the field's provided name link to view the field's setup section which contains the Object Name field.  An administrator will need to review all workflows built on the field's object to identify, deactivate, and delete workflows which contain references to the field in their evaluation formula or field updates. See Managing Workflow Rules for more details.

If you're unable to locate the references following the instructions above or as outlined in the I am Getting errors while uninstalling Managed packages article you can also use the Force.com IDE to locate dependencies.

 
Note
NoteThe following details are provided here as a courtesy and the solution should be thoroughly tested in a sandbox environment. Support can't be held responsible as the Force.com IDE does have the capability to make potentially detrimental changes to your organization if not used properly.  Please use extreme caution.

The Force.com IDE is a plugin that's installed on top of the Eclipse tool.  Specific systems requirements and versions of Eclipse are recommended as outlined in the prerequisites listed in the Force.com IDE Installation documentation.

Once you have downloaded the appropriate zip file from the Eclipse website, extract the zip file to your desired application install folder on your local machine. See the Eclipse/Installation documentation for further details on the installation process and adding a shortcut to Eclipse.exe on your desktop.  Once you have unzipped and executed the eclipse.exe file follow the steps in the Force.com IDE Installation page to install the plugin.

After you've successfully installed both Eclipse and the Force.com IDE follow the entire Hands-on Training: Get started with the Force.com IDE for Admins video if this is your first time leveraging the tool for a complete overview. Alternatively, here is an index of important subject matter covered in the video for quick reference:

7:15 - Explanation of what the Eclipse Force.com IDE tool is

10:05 - Explanation of what an Eclipse project is and how it relates to working with your metadata

10:48 - Overview of downloading or retrieving your organization's metadata in Eclipse

11:28 - Step by step instructions to open Eclipse, the Force.com IDE (perspective), creating a project, logging in, and downloading (retrieving) all of your organization's metadata

40:30 - Searching your metadata.  The demonstration only varies slightly from the approach to locate components referenced in a package. Instead of only inputting workflow for the "File name patterns" select the Choose... button | Select All and Ok to ensure that the search is including all metadata.  In addition, instead of searching for the term "b.gone" as used in the demonstration, search for the affected component's API Name.  Locate the component's API name by clicking to its setup page via the provided links under the Name column on the uninstall's resulting error page.

Uninstall Errors

For an explicit example of searching for a custom field via the Force.com IDE check out the video Mastering the Force.com IDE: Metadata Search.

See also:
An Introduction to the Force.com IDE




promote demote