Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Our workflow is showing that it ended successfully, although 3 iterations inside Do Until raised errors

(0) ShareShare
ReportReport
Posted on by 3,502

We have a long running workflow which took around 2 hours to complete, and it showed that it ended successfully, as follow;-

 

sucess.png

 

 

but when i went through the successful instance , i found that 3 iterations of the Do Until raised errors , here is one of the iterations, where the Parse JSON went wrong:-

 

scema.png

 

 

so this is misleading, as the first screen will give us an indication that everything went well,, but if we check the successful instance further we can see that there are errors (as shown in the second screen)... any advice on the above confusion? and why MS flow marked the flow which have errors as successful ?

 

Thanks

 

 

  • eric-cheng Profile Picture
    5,171 on at
    Re: Our workflow is showing that it ended successfully, although 3 iterations inside Do Until raised errors

    Hi @johnjohn123 ,

     

    A Do Until will continue to run until a condition is met even if one of the loops failed.

     

    I came across this post where you can add some try / catch logic to create a flag.  You can then use the flag in your do until condition to exit the loop if you want.

     

    You can use the above in conjunction with this action

    ericcheng_0-1632891772687.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1