Loading

Salesforce Platform: 'Component is in use by another component in your organization' error

Publiceringsdatum: Mar 25, 2026
Beskrivning
When you attempt to uninstall an app or package in Salesforce, you may receive one of the following errors:

- "Component is in use by another component in your organization"
- "Another component of your organization is using the component."

These errors indicate that a component (such as a custom field) is still referenced by another element in your org—for example, a workflow rule or another package component. This article guides you through the available tools to locate and resolve those dependencies so you can successfully complete the uninstall.

Example: An administrator tries to uninstall a managed package but receives this error because a custom field from the package is still referenced in a workflow rule's evaluation formula.
Lösning
Use the steps below to identify and remove the component dependencies blocking the uninstall.

Step 1: Check for Direct Links in the Error Message

When you see the error, Salesforce typically lists the specific component references with a direct link after the error message. Click those links to navigate directly to the conflicting component.

Step 2: Locate Workflow References for Custom Fields
If no link appears after the error message and the component is a custom field, the field is likely referenced in a workflow rule (an automated process that triggers actions based on field changes).
  1. Click the field name link provided in the error. This takes you to the field's setup page, which shows the Object Name the field belongs to.
  2. Navigate to Setup > Workflow Rules and review all workflow rules built on that object.
  3. Identify any workflow rules that reference the field in their evaluation formula or field updates.
  4. Deactivate and delete those workflow rules.


For more details, see Managing Workflow Rules: https://help.salesforce.com/apex/HTViewSolution?urlname=ManageYour-Workflow-Rules&language=en_US

Step 3: Use Workbench or Salesforce Extension for VS Code

If you are still unable to locate the references, you can use one of the following developer tools to download your org's metadata (the configuration and customization data of your Salesforce org) and search for dependencies:

- Workbench (a free, web-based tool for interacting with Salesforce metadata)
- Salesforce Extension for Visual Studio Code (VS Code): https://developer.salesforce.com/tools/vscode/
Knowledge-artikelnummer

000386965

 
Laddar
Salesforce Help | Article