SAP Knowledge Base Article - Public

3215264 - How to remove and re-add the KUT extension from the service

Symptom

You are trying to update multiple values in a KUT field via Data Workbench, but the task fails with the following error message: "Invalid code; maintain correct ABC code" (where ABC stands for the name of the KUT field).

You have maintained the multiple values of the multi-valued field within quotes — for example, "Z123,Z456" (where Z123 and Z456 stand for valid values for the field), but the error still raised.

Environment

 SAP Cloud for Customer

Reproducing the Issue

  1. Go to Data Workbench work center.
  2. Go to Import work center view.
  3. Select Individual Object, choose Update Operation and then select the required Object.
  4. Click on Next.
  5. Upload the file in the Data Workbench.
  6. Click Next, then click Import.
  7. Go to the Monitor tab and find the CSV file with errors: Invalid code; maintain correct ABC code.

Cause

The support for multi-valued fields in Data Workbench was made available with system version 1811. You have created the Multi-valued fields before this version and must to re-add it in order to be supported by the service.

Resolution

  1. Log in to C4C
  2. Click on Start Adaptation mode
  3. Go to Customer -> Accounts
  4. Open any Account
  5. Click on Add, find the field(e.g., Segment)
  6. Go to Field Definition 
  7. Navigate to OData Services tab
  8. Click on Edit 
  9. Click on (-) icon to remove the field from OData service(E.g., customer)
  10. Save the changes
  11. Again Navigate to OData Services tab in Edit mode
  12. Click on (+) icon to add the field to OData service
  13. Save the changes

Once its added, refresh the OData Metadata, it should have annotation c4c:multi-valued="true", then customer can retry the DWB Update scenario.

Note: Multi-valued codelist feature for OData services is enabled some years back and customer has added the field to OData service prior to that and which needs re-addition of property to fix the metadata.

See Also

 2801678 - Unable to Update Multiple Values in a KUT Field via Data Workbench

Keywords

 Data Workbench, Invalid code, maintain correct, code, Multi-Valued Lists, KUT field , KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To

Product

SAP Cloud for Customer core applications 2111