Skip to main content
Question

Send Customer Order Invoice - 401 Unauthorized

  • April 24, 2025
  • 0 replies
  • 39 views

Forum|alt.badge.img+6

Hi,

Has anyone had the following issue, where multiple invoices are sent together the background job is failing on every second one.

The error in the job is 401 Unauthorized.

I have traced it to the following SOAP message:

POST /fndext/soapgateway HTTP/1.1
Host: xxxx.xxxx.xxxx:xxxx
Cookie: JSESSIONID=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
InteractiveMode: FALSE
Content-Type: text/xml;
Content-Length: 546
SOAPAction: soap_access_provider:FormatReport:RequestFormatting
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Accept-Language: en-US
Run-As-Identity: IFSPRINT
Connection: close

<?xml version="1.0" encoding="UTF-8" ?>
                     <SOAP:Envelope
                     xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
                     xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
                     xmlns:xsd="http://www.w3.org/1999/XMLSchema">
                     <SOAP:Body><PRINT_REQUEST><RESULT_KEY>3631517</RESULT_KEY><FORMAT_REQUEST>LOCALE_LANGUAGE=en^LOCALE_COUNTRY=US^USER=XXXXXXX^</FORMAT_REQUEST><RENDERED_OUTPUT_ID>0</RENDERED_OUTPUT_ID></PRINT_REQUEST></SOAP:Body></SOAP:Envelope>

 

The first message is received at 8:45:39 for example and takes 3 seconds to process. The next message is received after the first has completed, it fails immediately, the only difference in the 2 messages is the result_key. I have checked the report archive, the PDF is available. 

If I replay the message in postman it works fine. 

As the 2 requests in quick succession is the cause of the issue, not credentials or access, I am thinking it must be a resource issue on the server. Does anyone know what resource I need to increase.

 

Regards,

 

Kevin