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
- Log in CPI Tenant
- Go to Overview
- Go to Monitor Message Processing
- Filter for the erroneous messages for the iflow: Replicate Region Codes from SAP S4HANA
- 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
- Log in S/4Hana Cloud system
- Navigate to Communication Management
- Navigate to Communication Arrangement
- Locate the relevant communication arrangement for the artifact, then change the package size to, e.g. 50.
- 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