Tuesday, October 30, 2012

Salesforce - Unable to uninstall package due to page layouts

Uninstalling a package from a Salesforce org failed recently due to references from profiles to page layouts.

Unable to uninstall package
This installed component is referenced by a locally created component. System Administrator
Unable to uninstall package

It is possible to remove this mapping by following the link to the profile and changing the page layout assignments for the affected objects.

Alternatively, I found it quicker to manually remove the page layout and use the replacement screen provided by Salesforce.

App Setup > Customize > Accounts > Page Layouts > Page Layout Name : Del

Then use the page layout replacement screen to reassign any references to a remaining page layout.


  1. The second suggestion is a bad suggestion. If you delete standard page layouts (in order to remove the references with the app), they cannot be retrieved.

    1. If you still need the page layout in question, then yes, deleting it would be a problem. In may case the page layout didn't make any sense without the page, so deleting it was an easier path.