cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimmyWork
Memorable Member
Memorable Member

WHat is wrong with my "Do until"

Hi i dont know what im doing wrong as i know i got this to work before.

 

What im doing in my flow the followin.

Variable: ContentTypeStus = Running

Then i check if the content types are available on the SharePoint site. If they are available i set the ContetTypeStatus variable to YES.

Im doing this in a DO until. But for some reason it only run once and then the statement returns false and it just moves forward in the flow. I want to loop in do until, until the content types are available. I have tried the following.

Do until: ContentTypeStatus is not equal to Running
Do until: ContentTypeStatus is equal to Running

Do until: ContentTypeStatus is equal to YES

Do until: ContentTypeStatus is not equal to YES

 

What happens is it will only run once, the first time i except it to not pick up the content types, maybe the 3rd time it should but the flow will just move forward it will not stay in the loop so if the content types are missing it will not set the ContentTypeStatus variable to YES it will just be condition is false and then moves forward in the flow, 1 single try.

 

2020-02-06 20_50_15-Edit your flow _ Power Automate.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @JimmyWork ,

 

The second test is correct.

Please add a Delay under the Set variable action in the second test to see if the loop would still run 2 times.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

4 REPLIES 4
JimmyWork
Memorable Member
Memorable Member

I dumbed it down even now.

For some reason the Do until will run even if variable is set to make it stop running. if i set count to 5 it will run 5 times even if "do until" condition is meet.

 

Result from test 1 looks correctResult from test 1 looks correctFirst check i set to fail and tries 2 timesFirst check i set to fail and tries 2 timesResults from second test, condition is meet but it still runs 2 times and condition is meet both timesResults from second test, condition is meet but it still runs 2 times and condition is meet both timesSecond check is set to meet the conditionSecond check is set to meet the condition

 

 

 

If i select variable to be integer instead of string the condition seems to work. Something is wrong is condition is meet and the value is set as string for the variable the do until will keep running

Hi @JimmyWork ,

 

The second test is correct.

Please add a Delay under the Set variable action in the second test to see if the loop would still run 2 times.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

@v-alzhan-msft Thank you for answering.

The delay after the variable does not work, it does work if i change the variable to a integer and set it from 0 to 1. But in the same time this does not work for my flow with a long delay of 2 hours.

 

If i do i delay for 2 hours inside a loop, do i have to change the limits in the do until also from. Count 60 Timout PT1H?

My issue is that this worked before, now it will only check 1 time and then do nothing more even if the condition is not meet it will just run once. And if i use a string and the condition is meet then it will continue to loop even if conditions are meet each time it tries.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,572)