"Until" times out but condition met on first iteration - Logic Apps

Viewed 27

I have an Until that keeps looping until it times out. I thought I had a good understanding of how to build it but I must be getting something wrong.

I start by initializing a variable:

enter image description here

Then I have my Until set up. It is to loop until the variable = 'TRUE'

enter image description here

My next step is a 'Compose' action. Because I have had the step fail but then succeed when I resubmit the action, so I thought I should include a delay before a second iteration plus a notification.

The delay and the notification only run if the 'Set variable' is skipped.

enter image description here

But as you can see here, it keeps looping until it times out at 60 runs and all of them set the variable to true.

Why is it not stopping after the first successful iteration?

What am I doing wrong?

enter image description here

1 Answers

This is because of the type of the Type Success that you are trying to compare. Make sure you change True to string(True). Below is the flow of my logic app.

enter image description here

RESULTS:

enter image description here

Related