SAP Knowledge Base Article - Public

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


You imported a task and the status is completed with errors. After opening the error file, you see the error: "Cannot invoke "" because the return value of "java.util.Map.get(Object)" is null :- { java.lang.NullPointerException Cannot invoke "" because the return value of "java.util.Map.get(Object)" is null }".


  • SAP Service Cloud v2
  • SAP Sales Cloud v2


The error is coming from an incorrect code value of a list field.


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.


Value, Code, ErrorCode.toString(), null, Import, Export, Template , KBA , CEC-CRM-IMX , Data Import/Export for SAP Sales/Service Cloud , Problem


SAP Sales Cloud and SAP Service Cloud Version 2 1.0