You are here:
Batch Job Failures
Fix EPCProductAttribJSONBatchJob failures caused by a List to Map conversion error due to mismatched ValueDataType__c on AttributeAssignment__c records.
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
-
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' -
If there are any differences, compare it against any other Product's
AttributeAssignment__cand fix it. - Rerun the batch job.
