When you deploy Industries CPQ products (Product2 DataPacks) from a source org to a target org with the Vlocity Build Tool (VBT), the deploy fails for one or more products and reports an Incorrect Import Data error on the vlocity_cmt__OverrideDefinition__c object.
The VBT deploy log shows an error similar to this one:
Error Message -- Incorrect Import Data. Multiple Imported Records will incorrecty create the same Salesforce Record. vlocity_cmt__OverrideDefinition__c: OverrideDefinition
The source org contains orphan Override Definition records. An orphan record is a vlocity_cmt__OverrideDefinition__c record where one or both of these fields are empty:
VBT uses Vlocity Matching Keys (a custom metadata type) to define what makes each record unique, so that it can decide which record to create or update in the target org. The "Multiple Imported Records will incorrectly create the same Salesforce Record" error means that the exported data contains duplicates: more than one imported record would map to the same Salesforce record. For this error, the duplicate data comes from the orphan Override Definition records.
Find and delete the orphan Override Definition records in the source org, then export and deploy the product again.
Before you start: Back up any records before you delete them, and make the change in the source org — not the target org.
In the VBT deploy log, note the product DataPack that reports the error, and find that product's record ID in the source org.
In the source org, run this SOQL query. Replace <Product ID> with the product's record ID:
SELECT Id, vlocity_cmt__OverridingAttributeAssignmentId__c, vlocity_cmt__OverriddenAttributeAssignmentId__c
FROM vlocity_cmt__OverrideDefinition__c
WHERE vlocity_cmt__ProductId__c = '<Product ID>'
AND (vlocity_cmt__OverridingAttributeAssignmentId__c = null
OR vlocity_cmt__OverriddenAttributeAssignmentId__c = null)
Review the results. Each returned record is an orphan Override Definition record.
Export the returned records as a backup.
Delete the orphan records from the source org.
Run the query from step 2 again, and confirm that it returns no records.
Repeat steps 2–6 for every product that reports the error.
Export the products from the source org again with VBT.
Deploy the products to the target org with VBT.
Confirm that the deploy completes without the Incorrect Import Data error, and check that the product attribute overrides appear correctly in the target org.
vlocity_cmt with your namespace.validateLocalData command on the exported project. It detects missing and duplicate global keys. Fix the data in the source org, then export again.002475095

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.