SAP Knowledge Base Article - Public

3488160 - Error ".common.error.ErrorCode.toString()" To Import Data Via Data Import & Export Tool

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.

  1. Go to Settings.
  2. Open Data Import & Export screen.
  3. Click on Download Template.
  4. Select affected entity.
  5. Enable complete entity option.
  6. Click on download template button.
  7. Open the zip file you downloaded.
  8. 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

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0