Skip to main content

Notifications

Power Automate - General Discussion
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.

  • Verified answer
    ManishSolanki Profile Picture
    ManishSolanki 15,075 on at
    Re: Stopping a Flow when subflow failed

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard