Data Deployment Error: FIELD_CUSTOM_VALIDATION_EXCEPTION: <object> must match Price Rule Target Object: <object>
When doing a data deployment, Salesforce may return the following error:
"FIELD_CUSTOM_VALIDATION_EXCEPTION:Price Action Target Object must match Price Rule Target Object:SBQQ__TargetObject__c"
Salesforce is not allowing Copado to insert the record in the destination org.
To fix this issue, try the options below:
- Temporarily disable Salesforce CPQ 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.