/scripts/ahub.form.attachments.js
0

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

Oct 20, 2016 at 03:15 AM

373

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Oct 10, 2017 at 07:41 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Skip to Content