Hi
I'm receiving this message:
[CreateTaskForPhases] com.dms.scripting.exceptions.ScriptTimeLimitException: Script ran too long.
This is an action script that runs when a transition occurs. I had the same script when an item was created and I never encounter this error.
Hi,
Could you please try to move portion of your current action script into a library script and report back on whether that helps work around the timeout error?
Regards,
I had the same error and I made a library out of my code to reduce it, it still doesnt work. I also heard that I can use a setTimeout function but I dont know if that will work. Can someone provide a solution?
Have the same problem.
E.g. I try to check and update all of attached (relationships) Items, especially if amount of the Items is greater than 100.
var list_Items = loadItem(itemID).relationships; var reportPercentage = {}; for (var keyItem in list_ReportItems) { var item_Report = list_ReportItems[keyItem].item; if (item_Report.INTRESULT !== null) { reportPercentage[item_Report.YEAR] +=1; reportPercentage[item_Report.MONTH] +=1; } }
Is there any way to increase a time for script running?