Skip to content

Global value set of a record type not resolved

Detection

  • RegExp: Error (.*) Global value set (.*) in record type (.*) on the entity (.*) cannot be resolved

Examples

  • Error Account.Partner Global value set Regions in record type Partner on the entity Account cannot be resolved

Resolution

Record type {3} of {4} uses global value set {2}, which is not in the target org.
- Deploy the GlobalValueSet {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/)
- Or remove the values of {2} from record type {3}

Comments