Skip to content

Insufficient access rights on cross-reference id

Detection

  • RegExp: Error (.*) insufficient access rights on cross-reference id

Examples

  • Error My_Flow insufficient access rights on cross-reference id

Resolution

{1} refers to an item the deployment user can not access, or can not change with a deployment.
- If {1} is a Flow to delete, list it in manifest/destructiveChanges.xml: sf hardis:project:deploy:smart deletes all its versions through the Tooling API
- If you changed a custom field from unique to not unique, make the change manually in the target org
- Check that the user of the CI/CD deployments can see the records and items {1} refers to

Comments