How to Solve Web Service Error: ” Read ECONNRESET”

By | December 31, 2019

In Sage X3, we may come across the error “read econnreset” while invoking subprogram-based standard web service ‘AOWSIMPORT’ using a third party.

Refer to the below figure:

read econnreset error while invoking web service
Read econnreset error while invoking web service

To invoke standard web service ‘AOWSIMPORT’ and its input XML, please refer the link:https://www.greytrix.com/blogs/sagex3/2019/05/30/how-to-invoke-import-export-template-through-web services/

Cause:

This is due to the value of the clbfile I_FILE is set to 0. Refer the below figure:

Mapping tab of AOWSIMPORT web service
Mapping tab of AOWSIMPORT web service

Follow the steps given below to solve this error:

Navigate To: All > Development > Script Dictionary > Webservice

  1. Choose AOWSIMPORT from the left menu
  2. Go to the Mapping tab and locate I_FILE
  3. Increase the length value to 8.(example: 8 = (512*(2^8)-2) =131,070 characters)

Refer the below figure:

Mapping tab of AOWSIMPORT web service
Mapping tab of AOWSIMPORT web service

In this way, we can solve the ” Read ECONNRESET” web service error while using AOWSIMPORT standard sub-programmed web service.

In this way we can solve the web service error “read ECONNRESET” while using AOWSIMPORT standard subprogram-based web service by changing the length of I_FILE.