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 / terminate in a child f...
Power Automate
Unanswered

terminate in a child flow does not return message

(0) ShareShare
ReportReport
Posted on by 4
I have a flow in which I am calling a child flow
in the child flow if there is an error it terminates and I've set the code and message
when control returns to the parent flow (immediately after the Terminate, based on timing), it records (502) "failed to get a response"
shouldn't it be the code set in the terminate and/or at least the message from the terminate?
especially since "respond to a power app or flow" cannot be set to anything other than success
(technically I could use the success to return the error message and then test if the "successful" message was actually an error, but that's quite tedious since I really have over a dozen flows calling each other, particularly since "terminate" looks like it should be doing this... but clearly isn't)
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    This behavior is a known limitation in Power Automate when using the "Terminate" action in a child flow. When a child flow terminates with an error, the parent flow often interprets this as a failure in the HTTP communication (resulting in a 502 error) instead of directly reflecting the custom code or message set in the "Terminate" action.
    Instead of relying on "Terminate," you can use "Respond to a Power App or Flow" to send an error message back to the parent flow. For example:
     
    {
      "status": "success",
      "error": true,
      "code": "CustomErrorCode",
      "message": "Custom error message"
    }
     
    In your Parent flow, parse the response and conditionally handle the error based on the error flag or code.
     
    Another option is to wrap the "Run a Child Flow" step in a Scope.
    After the child flow, add a parallel Scope to handle failures using the "Configure run after" settings (set to trigger on failure).
  • BD-06121850-0 Profile Picture
    4 on at
    not "often", always
    Is there no way to fail the "call child flow" and return a message?
    The work around you described is obvious, but it is also tedious because "respond to power app or flow" only succeeds.
  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at
    Just respond and then terminate ;)
    The flow doesn't stop just because you respond.
  • BD-06121850-0 Profile Picture
    4 on at
    this is the problem with that:

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