Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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 -> https://docs.microsoft.com/en-us/power-automate/limits-and-config

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.

 

subhashc_0-1597181659875.png

 

  • AlirezaPaladin Profile Picture
    2 on at
    Re: Could not set the time out value when executing a sql server query task in a Power Automate

    I got the same issue. 
    Can you guys find any solution?

  • TvD Profile Picture
    13 on at
    Re: Could not set the time out value when executing a sql server query task in a Power Automate

    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 https://docs.microsoft.com/en-us/power-automate/limits-and-config). 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 (https://global.hitachi-solutions.com/blog/azure-sql-databases-stored-procedure)

    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.

     

     

  • jpardomartinez Profile Picture
    4 on at
    Re: Could not set the time out value when executing a sql server query task in a Power Automate

    Hi,

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

    Thanks!

  • ilu989 Profile Picture
    164 on at
    Re: Could not set the time out value when executing a sql server query task in a Power Automate

    Hi,

     

    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.

    https://docs.microsoft.com/en-us/power-automate/limits-and-config

     

    Sql-lamited.PNG

    ilu989

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1