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:
I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard