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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,728)