cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Wait Error Handling

ParnabSinha_Cho
Level 5

Hi,

I have an object built on a web page with multiple dynamic wait. If at any stage the dynamic wait time's out the robot has to launch the web page again and go through the stages. From an error handling standpoint, should I add an exception after each time out and then add a recover stage to catch the exception close the browser and the resume at launch (with a retry counter of course) or can I just add nothing after the time out and add a recover stage to catch the exception. I have seen that if I add multiple exceptions after each time out sometimes there is a stack imbalance error.

Attaching a screen shot of the object for reference.

Thanks,
Parnab



------------------------------
Parnab Sinha Choudhury
RPA Developer / Business Analyst
------------------------------
Parnab Sinha Choudhury RPA Developer / Business Analyst
1 BEST ANSWER

Helpful Answers

Mukeshh_k
MVP

Hi Parnab Sinha Choudhury : Is there a reason why the multiple actions are taking place in side one single action itself ? Ideally as per the standards the action should do One activity at a time and should have proper exception message thrown at time out - it gives you more flexibility to retry things in organised manner on the process side.

Ideally the single action should look like this rather than trying to do more in one page itself:

14638.png

Also, even if you are trying to have multiple activities insdie one page action - the wait stage on time out would still require to throw exception message- if those are not linked to Throw Exception on time out the Exception occurring would have internal Exception error message : Internal : Failed to find stage linked from stage 'Time Out' which doesn't do any good from exception handling point of view - it should have a throw stage linked and exception message should exactly say which part has timed out when bubbling to process.



------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS England, United Kingdom, GB
------------------------------

Regards,

Mukesh Kumar

View answer in original post

2 REPLIES 2

Mukeshh_k
MVP

Hi Parnab Sinha Choudhury : Is there a reason why the multiple actions are taking place in side one single action itself ? Ideally as per the standards the action should do One activity at a time and should have proper exception message thrown at time out - it gives you more flexibility to retry things in organised manner on the process side.

Ideally the single action should look like this rather than trying to do more in one page itself:

14638.png

Also, even if you are trying to have multiple activities insdie one page action - the wait stage on time out would still require to throw exception message- if those are not linked to Throw Exception on time out the Exception occurring would have internal Exception error message : Internal : Failed to find stage linked from stage 'Time Out' which doesn't do any good from exception handling point of view - it should have a throw stage linked and exception message should exactly say which part has timed out when bubbling to process.



------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS England, United Kingdom, GB
------------------------------

Regards,

Mukesh Kumar

Thanks for your suggestion. As this was an old process, we will now do a redesign so that we have better error handling.



------------------------------
Parnab Sinha Choudhury
RPA Developer / Business Analyst
------------------------------
Parnab Sinha Choudhury RPA Developer / Business Analyst