Custom Metadata Type cannot be deployed if it has validation rules
Last updated 2021-05-26 ·Reference W-3554586 ·Reported By 25 users
Custom Metadata Type cannot be deployed if it has validation rules.
1. Create a custom metadata type, add one text custom field, and add validation rule for a standard field
2. Retrieve the custom metadata type via workbench
3. Unzip the file which is retrieved at 2, open custom metadata type file, edit the length of custom field, zip it as the same structure as the one which is retrieved
4. Deploy the modified zip file via workbench
You will see the error "Cannot specify: validationRules for Custom Metadata Type"
To remove the validation rule in the Object.xml manually if you are using MetaData API.
Reported By (25)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.