Skip to content

Custom metadata type not available

Detection

  • RegExp: Error (.*) Custom metadata type "?([^"\s]+)"? is not available in this organization

Examples

  • Error Setting.Default Custom metadata type "Setting__mdt" is not available in this organization

Resolution

Records of {2} are deployed, but the custom metadata type {2} itself is not in the target org.
- Deploy the type (folder objects/{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/)

Comments