Skip to main content
All CollectionsSalesforceTroubleshooting and FAQs - SFDC
Deployment of Validation fails during restore
Deployment of Validation fails during restore
Updated over 3 months ago

Overview

There might be a scenario where the restore fails while disabling and enabling validations, which immediately stops the restore tasks. The article explains the scenarios for validation issues that result in restore failure.

Check the Deployment status

To check the Deployment status in the destination org to figure out the failing validations:

  1. Log in to Salesforce org.

  2. Go to setup --> Deployment status.

  3. Open the latest Deployment, which has failed.

The API Names in the error component are the validations that are failing.

An example is attached below.

Resolution

You can overcome the restore issue due to deployment validation using below methods:

  1. Exclude validation from the Data template

  2. Exclude validation from the Environment hub

  3. Turn the validations OFF in the destination org.

Exclude validation from the Data template

Procedure:

  1. Navigate to the desired template.

  2. Click Show Details -> Template Settings.

  3. Go to the validations tab and search for the failed validations, select them, and click Save Selection.

  4. Re-run the restore.


πŸ“ NOTE

These settings are valid only for the current data template. A new template will require new settings.


Exclude validation from the Environment hub

To exclude these validations for every template, exclude them from the environment hub.

Procedure:

  1. Navigate to the Environment Hub tab.

  2. Click the Show details option from the dropdown of the destination org.

  3. Choose the validation type, select the validation that needs to be excluded and click Save.

Turn the validations OFF in the destination org manually.

  1. Open the validations that are failing in the destination org as shown in the Deployment status.

  2. Turn them OFF one by one.
    For example, if the validation that is failing is Flow, Workflow, deactivate it.

  3. Run the Refresh validation for the destination org.

  4. Rerun the restore.

  5. Once the restore is completed, activate back the validations in the salesforce org.

  6. Run refresh validations in the org.

Did this answer your question?