Using Branch Validate
Validate checks your branch metadata against a Salesforce org without deploying. It confirms compatibility, ensures dependencies are satisfied, and runs Apex tests if required.
Written for the Old UI
This article was written for the old UI. The instructions are still usable, but the screenshots are outdated. In some cases, items referenced in the instructions have moved or changed. If you cannot find an item, see the Where Did It Go article.
Overview
The Validate feature checks your branch's components against a target Salesforce org without deploying. This ensures metadata compatibility, verifies dependencies, and runs Apex tests if needed. By validating before deployment, you can identify and fix issues, reducing deployment failures. Validation prevents failures by:
Checking metadata compatibility with the target org
Ensuring dependencies are satisfied
Running Apex tests (based on selected test level)
This process gives you confidence that the deployment will succeed. In this article, you will learn how to run a Validation job and view the results.
Best Practices
Always run Validate before deploying into UAT or Production.
Include dependent components to avoid validation errors.
Use Run Local Tests in lower environments for higher quality checks.
Use Do not run tests only for quick validations in sandboxes.
Review logs carefully before proceeding with deployment.
Re-run Validate after resolving conflicts, updating metadata, or retrieving missing dependencies.
Run Branch Validation Job
Configure and Run Validation
Click the Run tests dropdown menu to choose the level of Apex testing to perform. See the table below for a description of each.

Default
Runs only the tests included in the package.
Do not run tests
Skips all Apex tests (allowed only in non-production orgs).
Run local tests
Executes all tests in the org except those from installed managed packages.
Run all tests
Runs every test in the org, including managed package tests.
Run relevant tests
Runs only the tests relevant to the selected components and their dependencies. This option uses Salesforce’s RunRelevantTests feature to automatically determine which tests to run. For more details, see Salesforce Help.
Run specified tests
Lets you define individual test classes or methods to run.
Click the deployment settings toggles to enable the settings. See the following table for an explanation of each setting.

Deploy profile settings only for selected components
Only validate Profile Settings for the components you chose to include in this validation job.
Deploy permission set settings only for selected components
Only validate Permission Set Settings for the components you chose to include in this validation job.
Click Run to start the Validation job.

After starting the Validation job, it will be displayed on the Activities tab.

Validation Results
View Results
Click the Activities tab.
Check that the Validation job status is Completed.
Queued
Job is created and waiting to run.
In Progress
Job is running.
Completed
Job completed successfully.
Exception
Job completed with errors.
Click the Validation job.

The Validate results page lists information about the job and a detailed log of the job.

Last updated
Was this helpful?







