Loading
Prepare for Email to Become the Default Login ExperienceRead More
Get Started with Communications, Media, and Energy & Utilities (CME)...
Batch Job Failures

Batch Job Failures

Fix EPCProductAttribJSONBatchJob failures caused by a List to Map conversion error due to mismatched ValueDataType__c on AttributeAssignment__c records.

Resolve List to Map conversion error.

Issue

EPCProductAttribJSONBatchJob fails with an "Invalid conversion from runtime type List to Map" error.

Cause

Check if ValueDataType__c on the AttributeAssignment__c records match its definition.

Resolution

  1. Run this query to identify attribute assignments for the target product:
    select Id, vlocity_cmt__AttributeName__c, vlocity_cmt__ValueDataType__c, vlocity_cmt__AttributeId__r.vlocity_cmt__ValueType__c from vlocity_cmt__AttributeAssignment__c where vlocity_cmt__ObjectId__c = ':productId'
  2. If there are any differences, compare it against any other Product's AttributeAssignment__c and fix it.
  3. Rerun the batch job.
 
Loading
Salesforce Help | Article