Invalid cross reference id
Detection
- RegExp:
Error (.*) invalid cross reference id
Examples
Error Sales_Console invalid cross reference id
Resolution
{1} refers to an item that is missing in the target org (a profile, a record type, a page...).
- Find the missing item in {1}, and deploy it: retrieve it from your org with the Metadata Retriever of VS Code, commit it and save your User Story: sfdx-hardis adds it to manifest/package.xml
- With delta deployments, an item that did not change in the Pull Request is not deployed: change it in the Pull Request, or turn on useDeltaDeploymentWithDependencies (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)
- For a CustomApplication, deploy the profiles named in its <profileActionOverrides> with it, or remove those blocks