Symptom
Journal Entry – Post (Synchronous) API encounters time out error and provides the following error message:
Error invoking soap operation; Caused by: java.net.SocketException: Connection reset; Caused by: Connection reset
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Use API Journal Entry – Post (Synchronous) to post.
Cause
Because the bulk of journal entries or items are too large that SAP S/4HANA Cloud Public Edition spends a long time processing the data. The calling system does not get response from SAP S/4HANA Cloud Public Edition within the time out period. The connection is reset in this situation.
Resolution
- Use Journal Entry – Post (Asynchronous) API instead of Journal Entry – Post (Synchronous) API
- If it must use Journal Entry – Post (Synchronous) API, try to reduce the bulk of journal entries or items
- Pay attention if document splitting is enabled in SAP S/4HANA Cloud Public Edition. In case there are many B/S items and P&L items in the request from the calling system, it might split B/S items according to every P&L item, which would result in a very large bulk of journal entry items and lead to a long runtime. In this case, it is suggested to include only one B/S item with many P&L items in request.
Keywords
API, Journal Entry – Post (Synchronous), time out, Error invoking soap operation, connection reset. , KBA , AC-INT , Accounting Interface , AC-INT-2CL , Accounting Interface (Public Cloud) , Problem