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

Community site session details

Session Id : CYglI7olielQBwOTjmq1Lq
Power Automate - Using Flows
Unanswered

Flow getting failed with an error: An existing connection was forcibly closed by the remote host

Like (0) ShareShare
ReportReport
Posted on 25 Oct 2019 07:56:17 by 2

Hi All,

I have created a flow with a trigger when a new email arrives in Outlook. Flow is working fine but I am getting three major issues:

 

1) Some of the flows are getting failed every hour while creating a file on SFTP server with an error: 

{
"error": {
"code": 502,
"source": "flow-apim-europe-001-francecentral-01.azure-apim.net",
"clientRequestId": "b5137ff3-1610-111f-b52a-bb4110d367a8",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "An existing connection was forcibly closed by the remote host\r\nclientRequestId: b5137ff3-1610-437f-b52a-bb4580d867a8",
"source": "sftpwithssh-we.azconn-we.p.azurewebsites.net"
}
}
}
 
2) Flow is not picking all the mails, I can see some of the emails still present in the mailbox which came early this morning. Hence I am not sure how frequent or on what basis Flow picks the emails.
 
3) Some of the runs are taking more than 10 minutes while some are running within a minute. Not able to identify why.
 
Any help would be useful.
I have the same question (0)
  • bajkapil Profile Picture
    2 on 28 Oct 2019 at 07:57:04
    Re: Flow getting failed with an error: An existing connection was forcibly closed by the remote host

    Hi @v-litu-msft ,

    1) I can see this error every hour. For instance, if FLow is running 2000 times then this error is occurring around 20 times. I am not sure why this is happening.

    2) No. Here are the screenshots:FlowTriggerSettings.PNGFlowTrigger.PNG

     

  • v-litu-msft Profile Picture
    on 28 Oct 2019 at 01:38:05
    Re: Flow getting failed with an error: An existing connection was forcibly closed by the remote host

    Hi @bajkapil,

     

    1). Does the error 1 Messages happen a lot these days?

    It seems like network link between the client and server is going down for some reason:

    https://stackoverflow.com/questions/2582036/an-existing-connection-was-forcibly-closed-by-the-remote-host

    2). Did you create any condition in the trigger setting? If did, you should confirm the email not trigger the Flow whether is met the condition.

    3). Run time is associate with file size, if the size is huge, it will spend more time.

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 954 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 650 Moderator

#3
trice602 Profile Picture

trice602 327 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow
Loading complete