Not available for deploy for this organization
Detection
- RegExp:
Error (.*) Not available for deploy for this organization
Examples
Error Sales_Policy Not available for deploy for this organization
Resolution
The user of the CI/CD deployments probably lacks the rights (profile, permission sets...) to manage {1}, or the feature of {1} is not enabled in the target org.
- Assign the needed permission sets to the user of the CI/CD deployments (the user of the connected app of the branch), then run the job again
- If {1} is a User Access Policy, enable User Access Policies in the target org first (Setup -> User Management Settings)
- If {1} only exists in some orgs, remove it from the deployment to the others with a deployment action of type remove-packagexml-items (https://sfdx-hardis.cloudity.com/salesforce-devops-work-on-user-story-deployment-actions-remove-packagexml-items/)