I want to finish workflow if Error occurs

activities

#1

Hi, all.

I want to finish my workflow if Error occurs.
Now I use Try/Catch activity and Catch is correct.
But after Catch method, the originally workflow is going on.

I want to do below
・When Error occurs -> To show Message box
・User clicks 「OK」 button
・Robot ends its workflow

Please tell me how to solve this.

Thanks and Regards,
MIckey


#2

Hi, do you use REFramework?


#3

Thanks for your reply.

I don’t use it.


#4

I recommend you to use this framework to solve your issue.

this framework is good for project because of it’s already cover for error exception, queue, asset and screenshot.

Cheers,
Indra


#5

Thanks.
I wonder if I can do this without using REFramework.


#6

You can do it but more effort.


#7

@Mickey
Hi, You can add THROW activity inside your catch. It will terminate your workflow.:blush:


#8

Thanks for the reply.
I use THROW activity but it doesn’t work.

Main has thrown an exception
Source: Throw
Message: Error
Exception Type: Exception

Please tell me…
Thanks.


#9

@Mickey
Replace THROW with RETHROW.
And for the message box.
insert message box before RETHROW.
input ‘exception.message’ to your message box.

it will end your workflow without executing the proceeding activities.


#10

Thanks for your idea.
This case occurs Exception Message?


#11

@Mickey
Yes incase you want to know where the error occurs.


#12

Thank you :slight_smile: