SAP Knowledge Base Article - Public

2830584 - Time out error occurs in Journal Entry – Post (Synchronous) API

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

Reproducing the Issue

Use API Journal Entry – Post (Synchronous) to post.

Cause

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.

Resolution

  1. Use Journal Entry – Post (Asynchronous) API instead of Journal Entry – Post (Synchronous) API
  2. If it must use Journal Entry – Post (Synchronous) API, try to reduce the bulk of journal entries or items
  3. 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.

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

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions