Using a break in a catch within a foreach causes robot to hang

Scenario: Break hangs when used in a catch. This does not error or produce an exception it simply hangs while trying to execute.

Steps to reproduce:

For this error you need a foreach with a try and catch where the break is in the catch.

For example:

for each item in array

check false(btest)

checkpoint exception

Current Behavior: The process hangs.

Expected Behavior: The for each should break out and carry on executing the rest of the flow.

Studio/Robot/Orchestrator Version: 2017.1

Last stable behavior: If the break is outside of the try catch it executes correctly. However this does mean that we have to do a larger try catch or other methodology that is inefficient.
Last stable version:This was not tested in any other versions
OS Version: windows 7
Others if Relevant: (workflow, logs, .net version, service pack, etc):

We have a workaround for this but i thought it worth logging as this would seem to be a bug.


1 Like


hello guys, this is a know issue. thanks a lot!

1 Like

Hello gabriel,

Do you have any idea on when it could be resolved (if planned to be) ?

Thanks a lot,


Hello, this is not planned to be changed in the near future.

Hi Gab,

How can i avoid this? If I want to skip the current item in the foreach loop every time it hits an exception.

whats the alternate approach to avoid the robot hanging?

Hi there, depending on what functionality you need you could encapsulate your foreach in a try catch and then use a checkpoint exception or a throw to specifically throw outside of the foreach.