Skip to main content
Cadet | Tier 2
December 1, 2021
Question

Long pauses when entering a loop.

  • December 1, 2021
  • 6 replies
  • 143 views

What could be the reason for a long pause when entering a loop.

 

I have checked that the execution time is low but the bot still hangs temporarily.

    6 replies

    Pradeep Kintali
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    December 1, 2021

    @Daniel Kendall​  - Could you please elabroate in Loop -> which iterator you have selected. it will help us to identify the issue.

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    December 1, 2021
    Dan 5537Author
    Cadet | Tier 2
    December 1, 2021

    So this issue is before I released I could program Else-If statements.

    I was having a loop run once with an try/catch try to run and if fail break

    Oddly in this scenario it would hang before it entered the loop.

     

    I have another issue for example with an ELIF where it does not execute the else and just fails e.g.

     

    msedge_DEfPLoa2LoIf there is a more elegant solution to essentially immediately skip a step if execution fails that would be ideal.

    Dan 5537Author
    Cadet | Tier 2
    December 1, 2021

    Thank you. This is good to know

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    December 1, 2021

    Sometimes the package is not loaded properly when the process is started or does not respond to the actions moving one from another action.

    If this issue is not resolved then please reach out to the AA support team as well.

    _Tamil_
    Ashwin A.K
    Navigator | Tier 3
    December 1, 2021

    Hi @Daniel Kendall​ ,

     

    Since you are using an If: Object Action, could you scroll down and check if you have provided a shorter timeout?

    I bet its 15 seconds, since that is its default value.

     

    KeepTryingObject 

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com