I have scenario where I have created a batch macro to run set of SQL queries in sequence, but if in case if my second Iteration fails, then macro should not run the third instance. right now, it runs through all the Iterations and then the workflow results in the error at the end of the workflow which is taking more than 4 hours.
It should stop running the rest of the Iterations and trigger an email if any Iteration fails in between.
any workaround to fix this issue is highly appreciated.