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
SAP S/4HANA Cloud
Reproducing the Issue
Use API Journal Entry – Post (Synchronous) to post.
Because the bulk of journal entries or items are too large that S/4 HANA Cloud spends a long time processing the data. The calling system does not get response from S/4 HANA Cloud within the time out period. The connection is reset in this situation.
- 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 S/4 HANA Cloud. 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.
API, Journal Entry – Post (Synchronous), time out, Error invoking soap operation, connection reset. , KBA , AC-INT , Accounting Interface , Problem