SAP Knowledge Base Article - Public

2869396 - Error thrown "Invalid code; maintain correct code." while trying to upload data in Data workbench

Symptom

You are trying to upload data through Data workbench but it throws  "Invalid code; maintain correct code".

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to the Data Workbench work center.
  2. Click import.
  3. Select Individual Object.
  4. Select Import.
  5. Select the object.
  6. Upload the attached csv file.
  7. Click next.

Cause

The codes maintained in the file had some extra spaces maintained before or after the code. For e.g."ABC" is the code and you have maintained an extra space after the code like "ABC " or " ABC".

Resolution

Please remove the space before or after the code in the file and the upload will work.

Keywords

Invalid code, code list, Data workbench , KBA , LOD-CRM-INT-DWB , Data Workbench , Problem

Product

SAP Cloud for Customer core applications all versions