How to ensure the xsjs service runs for a long time?

Hello Experts,

I am uploading a 30MB file (100K rows) using UI5 File Uploader and a XSJS service.

Once I trigger the execution, after around 10 mins the call error out with this response: "File upload failed: The execution of the script has exceeded the maximum request runtime."

How can ensure that the service gets to execute for a long time without timeout?

Best Regards,

Ashok.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 10, 2017 at 07:41 PM

    For anyone who still needs this info...

    Probably the XS Engine get stuck executing the sql query to retrieve the rows, after 300 seconds on same query, the engine will return:

    "The execution of the script has exceeded the maximum request runtime"

    You can increase the maximum timeout of xsengine for running a query at:

    xsengine.ini->httpserver->max_request_runtime

    For your "file upload" specfic case, keep in mind that the xs engine has a limited amount of memory, deal with huge variables to store the result set could cause problems.

    (XS Engine Parameters Details):

    https://help.sap.com/doc/6b94445c94ae495c83a19646e7c3fd56/2.0.02/en-US/86c9d3762a6b47039346f8ef075f8a7a.html

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content