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_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,622)