Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I were to create and upload an outbound Change Set from a Salesforce Sandbox to Production, then (without Deploying the Change Set in Production) refresh the Sandbox, would I still be able to Deploy the Change Set in Production after the refresh is complete (even if the object no longer exists due to the refresh)?

share|improve this question
Do you mean "If I were to create and upload" in the beginning of the question? That's a subtle difference that matters. I believe the answer is yes but never tried it. I know that I have few hanging changesets that came from environments that don't exist anymore. – eyescream Dec 17 '12 at 16:50
Yes, that's what I meant. Thanks. – Matt K Dec 17 '12 at 16:52
up vote 3 down vote accepted

That should be able to work without a problem, as the changeset you upload is a snapshot of the moment you press upload, then all the metadata you upload is flattened to (I guess) an xml file, and put available on a production environment. You could test that without having to refresh your sandbox, by simply uploading some code, change the code on your sandbox before doing the deploy on your production, and see the result.

share|improve this answer

I just had this same scenario. We had change sets to deploy to our production instance after our sandbox refresh, and due to business reasons, we were unable to change when we did our refresh vs release.

Although deleting an outbound change set from the source organization will also delete it from the target organization, this does not appear to be the case between sandbox and production when the sandbox is refreshed.

I have no idea why this is the case, and there is no documentation I can find about it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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