9

I just tried out the new feature Streamline Managed Packages by Deleting Unused Components that came with Spring'15 and deleted a managed VF page called "Advanced Lookup Popup" including its Controller class from my package.

I now push-upgraded an existing customer org and it failed with this error:

This app can't be upgraded. Salesforce has blocked this package upgrade because the new package version removes some Apex code that one or more Visualforce pages or global Visualforce components need in order to function. Please contact your partner with this error information. Provide these component names to your partner. Visualforce Page: Advanced Lookup Popup.

How can I resolve this? Or is this a bug?

1
  • 1
    We just opened a case as we are having the same issue after deleting VF pages and the associated code.
    – Eric
    Mar 8, 2015 at 22:31

1 Answer 1

9

We just got this answer from Salesforce.com Support regarding our related case.

There is this knowledge article for this kind of problem Removing Obsolete Visualforce from Managed Packages

Eric Adding to the answer

If you have already deleted and packaged up the changes to a new package you will need to follow the below steps to upgrade users to the new package version:

  1. Create a patch from the previous version WITH the VF pages
  2. In the patch update all VF pages to simply <apex:page />
  3. Upgrade the customer to the patch version
  4. Upgrade the customer to the latest full version with the pages deleted

Basically you need to upgrade to a version with the metadata modified to not reference anything first then you can update to the packages with the metadata deleted.

4
  • Us to. It does not help us resolve the current issue though. Damage is already done and we cannot upgrade our customers.....ugh.. Thanks for the link, a partner alert has just been posted as well
    – Eric
    Mar 10, 2015 at 15:06
  • @Eric is there any solution to this? I can't restore the deleted VF page since it was a full release of the package.
    – Phil B
    Jun 18, 2015 at 19:31
  • You can create a patch from the Previous version (and remove all references to the deleted component but leave the component in) where the page existed and install the patch, then you will be able to install the new update where the VF page is removed
    – Eric
    Jun 18, 2015 at 19:54
  • Thanks Eric. It worked. You can create a patch from the Previous version (and remove all references to the deleted component but leave the component in) where the page existed and install the patch, then you will be able to install the new update where the VF page is removed Aug 24, 2016 at 16:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .