Find your content:

Search form

You are here

Does "check-only" deployments affect anything?... anything?


When running a deployment via a change set or via the API (using ANT or Eclipse) with the "check-only" parameter set to true, will any users or data in the org I'm deploying to feel the effect of the deployment (even momentarily?)

I would find it very odd if this were the case, but if I read the documentation on deployment to production orgs very carefully (found here:, I could get the feeling that something might be fishy? The documentation mentions the option of doing a "check-only" deployment after having stressed that users should be locked out while running actual deployments.

Attribution to: sorenkrabbe

Possible Suggestion/Solution #1

I believe the only users that should be impacted would be users with the Customize Application permission who continue to make modifications to your org's configuration during the deployment validation process (such as modifying a validation rule or updating a sharing setting). They should get a message that the org is locked and be unable to save their changes, which is more of a disruption in their access than anything that could impact the results of the validation. However, it is possible that a user could be in the middle of some long-running process (such as running test cases or updating sharing settings) that could prevent the validation from even starting in the first place.

Also, if your test cases rely on certain data being present and in a particular configuration (rather than mocking up the data as part of the test case, which is a best practice), allowing users to make changes to data in the org during the validation window could potentially impact the success of your test cases. Of course, this is easily preventable by writing test cases that create their own data or ensuring that they utilize the @IsTest(SeeAllData=false) annotation introduced in API version 24.0.

Other than that, your end-users really should not be impacted by a validation-only deployment, as all changes introduced are never actually committed and will be rolled back following the completion of all tests. In my experience, locking out all users should only be necessary during the actual deployment window (especially when manual configuration changes are necessary in addition to the automated deployment and it would be undesirable/dangerous for a user to be accessing the system prior to the completion of the manual changes).

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

My Block Status

My Block Content