Loop Count defaulting to 3

Christopher Fryett 125 Reputation points
2025-10-17T22:21:49.69+00:00

I have written a flow that uses a do-while loop and it has been breaking out of the loop after 3 when the condition is not met. I have tried to use other values and it is not accepting them either. I have also tried to make it more dynamic by using coalesce and adding that to the loop count but that is not working either.

In one of my test runs it did, but then stopped working. Why is this inconsistent in behavior using either method?

int(coalesce(triggerBody()?['AccountNumberGenerator']?['MaximumAttempts'], 5))
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} votes

1 answer

Sort by: Most helpful
  1. Christopher Fryett 125 Reputation points
    2025-10-20T22:54:31.0233333+00:00

    Unsure how to close this or at least say it was answered.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.