Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script ran too long

3 REPLIES 3
Reply
Message 1 of 4
adminplm360
444 Views, 3 Replies

Script ran too long

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.

3 REPLIES 3
Message 2 of 4

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,



Bastien Mazeran

Technical Support Specialist

Message 3 of 4
Asingh5
in reply to: bastien.mazeran

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?

Message 4 of 4
mozhar
in reply to: Asingh5

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?

Valery Mozhar

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums