Loading

Salesforce Uninstallation of a Managed Package Gives 'Component Type' Errors

Fecha de publicación: Jan 16, 2025
Descripción

Sometimes when you uninstall a package, an error results related to a component type (button, link, Visualforce page, custom field, custom object, folder, permission set package, Apex class).  The information listed below will help in manually removing the component that is preventing removal of the managed package. 

Solución
Identify the component blocking the installation of the managed package and follow the steps shown below.
 
In either Classic or Lightning, access the managed package:
 

1. Click Setup.
2. In the Quick Find box, enter Installed Packages
3. Click Installed Packages.

 

Visualforce Page

  1. Click on the Name (Do a right click and open it in a new tab to keep on working without repeating the complete process of uninstalling package).
  2. Click on Where it is used? button.
  3. Click the Reference label to view the definition. It will take you to the layout.
  4. Remove all the Visualforce pages added by the package.
  5. Save the changes on the layout.

 

    Folder

    1. Click on the Name (Do a right click and open it in a new tab to keep on working without repeating the complete process of uninstalling package).
    2. It will take you to the Reports & Dashboards page.
    3. Click on the drop down arrow for the folders created by the package .      .
    4. Delete all the folders created by the package (It may ask you to delete the reports, remove them from the Recycle Bin also).

     

    Button or Link

    1. Click on the Name (Do a right click and open it in a new tab to keep on working without repeating the complete process of uninstalling package).
    2. Click on Where it is used? button.
    3. Click the Reference label to view the definition. It will take you to the layout.
    4. Remove the buttons or links created by the package.
    5. Save the changes on the layout.


    Field

    1. Click on the Name.
    2. Click on Where it is used? button.
    3. Click the Reference label to view the definition. It will take you to the layout.
    4. Remove the field created by the package.
    5. Save the changes on the layout.
    Note: When the field is referenced in a Lightning Page Layout, though you have removed the field from the page layout; there is a related list that contains the field as well.
     

    Workflow or Assignment Rule

    1. Click on the Name (Do a right click and open it in a new tab to keep on working without repeating the complete process of uninstalling package).
    2. Click on Where it is used? button.
    3. Remove all the workflow rules and/or assignment rule that is using the custom field.
     

    Permission Set

    1. Click on the Name (This will route your to the permission set where users are still assigned).
    2. Click Manage Assignments button.
    3. Select the checkbox for each user assigned in the permission set.
    4. Click on Remove Assignments button.
    5. Click OK on the pop up message.
    6. Click Done. Note: Another Permission set might appear when you uninstall again. Repeat the process until All permission sets are no longer associated to any user.

     

    Trigger

    Review the information in this article to Disable a Salesforce Trigger in a Production Environment.

     

    After going through the suggested steps above, try to uninstall the package again. If it still gives you an error that you cannot manually remove, please contact Salesforce Support by submitting a case on the Salesforce Help Portal.





     
    Número del artículo de conocimiento

    000386372

     
    Cargando
    Salesforce Help | Article