Loading

Error "This installed component is referenced by a locally created component" when uninstalling the Field Service package

Udgivelsesdato: Oct 26, 2026
Beskrivelse

When navigating to Setup → Apps → Packaging → Installed Packages, selecting the FSL package, and clicking Uninstall, the following error appears:

This installed component is referenced by a locally created component.

The error identifies one or more FSL-managed page layouts (for example, OperatingHours – FSL Operating Hours Layout) and the profiles referencing them (for example, Chatter Free User, Standard Platform User, External Apps Login User).

When navigating to each listed profile to review page layout assignments, the FSL-managed layout does not appear in the assignment list, despite being reported as assigned by the uninstall error.

Cause

FSL-managed page layouts are assigned to profiles at the metadata level during package installation. The standard Profile page layout assignment UI does not display managed-package layouts, as they are controlled by the package vendor and are not modifiable through the standard interface.

When an uninstall is initiated, Salesforce scans the metadata layer and detects that profiles still reference FSL-managed layouts. Because these references exist in the metadata but are not visible in the UI, they block the uninstall process until explicitly removed.

Please note: 

In some cases, FSL page layout metadata may be too deeply embedded for manual removal through the UI. If all visible FSL page layouts have been removed from all profiles and the uninstall error persists, contact Salesforce Support. Support engineers have access to backend tools that can identify and remove orphaned metadata references not accessible through the standard interface.

If your org contains custom Apex classes, custom objects, or other components that reference FSL objects or fields, those dependencies must also be removed or updated before the uninstall can complete.

Løsning

FSL-managed page layouts are assigned to profiles at the metadata level during package installation. Follow the steps below to remove hidden FSL page layout dependencies before uninstalling the package.

  1. Navigate to Setup → Object Manager.
  2. Search for and select the object referenced in the uninstall error (for example, OperatingHours, Work Type, or Service Territory).
  3. Click Page Layouts.
  4. Identify the FSL-managed page layout — these are typically prefixed or suffixed with "FSL" (for example, OperatingHours – FSL Operating Hours Layout).
  5. Click the layout name to open it, then click Delete at the top of the page.
  6. Confirm the deletion.
  7. Repeat steps 2–6 for each object and layout referenced in the uninstall error.
  8. Navigate to Setup → Apps → Packaging → Installed Packages, locate the FSL package, and click Uninstall.
  9. If additional dependencies are present (such as Apex classes or custom objects), locate the component in Object Manager or Setup and remove or update it to break the reference to the FSL package.

 

Yderligere ressourcer

 

Vidensartikelnummer

005461981

 
Indlæser
Salesforce Help | Article