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 / Stopping a Flow when s...
Power Automate
Answered

Stopping a Flow when subflow failed

(0) ShareShare
ReportReport
Posted on by 18

Hello Powerautomate Community,

 

I have a question how to elegantly stop a flow when the subflow passes an error. For example, I have a flow, and it calls a subflow A and in subflow A i call subflow B. In subflow B happens an error, how can I tell the subflow A about it and the flow about A, they should cancel the process?

Because if i don't say Subflow A and the Mainflow should terminate, both are repeating the flow until a timeout occur.

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,109 Moderator on at

    Hi @shun88 

     

    You can use scope action and add all other actions in it to catch any error in the child flow. In case of error, you may return the status as 'failed' or some text to notify that it has failed. In the parent flow, you can test the status returned by child flow and accordingly terminate the parent flow based on the status field.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard