function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
naresh reddy 18naresh reddy 18 

downgrading managed package

HI Friends,

     I need help urgently to this question. I have a managed package  of version 5 on appexhange. Many customers are using it.While working on the upgrade of version 6 I removed some apex pages and classes which were developed in version 1 and which I am not using at all. Now I released  6  beta version. and when I try to test it in my testing instance, I am unable to upgrade my testing instance to version 6 beta. While upgrading it throughing error 
"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 Pages:"


 Now my question is can salesfroce support downgrade my package to version 5 in my development instace with all my classes and pages?

Thanks,
Naresh.

     

   
Best Answer chosen by naresh reddy 18
naresh reddy 18naresh reddy 18
HI Prasad,

     The only solution is, you can create a patch instance with your old managed package where all pages and classes exist. In this patch instance, you need to remove the relationship between pages  and classes, and you should not delete any pages here. Just you need to break the relationship. After this, upload the package from your patch instance.

      Now upgrade your test instance with patch version first then upgrade to latest released version. 

Thanks,
Naresh

All Answers

ShashankShashank (Salesforce Developers) 
If the classes and pages are not yet "deleted" completely from the org, you should still be good. Isn't that the case? 
Anjani Prasad 2Anjani Prasad 2
I am also facing the same issue. Any solution??
naresh reddy 18naresh reddy 18
HI Prasad,

     The only solution is, you can create a patch instance with your old managed package where all pages and classes exist. In this patch instance, you need to remove the relationship between pages  and classes, and you should not delete any pages here. Just you need to break the relationship. After this, upload the package from your patch instance.

      Now upgrade your test instance with patch version first then upgrade to latest released version. 

Thanks,
Naresh
This was selected as the best answer