SAP Knowledge Base Article - Public

3552416 - Status Code error 400 for Replicate Region Codes from SAP S4HANA in V2

Symptom

While replicating Region Codes from S4HANA to CNS you might come across the following error for the respective iflow in the CPI Monitor:

"org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://"CNS system URL"/sap/c4c/api/v1/inbound-data-connector-service/messages/sap.crm.i18nservice.entity.regionCodeS4ReplicationMessageIn with statusCode: 400"

Environment

SAP Sales Cloud Version 2

S/4Hana Cloud

Reproducing the Issue

  1. Log in CPI Tenant
  2. Go to Overview
  3. Go to Monitor Message Processing
  4. Filter for the erroneous messages for the iflow: Replicate Region Codes from SAP S4HANA
  5. Check the logs for HTTP_Receiver_Adapter_Response_Body

Cause

According to error details outlined below for the Response Body Response logs, it suggests that the package size specified in the communication arrangement in S/4 exceeds 500.


{"error":{"code":"inbound-data-connector.100","message":"Failed to create the inbound message.","details":[{"code":"inbound-data-connector.151","message":"Inbound messages cannot have more than 500 message requests."}]}}

Resolution

  1. Log in S/4Hana Cloud system
  2. Navigate to Communication Management
  3. Navigate to Communication Arrangement
  4. Locate the relevant communication arrangement for the artifact, then change the package size to, e.g. 50.
  5. Save the changes and redeploy.

See Also

Ensure you have set the Replication Model as RR_RM in the Communication Arrangement Additional Properties. 

Keywords

package size;400; 500 message requests; statusCode: 400  , KBA , CEC-CRM-INT , Integration for SAP Sales/Service Cloud , Known Error

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0