Data Deployment Error: FIELD_CUSTOM_VALIDATION_EXCEPTION: Only one target object is allowed for localization record
When doing a data deployment, Salesforce may return the following error:
“FIELD_CUSTOM_VALIDATION_EXCEPTION: Only one target object is allowed for localization record”
Salesforce is not allowing Copado to insert a localization record in the destination org.
To fix this issue, try the options below:
- Temporarily disable the triggers in the destination org before deploying the data template.
- A more general advice is to check that a new validation rule or trigger is valid for your existing data before adding it to your destination org. Alternatively, for the purpose of the deployment, you may choose to filter and exclude the record(s) that give the error.