# Validation / Workflow Rules

### Validation Rules: Overview <a href="#validation-rules-overview" id="validation-rules-overview"></a>

Validation rules ensure that data entered into a Salesforce record meets specific criteria before saving. These rules are composed of a formula or expression that evaluates one or more fields and returns **True** (invalid) or **False** (valid). When a rule returns True, a specified error message is shown to the user.

***

#### Disable Validation Rules <a href="#disable-validation-rules" id="disable-validation-rules"></a>

When the **Disable validation rules** checkbox is selected during a Data Loader job, all validation rules associated with the relevant Salesforce objects are temporarily deactivated. Data is then migrated to the destination sandbox. Once migration is complete, the validation rules are reactivated automatically.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FalfQ3s9p6Ou7THIK8KEj%2Fimage.png?alt=media&#x26;token=035219ae-5b82-4320-a488-fe8ebfcfa704" alt="Checkbox UI to disable validation rules in Data Loader"><figcaption></figcaption></figure>

Starting with ARM version 20.1, all validation rules are listed in the ARM UI. Users may review and manually re-enable rules as needed.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FmKFoDyS1x3xDLe3sfabN%2Fimage.png?alt=media&#x26;token=1a252748-3a7a-46ba-9f69-809346e49a8a" alt="List of validation rules in ARM interface"><figcaption></figcaption></figure>

**Screen 1: Successful Validation Rule Execution**

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FClYhQE6Mf1kHzatyAym2%2Fimage.png?alt=media&#x26;token=5d4c1e93-2daa-4c3e-98e5-c0796d5bf48e" alt="Validation rules that executed successfully"><figcaption></figcaption></figure>

**Screen 2: Failed Validation Rule Execution**

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FSkHEw95tOL7hDdNEP5UR%2Fimage.png?alt=media&#x26;token=87a73014-c38d-49a8-baa2-c55aa3c90830" alt="Validation rules that failed execution"><figcaption></figcaption></figure>

***

### Workflow Rules: Overview <a href="#workflow-rules-overview" id="workflow-rules-overview"></a>

Workflow rules automate standard processes and procedures. They typically follow an **if/then** logic model—triggering actions when specified conditions are met.

***

#### Disable Workflow Rules <a href="#disable-workflow-rules" id="disable-workflow-rules"></a>

Selecting the **Disable workflow rules** checkbox during the Data Loader job will deactivate all applicable Salesforce workflow rules during data migration. After the migration is complete, ARM reactivates the workflows.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FICMhzKkub6CG6GfXr3BM%2Fimage.png?alt=media&#x26;token=ef901a80-a3f4-41e8-b0f0-637f2a6aa1c8" alt="UI showing workflow rules disable checkbox"><figcaption></figcaption></figure>

Similar to validation rules, ARM also displays all workflow rules, allowing users to re-enable them if needed.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FaK1ugEs9BbTUFxy5OMTX%2Fimage.png?alt=media&#x26;token=e0d3569a-0875-49ad-bb23-a705aa0f4617" alt="List of workflow rules in ARM UI"><figcaption></figcaption></figure>

**Screen 1: Successful Workflow Rule Execution**

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FAUG0igD5ZW9Y2VIz9sGp%2Fimage.png?alt=media&#x26;token=3bafa279-2822-4915-9b8d-1cdaf1659598" alt="Successfully executed workflow rules"><figcaption></figcaption></figure>

**Screen 2: Failed Workflow Rule Execution**

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FrPTNaRNuTPdIHBzY7mPo%2Fimage.png?alt=media&#x26;token=74de4aeb-9592-433b-b516-bdd44b8c0f52" alt="Workflow rules that failed execution"><figcaption></figcaption></figure>
