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

Notifications

Announcements

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,099 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 315 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 273 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 117 Super User 2026 Season 1

Last 30 days Overall leaderboard