SAP Knowledge Base Article - Public

2596951 - Exception: Error In Message Header Mapping Agent Class Is CL_****

Symptom

You try to replicate data from external system to C4C using an A2A service, incoming message fails with error "Exception: Error in message header mapping; agent class is CL**"

Environment

SAP Cloud For Customer

Reproducing the Issue

1) Go to Administrator Work Center
2) Change the query to "Erroneus messages"
3) Select a failed message, choose actions and then error log
4) Message failed with error "Exception: Error in message header mapping; agent class **"

Cause

There are various reasons for this error message. This error is triggered while processing the messages that belongs to A2A service interfaces(ERP/CRM/HYBRIS/S4H/Other A2A services which uses Message Header)

Resolution

Verify the below mentioned points,

  1. Ensure that the related communication system has "SAP Business Suite" enabled.
  2. Ensure that the fields Business System ID , System Instance ID , Idoc Logical System ID, Client details are filled in the communication system.
  3. Ensure that the incoming message contains the Sender System ID as available in the Communication System.
  4. Ensure that the incoming message contains the Receiver System ID same as the My System ID(unique identifier for all C4C systems) available in the communication arrangement header.
  5. Make sure Preferred Application Protocol for Communication System is set as 5 - Web Service.
  6. Corresponding Communication Arrangements also have inbound Application Protocol as 5 - Web Service.

If you observe that any of these configuration is missing, complete the configuration - then save the communication system and reactivate the communication arrangement.

  1. Then restart the failed incoming message and check if it is processed successfully.
  2. If not, recreate the communication arrangement - then resend the message from source system.

See Also

https://blogs.sap.com/2016/09/10/message-header-handling-in-c4c-integration/

Keywords

ERP Integration with C4C; CRM Integration with C4C; Incoming message fails in C4C; Message Header Mapping; Error in Message Header Mapping; , KBA , error in message header mapping , header class , header mapping , agent class , cl_apfo_material_replicate_ipa , LOD-CRM-INT-ERP , Integration of C4C with ERP , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , LOD-CRM-INT-CRM , Integration of C4C with CRM , LOD-CRM-INT-EC , Integration of C4C with Employee Central , Problem

Product

SAP Cloud for Customer 1211 ; SAP Cloud for Customer 1302 ; SAP Cloud for Customer 1305 ; SAP Cloud for Customer 1308 ; SAP Cloud for Customer 1311 ; SAP Cloud for Customer 1402 ; SAP Cloud for Customer 1405 ; SAP Cloud for Customer 1408 ; SAP Cloud for Customer 1411 ; SAP Cloud for Customer 1502 ; SAP Cloud for Customer 1505 ; SAP Cloud for Customer 1508 ; SAP Cloud for Customer 1511 ; SAP Cloud for Customer 1602 ; SAP Cloud for Customer 1805 ; SAP Cloud for Customer add-ins 1802 ; SAP Cloud for Customer add-ins 1808 ; SAP Cloud for Customer add-ins 1811 ; SAP Cloud for Customer add-ins 1902 ; SAP Cloud for Customer add-ins 1905 ; SAP Cloud for Customer add-ins 1908 ; SAP Cloud for Customer add-ins 1911 ; SAP Cloud for Customer add-ins 2020 ; SAP Cloud for Customer core applications 1305 (old) ; SAP Cloud for Customer core applications 1308 (old) ; SAP Cloud for Customer core applications 1311 (old) ; SAP Cloud for Customer core applications 1402 (old) ; SAP Cloud for Customer core applications 1405 (old) ; SAP Cloud for Customer core applications 1408 (old) ; SAP Cloud for Customer core applications 1411 (old) ; SAP Cloud for Customer core applications 1502 (old) ; SAP Cloud for Customer core applications 1505 (old) ; SAP Cloud for Customer core applications 1508 (old) ; SAP Cloud for Customer core applications 1511 (old) ; SAP Cloud for Customer core applications 1602 (old) ; SAP Cloud for Customer core applications 1605 (old) ; SAP Cloud for Customer core applications 1608 (old) ; SAP Cloud for Customer core applications 1611 (old) ; SAP Cloud for Customer core applications 1702 (old) ; SAP Cloud for Customer core applications 1705 (old) ; SAP Cloud for Customer core applications 1708 (old) ; SAP Cloud for Customer core applications 1711 (old) ; SAP Cloud for Customer core applications 1802 (old) ; SAP Cloud for Customer core applications 1805 ; SAP Cloud for Customer core applications 1808 ; SAP Cloud for Customer core applications 1811 ; SAP Cloud for Customer core applications 1902 ; SAP Cloud for Customer core applications 1905 ; SAP Cloud for Customer core applications 1908 ; SAP Cloud for Customer core applications 1911 ; SAP Cloud for Customer core applications 2002 ; SAP Cloud for Customer core applications 2005 ; SAP Cloud for Customer core applications 2008 ; SAP Cloud for Customer core applications 2011 ; SAP Cloud for Customer, core applications 2.0 (old) ; SAP Cloud for Sales 3.0 ; SAP Hybris Cloud for Customer 1605 ; SAP Hybris Cloud for Customer 1608 ; SAP Hybris Cloud for Customer 1611 ; SAP Hybris Cloud for Customer 1702 ; SAP Hybris Cloud for Customer 1708 ; SAP Hybris Cloud for Customer add-ins 1705 ; SAP Hybris Cloud for Customer add-ins 1711 ; SAP LE APPLICATIONPLATFORM 1.0 ; SAP LE APPLICATIONPLATFORM 1.5 ; SAP Sales OnDemand 1.0 ; SAP Sales OnDemand 2.0 ; SAP Sales OnDemand 4.0