cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue with Exception used for terminating

MayankGoyal2
Level 8
I have a master exception recovery on main page of process, which is not attached with block to any stage. The aim of this is to handle any left out exception due to which process might terminate and gracefully terminate the process. In master recovery flow, I capture the exception reason, stage etc, call some actions like email etc. for termination (misc steps) and then throw an exception to terminate my process. This works fine and whenever process is terminating, it logs proper reason before terminating.

Now consider a situation that Misc steps within master exception recovery sometimes fail and hence I simply put a recover with block for these stages so that any exception in these stages are ignored and process still terminate with actual reason. But this takes into infinite loop which i am not able to understand as I haven't used any RESUME STAGE.

Kindly provide some inputs to understand this concept.

19617.png


------------------------------
Mayank Goyal
------------------------------
4 REPLIES 4

BalazsRoman
Level 3
Hi Mayank, 

If you're getting the exception details with the Multi1 stage, just try adding a resume stage between Multi1 and Misc Steps to get out of recovery mode and terminate the exception. 

Once you hit the resume stage, Blue Prism will be able to properly raise the potential second exception caused by the Misc Steps.

Afterwards in the Exception stage you can provide the captured exception details to re-throw it manually.

Hope this works,
Balazs

------------------------------
Balazs Roman
Junior RPA Consultant
human+
Europe/London
------------------------------

@Balazs Roman ​- Thanks a lot for your response. If we add a resume stage between multi1 and Misc steps and in case there was no exception raised by Misc steps, then terminate will push the flow into infinite loop. Misc steps is something which may or may not get exception.

------------------------------
Mayank Goyal
------------------------------

Hi Mayank,
As you had mentioned that you are not sure whether BOT may/may not get error at 'Misc' calculation stage. refer screenshot and try to proceed in that manner to avoid infinite loops.
Refer below screenshot.
19610.png 
19611.png

As i am passing Data1 item error message into "Page1" (new page)
In 2nd image (i.e., inside the page where you need to keep your Misc calc stage) if you have any error message there, append error message to actual error message and throw, else throw back the same error message what you got into this page as input param from Main page.

Let me know if you are not clear in understanding this.

This will work.

------------------------------
Yeswa Vaibhav Alwar Nerella
Associate Consultant
Capgemini
Asia/Kolkata
------------------------------

@Yeswa_Vaibhav_1 ​​- Thanks this help for now.

------------------------------
Mayank Goyal
------------------------------