Find your content:

Search form

You are here

Deleted validation rules and change sets


I have deleted a validation rule in my dev environment. Is there any way to comunicate this through a change set to our QA environment or will this have to be done manualy?

Attribution to: Bob Roberts

Possible Suggestion/Solution #1

Using the ANT-based Migration Tool you can build deployments that can add, change or delete objects as well as test changes. The download comes with a sample build.xml file and has an entry for removing code. You will have to build an XML file describing what needs to happen, though this can be generated by the IDE if you use it.

Attribution to: Mike Chale

Possible Suggestion/Solution #2

When it comes to destructive changes for VRs I keep a log in excel, or use the Setup Audit Trail to track them and then manually apply the modifications to the other environment.

If you do use the IDE and its feature for migrating between sandboxes it will generate the deletion, and you can unselect any other elements you don't want to touch via the UI.

Mike Chale is right in regarding to the use of the Migration Tool, but you'll need to invest some time in working with it, whilst I've done lots of additive changes using it, I've avoided it for destructive changes.

Attribution to: Steven Herod

Possible Suggestion/Solution #3

I prefer change sets over Ant, but as Mike Chale pointed out, you lose the ability to handle any form of deletes and even renaming of picklist values. I keep track of these in Evernote and reproduce them in Production during deployment.

Attribution to: Force2b_Mike

Possible Suggestion/Solution #4

Simple answer: There is no automatic communication from Production to a Sandbox when you delete a Validation Rule. It has to be done manually.

Attribution to: DavidSchach
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content