SAP Knowledge Base Article - Public

3194899 - SAP ERP and CPI Error: Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxIOException: Error writing request body to server.

Symptom

User is getting the following error in the ERP CPI: Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxIOException: Error writing request body to server.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors HXM suite
  • SAP Cloud Integration (CPI)
  • SAP ERP / S4

Reproducing the Issue

  • The user runs the employee master data replication program
  • The errors in the systems occur

Cause

  • The pagesize in CPI is too large
  • The ERP is unable to process such a large payload

Resolution

1. Reduce the pagesize of the ERP connector in CPI to 100:

Keywords

ERP, S4, CPI, employee master data,  Could not generate the XML stream caused by , KBA , LOD-SF-INT-CPI-ERP , Standard SF to SAP ERP or S/4HANA Integration using CPI , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HXM Suite all versions

Attachments

Pasted image.png
Pasted image.png