How many times will this be tried?

Hello

My workflow is:

  1. I have a try catch activity and inside try I have my things and then in Catch I have set variable value: error = no

then I have a flow decision stating that if error = no then automation will carry on or else it will do the same thing again.

Will this create infinite loop? how can I limit this to lets say three times?

@anon40731888

This is how you cna limit

  1. create a variable counter and set value to 0
  2. in the try at the end set the value of counter to 0
  3. in catch block use assign with counter = counter + 1
  4. in the descision include bool_error And counter <=3

cheers

what will happen after three tries then? automation will just fail righT?

@anon40731888

Automation will go to the false side…if you need to fail…then include a if condition in the catch block after the increment aasign and use counter>3 condition

and on then side use rethrow or throw a new error usign throw activity

else side can be left blank

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.