Loading

Industries CPQ: Incorrect Import Data Error on OverrideDefinition in VBT Deployment

Publiceringsdatum: Oct 15, 2026
Beskrivning

Issue

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.

Symptoms

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 error names the vlocity_cmt__OverrideDefinition__c object.
  • The affected product DataPack doesn't deploy to the target org.

Root Cause

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:

  • vlocity_cmt__OverridingAttributeAssignmentId__c
  • vlocity_cmt__OverriddenAttributeAssignmentId__c

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.

Lösning

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.

  1. In the VBT deploy log, note the product DataPack that reports the error, and find that product's record ID in the source org.

  2. 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)
    
  3. Review the results. Each returned record is an orphan Override Definition record.

    • If the query returns no records, go to If the Error Persists.
  4. Export the returned records as a backup.

  5. Delete the orphan records from the source org.

  6. Run the query from step 2 again, and confirm that it returns no records.

  7. Repeat steps 2–6 for every product that reports the error.

  8. Export the products from the source org again with VBT.

  9. Deploy the products to the target org with VBT.

  10. Confirm that the deploy completes without the Incorrect Import Data error, and check that the product attribute overrides appear correctly in the target org.

If the Error Persists

  • The query returns no records: Confirm that you ran the query in the source org and used the ID of the product that the deploy log names. If your org uses a different Vlocity managed package namespace, replace vlocity_cmt with your namespace.
  • The error names a different object (for example, vlocity_cmt__AttributeAssignment__c): The duplicate data is in that object, not in Override Definition. Check that object's records for duplicates, and review the error and known-issue guidance in the Vlocity Build Tool README on GitHub.
  • You want to check exported data before you deploy: Run the VBT validateLocalData command on the exported project. It detects missing and duplicate global keys. Fix the data in the source org, then export again.
Knowledge-artikelnummer

002475095

 
Laddar
Salesforce Help | Article