Exception is getting caught when single statement is written inside try block but not for sequence of statements.
I am using CE 2019.10(faced same issue with 2018.3).
Attaching xlml file for more details.
To reproduce the issue , i did run it in debug mode and navigated somewhere else to get Selector not found exception but it did not go to catch block instead it stopped execution.
Faced similar issue when i was trying to do practice scenarios from foundation training lesson 12. Even the Answer provided has same issue.
May I know at which activity this error occurs
Kindly ensure once that activity is inside a TRY BLOCK in a TRY CATCH activity
And also choose System.Exception in catch block of that TRY CATCH activity
I am clicking on Generate button and then extracting Name , Address, Email.
But when page is giving 502 error , it is unable to fetch those attribute and hence throwing exception.
As shown it is enclosed inside try block and catch block has System.Exception
yah if that error occurs it will go to CATCH block as exception is thrown Kindly ensure that we are not running in debug mode because only in that mode the catch wont take the exception
Published robot offline and then downloaded from robot tray and ran from there.
Flow continued execution this time even when i got 502 but then in catch block i have specified Log Message and Message box. Message box is not appearing and not able to find logged message in logs.
Facing same issue as of scenario 1 and scenario 2 in Try-Catch not working.
As per the solution , need to remove exceptionHandlerWorkflow from Project.json. But mine does not have any such thing.
@Palaniyappan
when i enclosed Invoke Workflow inside Try catch , its not going to catch block.
So, i included Try catch inside invoked workflow and it worked .
no buddy
if the invoked workflow placed inside a TRY block, fails, it will go to catch block for sure
but i wonder why i didnt
are we running in debug mode or normal mode
Cheers @Hrutuja_Deokar