cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NMBU2
New Member

Call from a flow to another flow yields 502 no response

Hello, 

 

We have a flow that does calls to other flows, as an effort to try and reduce the complexity/scope in the main "request handler" flow that is triggered by a Forms submit. We have several HTTP steps in the main flow that calls other flows, which starts with When an HTTP request is received.

 

Usually this works fine, but today as I was testing during development I got this 502 "no response" error when calling this URL from an HTTP step: 

https://prod-80.westeurope.logic.azure.com:443/workflows/dc85... (the URL has been truncated)

 

To my understanding, the main flow is possibly not running on prod-80.westeurope.logic.azure.com, but could in fact be running on any other *.weseurope.logic.azure.com host? I don't know if this is relevant but I need our cloud solution to be stable and help to figure this out. I'd rather not merge the flows as some are reused in branches and I don't think duplicating too much will be a good way to maintain the "code". 

 

To my question:

Are there any best practices for doing this flow-to-flow http calls? As I don't seem to be able to control the host manually (nor should I probably), I need a way to ensure our cloud solution is as stable as possible.

 

I suppose for now all I can do is to add error handling to the HTTP step, so if it fails the admin is alerted and can handle this manually. But it's not optimal since this requires admin's attention and will clutter the flow further. The flow is not designed for resubmitting if it fails half way through like it did in this case.

 

Any advise is much appreciated.

 

Here's the raw output:

 

{
    "statusCode": 502,
    "headers": {
        "Pragma": "no-cache",
        "x-ms-failure-cause": "Trigger",
        "x-ms-workflow-run-id": "08585812199223026642852110080CU80",
        "x-ms-correlation-id": "037db9aa-d32c-480f-9428-91f9a9afb759",
        "x-ms-client-tracking-id": "08585812204012010017197326105CU127",
        "x-ms-trigger-history-name": "08585812199223026642852110080CU80",
        "x-ms-execution-location": "westeurope",
        "x-ms-workflow-system-id": "/locations/westeurope/scaleunits/prod-80/workflows/dc85a7a598de4d21af72c50cd1fac975",
        "x-ms-workflow-id": "dc85a7a598de4d21af72c50cd1fac975",
        "x-ms-workflow-version": "08585831183536757411",
        "x-ms-workflow-name": "804d7fc7-0b31-45a3-a163-e2aa5accc0e0",
        "x-ms-tracking-id": "037db9aa-d32c-480f-9428-91f9a9afb759",
        "x-ms-ratelimit-burst-remaining-workflow-writes": "2499",
        "x-ms-ratelimit-remaining-workflow-download-contentsize": "178956288",
        "x-ms-ratelimit-remaining-workflow-upload-contentsize": "178956176",
        "x-ms-ratelimit-time-remaining-directapirequests": "16664552",
        "x-ms-request-id": "westeurope:037db9aa-d32c-480f-9428-91f9a9afb759",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "Connection": "close",
        "Cache-Control": "no-cache",
        "Date": "Fri, 07 May 2021 11:29:25 GMT",
        "Content-Length": "163",
        "Content-Type": "application/json; charset=utf-8",
        "Expires": "-1"
    },
    "body": {
        "error": {
            "code": "NoResponse",
            "message": "The server did not receive a response from an upstream server. Request tracking id '08585812199223026642852110080CU80'."
        }
    }
}

 

 

--

Anders Nordbø

Norwegian University of Life Sciences

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

If you build all your flows in a solution you can completely avoid having to use HTTP calls to call child flows.  Using HTTP is the old method to chain flows together.  The current preferred method is to use the Run a Child flow action.

image.png

The child flow is then triggered using a manual trigger where you've specified the Inputs you want the flow to receive.

image.png

This is a much easier and more stable setup than the HTTP call/HTTP received configuration you are using.  The one requirement is that both the parent and child flows need to be in the same solution.

 



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

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

If you build all your flows in a solution you can completely avoid having to use HTTP calls to call child flows.  Using HTTP is the old method to chain flows together.  The current preferred method is to use the Run a Child flow action.

image.png

The child flow is then triggered using a manual trigger where you've specified the Inputs you want the flow to receive.

image.png

This is a much easier and more stable setup than the HTTP call/HTTP received configuration you are using.  The one requirement is that both the parent and child flows need to be in the same solution.

 



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

View solution in original post

Thank you @Pstork1 , that looks like what I want 🙂

 

BTW in case someone stumbles upon this the solution was to go see what was wrong in the flow I made the call to. As it turns out, it had failed and was not returning a response to the caller. The step that failed aborted the flow, so the step "Respond to a PowerApp of Flow" was not called. If allowing the flow to continue even if it fails is an option, you may get better error handling in the flow that calls (not 502), by defining "configure run after" on the menu for the step that is prone to fail.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (28,193)