web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Do until action doesn'...
Power Automate
Unanswered

Do until action doesn't stop running when the error happens in action inside do until action

(0) ShareShare
ReportReport
Posted on by 4

Have anybody noticed same, if for example execute sql action fails due syntax error, do until action does not stop and keep running until canceling run manually ?

Categories:
  • carloxvii Profile Picture
    95 on at

    Hi there @SammyS 

    Try to add a configuration after an action fails,

    Here is a sample flow:

    carloxvii_2-1666936120772.png


    The Status variable will be set to false if the action fails.


    To Configure it: 

    carloxvii_0-1666935987648.png

    Then check this one:

    carloxvii_1-1666936061346.png

     

    I think this will stop the process from looping.

    Also you can add condition after that to cancel the flow because we can't use terminate inside do until.

    carloxvii_3-1666936529021.png

     

  • Sammy Salo Profile Picture
    4 on at

    Thanks @carloxvii for good pointers.
    I tried to add Terminate action inside loop but Your samle opens my eyes how to do it.

    I'll try that and got also idea how to add SQL Begin Tran Commit Rollback sequence that shouldn't interrupt on those For each inside Do until loops.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard