Skip to main content

Type is not managed by Salto in the target environment

The element's type wasn't part of the target environment's last fetch

Written by Reut Barak

When you get the following error:

Cannot add the instance salesforce.{type}.instance.{name} because the {name} type is not managed by Salto in the target environment.

The most common reasons are:

  1. Type was recently created in the target org: fetch the target (a partial fetch of the type is enough, e.g. CustomObject for Custom Metadata Types), then refresh comparison on the deployment.

  2. Type doesn't exist in the target org: add the type itself to the deployment.

  3. Type is excluded in the target's configuration: include it (see Supported Salesforce Types), then fetch and refresh the deployment.

Did this answer your question?