2616338 - C4C replication error "Code list mapping for Region Code XX for XX Country is missing"

SAP Knowledge Base Article - Public

2616338 - C4C replication error "Code list mapping for Region Code XX for XX Country is missing"

Symptom

Whwn trying to replicate Customers/BP from ERP/S4, the following error occurs in the incoming payload: "Code list mapping for Region Code XX for XX Country is missing"

Environment

SAP Hybris Cloud For Customer

Reproducing the Issue

  1. Go to Administrator Work Center and select WebService Messages Monitoring
  2. Change the query to "Erroneus messages"
  3. Select a failed message, choose actions and then error log
  4. Message failed with error "Code list mapping for Region Code XX for XX Country is missing"

Cause

The region codes in C4C have context assigned to them, which is the country code

A region code may occur multiple times. So in order to uniquely identify a regional code it has to be considered in the context of the country.

The error occurs due to missing code list mapping of region codes.

Resolution

You should maintain a Code List Mapping (via Business Configuration) for the time zone as follows:

  1.  Go to Work Center  Business Configuration and click on OVERVIEW.
  2.  Search the configuration element "Code List Mapping for Integration with External Applications and Solutions"
  3.  Go to Maintain Code List Mapping
  4.  In tab "Code List Mapping Definition" select "RegionCode" for Local Data Type Name.
  5.  Under Code List Mapping Rule, click Add Row
  6.  Directly select "Local Context", i.e. desired country code (XX).
  7.  In tab "Code List Mapping Rule" select Mapping Rule = "Local And Remote Codes Are Equal"
  8.  Once you select the mapping rule, mappings rows are automatically added to the table.
  9.  Then change the rule to " Map Individual Codes".
  10.  Now you can add/edit the existing mappings for the region codes specific to the country.

Keywords

ERP Integration with C4C; S4 Integration with C4C; RegionCode; , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , Problem

Product

SAP HYBRIS C4C 1802 ; SAP HYBRIS C4C 1805