Skip to main content
All CollectionsTroubleshooting
Resolving Deployment Preview Issues
Resolving Deployment Preview Issues
Lior Neudorfer avatar
Written by Lior Neudorfer
Updated over a week ago

After comparing the source and target environments of your deployment and selecting the differences you would like to deploy, you reach the 'Deployment Preview' step. In this step Salto prepares your deployment plan - which API calls to make, in what order, and which selected changes can or can’t be deployed because of various constraints. Once the plan is ready, you can review it.

Any changes that can't be deployed are automatically flagged with a red color and a value of "No" under the "Will Deploy" column. The problems which prevent the change from being deployed will appear under the "Issues" column:

To get an overview of all the issues which prevents elements from being deployed, or other issues that may affect your deployment, go to the "Deployment Issues" tab. There, you'll find a grouped list of errors, with the list of affected elements under each one:

Some issues can be quickly resolved using an automated resolver. For example, Missing Dependencies can be brought into the deployment by clicking the "Add missing dependencies" button, as shown in the example, above.

To resolve other issues, first review the issue details by clicking the affected element.

Then, you can usually do one of the following

  1. Remove the element from the deployment

    1. For compare & deploy, go back to the element selection screen, unselect the problematic configuration, then click "Preview Deployment" to preview the updated deployment

  2. Editing the element

    1. Select the affected element, then click on the pencil icon to edit it and fix the identified issue. The edit will apply to the target environment as part of the deployment. Read more about editing here: https://help.salto.io/en/articles/8553792-editing-files-during-deployments

  3. Fix the element in the service itself

    1. After fixing it, fetch the source environment, then re-create the preview by going back to selection and clicking "preview deployment", or start a new deployment

  4. Change the adapter configuration

    1. In case the fix requires setting some new environment configuration, make the neccessary steps, then re-create the preview by going back to selection and clicking "preview deployment", or start a new deployment

  5. Suppress the warning

    1. Some issues can be suppressed by changing the environment configuration, as detailed here: https://help.salto.io/en/articles/7793653-suppressing-deployment-preview-issues . After changing the environment configuration, re-create the deployment preview as explained above.

Did this answer your question?