Custom metadata entry not found
Detection
- RegExp:
Error (.*) In field: (.*) - no CustomMetadata named (.*) found
Examples
Error Account_Rules In field: field - no CustomMetadata named Setting__mdt.Default found
Resolution
{1} refers to custom metadata record {3} of type {2}, which is not in the target org.
- Deploy the record {3}: 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/)