Changing max run time of a javascript in DSeries

Document ID : KB000005701
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Customer gets an error when executing event trigger-time JavaScript script.

Error: A javascript was not able to complete execution in 300 seconds. Script execution has been cancelled.

Cause:

This is caused by the javascript in the application takes more time than the default setting of 300 seconds to complete execution.

This delay in execution could be attributed to various possible environmental conditions (network latency, resource unavailability, high resource usages).

 

Resolution:

To fix this issue, we can increase the the "maximum run time of a java script" parameter value from the Desktop Client.

On the Desktop Client, Admin -> Topology -> Server Shared Parameters -> "maximum run time of a java script (seconds)" default is 300 seconds.

Set this value to a higher value to ensure that the java script execution is not interrupted due to timeout.