cancel
Showing results for 
Search instead for 
Did you mean: 

Exception Handling

SurajJadhav
Level 5
hello guys, Can anyone help me to understand how exception handling actually works. I am trying step over and step out . I have two pages the sub page contains exception stage and i am recovering that exception on main page. When i go to sub page by step in and i'm using step out to come out of that page to main page but it won't come back on main page it goes in infinite loop. but if i remove recover stage from main page then it works fine. so whats the concept i have tried using breakpoints when i tried breakpoints i come to know flow is working fine. After step out the exception bubble up to main page and caught by recover stage. so can anyone help me to figure out whats actually happening and how exception bubbling work normally and with step over and step out. thank you
11 REPLIES 11

TomaszAdamski
Level 5

I have already read this guide but still didn't understood whats happening..

John__Carter
Staff
Staff
Difficult to say without seeing your diagram but infinite loop suggests you are throwing an exception back to a resume on the same page. Bubbling always works in the same way - the exception move upwards towards the Main page of the process, and the resume stage is used to intercept it before it terminates the process. The resume can be on the same page as the source of the exception or on a higher page. Blocks can also be used to allow resumes to take responsibility for sections of a page.

SurajJadhav
Level 5
hello john , Thanks for the reply I have a scenario it contains only 2 pages sub page contains start and exception these 2 stages and main page recover the exception resume the process and end it normally. when I go to sub page by step in and I use step out then my execution goes into end less loop. can you help me to understand why is this happening. on main page I have used blocks also exception only came from sub page only Thank you.

John__Carter
Staff
Staff
Have you tried just pressing Play to see how the process works? The trouble with Step Out is you can't see what is happening. You must have configured your exception handling wrongly somehow because infinite loops cannot happen without a design error.

Actually my process works well when i run it with go button or through step over. I am trying to understand the step out condition. here what i found when u place a recover stage in main page and try step out from sub page which contain exception stage it goes into endless loop, but when you remove recover stage from main page and try step out from sub page it works well.

Denis__Dennehy
Level 15
If you have not done so already, import the Lifecycle Orientation training solution and look at that process that includes best practice exception handling. You should be able to step through that solution so that you can understanding. You should then always use the Process Template as the basis for evey process you create in the Blue Prism product and it will enforce the best practice exception handling and ensure your solution looks like the Lifecycle Orientation solution example.

SurajJadhav
Level 5
Hey guys I have attached my Bprelease file please check it once and tell me how step out works exactly with exception and recover stage please try to debug process with step in to asd page and then once you are on asd page then use step out and see what happens it goes into infinite loop if you remove recover stage from main page the exception is thrown to main page. Thanks for your feedback

SurajJadhav
Level 5
http://www.blueprism.co.uk/product/release""> exception handling demo 2017-10-10 12:03:48Z 10 Exception Handling Demo admin http://www.blueprism.co.uk/product/process"">68-2611.25asd0-1051.25-45-3456030a77fb596-a2f9-41fe-8c4e-15b3063f189c-45-1356030360-180150907f6424b7-9f1a-4c60-9313-1e4e6e12fd7b-195-105150907f6424b7-9f1a-4c60-9313-1e4e6e12fd7b15-105603043fa5617-e112-484b-9d14-3b9d62162df97f6424b7-9f1a-4c60-9313-1e4e6e12fd7b30456030-45-2556030a885633f-5af6-4549-9e98-9cf4bfd98ad57f6424b7-9f1a-4c60-9313-1e4e6e12fd7b7f6424b7-9f1a-4c60-9313-1e4e6e12fd7b240-1056030105-25560307a4f3677-217d-4d7f-9a6a-dd27bee854b8105-1656030a885633f-5af6-4549-9e98-9cf4bfd98ad5-135-28533060 http://www.blueprism.co.uk/product/process-group"">