Logic App Standard Execute SQL Timeout

Mike Holdorf 1 Reputation point
2022-02-01T22:57:47.713+00:00

We are using Logic App Standard and using the Execute SQL action. We don't have control over the backend SQL and at times, we have requests that may run up to a minute. The Execute SQL query will time out at 30 seconds with a Gateway Timeout.

We have modified the host.json to include the Runtime.ServiceProviders.Sql.QueryExecutionTimeout, but this doesn't have any effect our our query. Everything still times out at 30 seconds. We have also modified our connectionstring to have a longer time out, but this still does not work.

Does the setting Runtime.ServiceProviders.Sql.QueryExecutionTimeout have any impact on our SQL Queries?
How can we make a call to SQL that runs longer that 30 seconds? The Consumption Logic Apps ran longer (I believe this was 110 seconds).

Thanks,
Mike Holdorf
Neudesic

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,087 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Holdorf 1 Reputation point
    2022-02-08T13:45:57.763+00:00

    Found that this setting needs to be in the host.json file as Runtime.ServiceProviders.Sql.QueryExecutionTimeout.

    This setting must also be in the Configuration for the Logic App. It is not exactly the same though. In the configuration, you must add: ServiceProviders.Sql.QueryExecutionTimeout and specify a time, such as "00:01:00" for 1 minute.

    I tested this from 30 seconds up to 3 minutes and it is now working and times out with the Configuration setting. The Microsoft Documentation only has Runtime.ServiceProviders.Sql.QueryExecutionTimeout as the setting, so it is a little tough to find.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.