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 / Return from On Block E...
Power Automate
Unanswered

Return from On Block Error when using subflow

(0) ShareShare
ReportReport
Posted on by 431

In the On Block Error action one can either continue flow, in which case one can chose a continuation option from a dropdown or throw an error. If one chooses to throw an error, one can chose to run a subflow. In the subflow case, where does execution continue after the subflow? End of block? In the subflow can one chose a Go To Label that is in the main block?.

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You can run a sub-flow regardless of whether you choose to throw an error or continue the flow. If you set the block to throw an error, it will do just that - it will throw an error, which means the flow will stop (unless your block is within another block that can handle the error).

    If you want the flow to continue after calling the sub-flow, you should just make it run the sub-flow and then continue the flow run.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Steve48 Profile Picture
    431 on at

    Hi @Agnius

    please clarify. If I continue the flow, there is no option in the dropdown to run a subflow. It seems the only way to do that is to throw an error. If I throw an error and go to a subflow, where does the subflow return execution to? End of Block?

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Again, if you set it to throw an error, it will stop the entire flow. It will not end up anywhere outside the block. It will stop completely. If you have it call a sub-flow, the sub-flow will be called, but once it returns from the sub-flow to the block, it will stop the flow.

     

    Here's a sample of a block that is set to continue the flow run after calling a sub-flow: 

    Agnius_0-1698153685908.png

     

    I'm not sure why you would think you cannot call a sub-flow when you set your block to continue the flow.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Steve48 Profile Picture
    431 on at

    Hi @Agnius 

    I didnt realize that I could add a rule to Log to a file if I was continuing the flow. I thought I could only add a rule if I through an error. So now I understand. Thank you

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard