SAP Knowledge Base Article - Public

3745186 - 'Message body exceeds configured size limit (40.0 mb)' Error when replicating Sales Order Attachments via Standard iFlow

Symptom

When Sales order attachments are replicated via iFlow 'Replicate Sales Order Attachment to Business Suite' the following error message  is raised:

'Message body exceeds configured size limit (40.0 MB). Actual body size was XX MB. attachment size was 0 B'

This occurs even though the size of each individual attachment is <40M. 

Environment

  • Product: SAP Cloud for Customer core applications
  • Integration of C4C with S/4 HANA

Reproducing the Issue

  1. Trigger the standard integration flow to replicate sales order attachments from C4C to S/4HANA.
  2. Ensure the resulting message groups multiple documents with an aggregate size > 40 MB.
  3. Observe the runtime failure with the error “Message body exceeds configured size limit (40.0 MB)”.

Cause

  • Attachments are grouped by the sender into a single payload and delivered within the message body, not as adapter “attachments”.
  • The HTTPS/SOAP sender adapter enforces a default maximum body size of 40 MB; when exceeded, processing stops with the stated error.
  • The “attachments 100 MB” aggregate limit does not apply here because the content arrives in the body section.
  • Externalizing this body-size parameter in the delivered standard content is not supported.

Resolution

  1. Keep the payload within 40 MB by limiting file size or the total grouped content so the single message body does not exceed 40 MB.
  2. If business requires larger payloads, edit the standard iFlow and increase the HTTPS/SOAP Sender “Body Size (in MB)” under Conditions > Maximum Message Size, then thoroughly performance-test and monitor for memory impact. Please note this is considered customization and not supported by SAP.
  3. If avoiding customization is required, consider splitting or chunking attachments at the sender so each message body remains ≤ 40 MB.

See Also

Keywords

message body exceeds configured size limit, 40 MB, maximum message size, https sender, soap sender, iflow, payload too large, attachments grouped in body, c4c to s/4, sales order attachments, cloud integration, size limit error, 100 MB attachment limit, runtime error, replication failure , KBA , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , Problem

Product

SAP Cloud for Customer core applications all versions