'While' activity not executing activities in body with condition 'True'

The ‘UiPath.Core.Activities.InterruptibleWhile’ activity is not executing activities in body with condition ‘True’.

Also not executing if the condition is set as ‘False’, which is of course the expected behavior.

(Studio Version 2023.12.0 Community Edition and UiPath.System.Activities package version 23.10.5 if either of these makes a difference.)

Hi,

Can you share your project? It’s no problem if sample which can reproduce the issue.

Regards,

@Taru ,

Please share the code screenshot if possible. Meanwhile please check if you are entering the Boolean value correctly.

image

Thanks,
Ashok :slight_smile:

If the ‘While’ activity in UiPath is not executing its body even with the condition set to True, check the following:

  1. Correct Configuration*: Confirm that the ‘While’ activity contains at least one activity inside its body.
  2. Break Conditions*: Ensure there’s no ‘Break’ activity being triggered unintentionally.
  3. Delays for Visibility*: Add a ‘Delay’ activity inside the loop to observe its execution.
  4. Debugging*: Use breakpoints and debug the workflow to step through the ‘While’ loop.
  5. Exceptions*: Ensure there are no exceptions being thrown within the loop; use a ‘Try Catch’ block to catch any errors.
  6. Infinite Loop Protection*: Verify that there is an appropriate exit condition to avoid UiPath’s infinite loop protection from stopping the loop.

Thank you so much for the fast replies. Unfortunately this was a false alert from me! I could not reproduce the issue in an empty workflow file and not even in the same file after closing and reopening the file. (I had tested multiple conditions before closing the file, and in the end tested literally with ‘True’ as ashokkarale above with no success.)

Thank you and my apologies!

1 Like

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