Showing results for 
Search instead for 
Did you mean: 
New Member

Could not set the time out value when executing a sql server query task in a Power Automate

What we are trying to do: Since our SQL server query  task is taking more than 2 minutes we want to set the timeout to more than 2 minutes in our Power Automate. We are following the

instruction from this link ->

We are setting the duration in the ISO 8601 format.


Issue: We have set the timeout settings to 30 minutes for Power Automate SQL Server query task. Still it keeps on failing when the execution exists in 2 minutes. Please see the below screen shot. The timeout is not taking effect. It still times out at 2 minutes.




Advocate II
Advocate II



I got the same issue and can't find a way to dissolve it.

Because this is the basic limited by Microsoft automate, below is the explanation:

Hope it's helpful to you.




Frequent Visitor


I have the same problem. Did you find a solution?


Regular Visitor

Hi subhashc, 


I unfortunately dont have a solution to your issue as I dont think it is possible as Stored Procedures seem to be executed synchronously and not asynchronous (as it would require for extending the timeout - see first table However, I was able to find 2 alternatives, which might be helpful for you.

1. If the stored procedures are run on a scheduled basis, you can instead use Azure's Automation with Powershell script running on a predefined schedule (

2. I was able to rewrite the Stored Procedure for my query, to take in the ID of the row it should use for the transformation, which speeds up the processing time and kept it under 2 minutes. 


I hope that they might help you but if you find a better way, please let me know.



Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (10,096)