Action List call in OnFailure to do Ignore Failure

Is there a way for all Action List calls in OnFailure to run with Ignore Failure. I don't want to do an Ignore Failure on all the actions in these Action List because this Action List can also be called from other places in addition to OnFailure (an example is an Email Action List). Thus, if an action in this Action List (which is being called not from OnFailure) fails, then it would be handled by OnFailure. I read from another posting that this can be done in BeforeAction script to set Action.IgnoreFailure = True or False but I would have to do this for all Actions in this Action List. I was wondering if there's a better way. Thanks.

 

Hi Wayne,

I can’t think of a better way to do this - the scripting solution seems like the best way to do this.

.t8

Another (not really better) way would be to wrap the actions that are likely to fail in individual try/except blocks. Set a variable in your onfailure action list, then check for its existence in those try/except blocks. If it’s not set, reraise an exception. Depends how many actions you have that are likely to fail.

Steve