cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mokhawaja
Kudo Collector
Kudo Collector

Excute a SQL query bad gateway 504

Hi,

i started to see intermittent failed runs of my flows with this error:

 

{
  "error": {
    "code"504,
    "source""europe-001.azure-apim.net",
    "clientRequestId""fb18dfc3-dc5f-45dd-9684-8a2004bbf2b1",
    "message""BadGateway",
    "innerError": {
      "status"504,
      "message""A task was canceled.\r\nclientRequestId: fb18dfc3-dc5f-45dd-9684-8a2004bbf2b1",
      "source""sqlconnectionprovider-westeurope.am2-ase-001.p.azurewebsites.net"
    }
  }
}

here is the structure of my flow:

 

Screenshot (65).png

 

and here is the error inside my app:

 

 

Screenshot (66).png

 

i am not sure what's going on, please help!

 

thanks,

Mohammad

5 REPLIES 5
Anonymous
Not applicable

I am having the same, intermitant, problem. Is there any resolution?

 

{
  "error": {
    "code"504,
    "source""europe-001.azure-apim.net",
    "clientRequestId""f7440808-3186-4888-a8ef-0b0af9302ffb",
    "message""BadGateway",
    "innerError": {
      "status"504,
      "message""A task was canceled.\r\nclientRequestId: f7440808-3186-4888-a8ef-0b0af9302ffb",
      "source""sqlconnectionprovider-westeurope.am2-ase-001.p.azurewebsites.net"
    }
  }
}

 

badgateway.JPG

v-yuazh-msft
Community Support
Community Support

Hi @mokhawaja,

 

What is the connection in "Excute a SQL query" action connect to? Is it on line SQL Server or On-premise SQL Server?

 

If the connection in the "Excute a SQL query" action is with On-premise SQL Server is not supported in microsoft flow currently.

 

Best regards,

Alice

it is Azure SQL

Hi ,

 

Any updates on the error. We had the same 

Anonymous
Not applicable

Please check out if you need to pass any parameters in the Stored Proc and Execute in server and check.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,043)