I have been trying to deploy a package through SFDX (sfdx force:source:deploy -x manifest/package.xml ..). My package contains custom Metadata to be deployed.I have made sure that they are in my package and also in package.xml. But when I deploy the package, I get an error:

Custom metadata type Marketing_Cloud_Config__mdt is not available in this organization.

Do I need to first deploy custom metadata and then deploy the rest? Attaching the screenshots.Deployment Error

VSCODE package.xml

1 Answer 1


You also need the Custom Metadata types themselves, which are exposed as CustomObject entries:


Note the use of __mdt instead of the "usual" __c suffix.

Both the CustomObject entries and CustomMetadata entries may be deployed at once in the same package.

  • Thanks @sfdcfox that works!!
    – Chetan
    Apr 25, 2020 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.