Skip to main content
I will be deploying a change set from sandbox to PROD. The Change set has 10 custom fields, 2 Visual force page and a Controller.

 

So will it raise a error.

 

since

  • I have not uploaded the custom object but only the custom field.(Note-Custom object is present in PROD).

  • I have 2 Visual force page and only one controller(PROD has all Controller for the other Vf page).

9 answers
  1. May 8, 2014, 10:59 AM
    Jason,

     

    So for example, say that I have 3 VF Pages and each of them as it's own Apex Controllers. Now all of them along with their Test Classes are safe in the Prod.

     

    Say that you made changes to 2 of them (VF Pages only) and one Apex Controller. Now, since you’ve made changes to the Apex Controller, you will surely have the modified Test Class also for this very Apex Controller within the Changeset along with the 2 VF Pages and the Apex Controller.

     

    Now, when you deploy anything, every Test Class in the Prod along with the one in your Changeset will be executed and if the overall Code Coverage doesn’t sum to 75% then you’ll hit with an Error.

     

    But since we’ve the Apex Test Class modified as per the new changes and since all the Test Classes for the previous VF Controllers are safe in Prod we should all be good.

     

    Now for the, fields, before deploying a Custom Object’s Field, the Platform will first check if the Custom Object itself is there in Prod and if not it will check in the Changeset and if both of the places doesn’t have it, then you’ll hit an Error but since the Object is already there in the Prod, you should be good to go!
0/9000