Skip to content

Condition missing reference

Detection

  • RegExp: Error (.*) field integrity exception: unknown \(A condition has a reference to (.*), which doesn't exist.\)

Examples

  • Error Account_Flow field integrity exception: unknown (A condition has a reference to Account.Old__c, which doesn't exist.)

Resolution

{1} refers to {2}, which is not in the target org. You can either:
- Deploy {2}: 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/)
- Remove the reference to {2} from {1}

Comments