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.
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).
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.