Unable to exit parallel for each

Hello. I’m having an issue with exiting 2 parallel for each 1 wrapped on the other. Both are wrapped inside a Try Catch activity. When a certain condition is met, I have set a Throw activity with value as New System.OperationCanceledException. However, when condition is met, nothing happens and it hangs forever without going to the Catch block. A few days ago, it was working fine without any issues. I have not changed anything. I have also tested on a separate workflow and it exits fine. But on my actual workflow, it doesn’t.

@private_matter

Ideally it would terminate

Just try to recreate only the for eqch activity and try catch

Cheers

Inside the parallel for each, I have a Download file from url. sometimes it will cause an error. I’m catching them all as you can see in the screenshot.

But when I use another throw after the catch, it simply does not exit the main try catch and go to the catch block. If I insert the throw however before the download from file URL activity and before the error is caused, then it exists normally and opens the browser. I think because many errors are being caused at the same time, the program is unable to handle it. but I need to stop all iterations and proceed to main catch as that is my goal. is there a way to stop all threads when one single error arises?

look forget it I solved the issue. cheers.

1 Like

Kindly share the solution as well and mark the same as solution