7

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
    We just opened a case as we are having the same issue after deleting VF pages and the associated code. – Eric Mar 8 '15 at 22:31
7

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.

  • 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 '15 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 '15 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 '15 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 – anjani orasad Aug 24 '16 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.