Symptom
You imported a task and the status is completed with errors. After opening the error file, you see the error: "Cannot invoke "com.sap.crm.XXX.common.error.ErrorCode.toString()" because the return value of "java.util.Map.get(Object)" is null :- { java.lang.NullPointerException Cannot invoke "com.sap.crm.XXX.common.error.ErrorCode.toString()" because the return value of "java.util.Map.get(Object)" is null }".
Environment
- SAP Service Cloud v2
- SAP Sales Cloud v2
Cause
The error is coming from an incorrect code value of a list field.
Resolution
Review the values that were inserted for list fields and compare with the supported values in the Code List file.
- Go to Settings.
- Open Data Import & Export screen.
- Click on Download Template.
- Select affected entity.
- Enable complete entity option.
- Click on download template button.
- Open the zip file you downloaded.
- Open the files starting with Code_ and check if the correct code was maintained in the import template.
Keywords
Value, Code, ErrorCode.toString(), null, Import, Export, Template , KBA , CEC-CRM-IMX , Data Import/Export for SAP Sales/Service Cloud , Problem