Calling diferent sequences in loop-Stop a sequence and exucute next sequences

I have a Main.Xaml which has a for loop that calls different sequences one by one. In few cases while executing a called sequence I may encounter an issue on the application under test and I have to stop executing the current sequence and move back to main.xaml for further execution of next sequences in the loop. But I am unable find an activity or way to do this. (used “Terminate workflow” and it terminated entire execution).

Please assist here.

1 Like

Did you try using try-catch block for each of your workflows? It would catch any issue with your workflow and would just continue with the next invoked workflow after catching the exception.

Let me know if that’s not what you are looking for.

Thanks,
Rammohan B.

1 Like

Thanks. I tried this and its catching the exception, but I have statements after the Try catch activity which are also getting executed.

If an exception occurs I want the sequence to be stopped and go back to the main.xaml to pick the next sequence in the loop. I am unable to do that.

Surprisingly I missed to see this.I moved the entire called sequence into the TRY block and this worked. I throwed a user defined user exception and then catched it @Rammohan91 . Thank you. It helped me.

Great @saravana_689 :slight_smile:

Thanks,
Rammohan B.