web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Is SQL Connector still...
Power Automate
Answered

Is SQL Connector still limited to 120 seconds timeout?

(0) ShareShare
ReportReport
Posted on by 4,932 Moderator

Hello!

 

I have this store procedure that is estimated going to run for about 5 minutes. I tried running using the SQL Stored Procedure connector and at the same time as an SQL Query. To no luck, it keeps on timing out.

 

I have read a couple of answers in the forum that there is a 120-second limit to SQL connectors and was wondering if this is still the current situation.

 

Another thing I did was to use the code SET ARITHABORT ON,  but it did not work.

cha_cha_0-1663329590479.png

 

 

Categories:
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @cha_cha 

    I am not sure this would work or not. But go to the settings of the action and try changing its timeout condition. 

    Sundeep_Malik_0-1663331586735.png

  • takolota1 Profile Picture
    4,980 Moderator on at

    @Sundeep_Malik 

     

    While working with Excel Office Scripts, I tried to extend the timeout that way. It didn’t work.

     

    The only thing I could do was make my code more efficient and if needed, cut up the data into smaller batches.

  • Verified answer
    srduval Profile Picture
    1,796 Moderator on at

    Yes it's still capped at 120s. There seems to be some acknowledgement that that limitation is too short, but they need the public to escalate it via the ideas page to consider a change anytime soon:

    Upvote the idea here to have it increased:

    Add Synchronous Time Out Override · Community (powerautomate.com)

  • cha_cha Profile Picture
    4,932 Moderator on at

    I tried but it did not work. I think it's more likely about how long it can wait for the SQL to run. But the problem is SQL itself stopped even before Automate setting stopped it. Thank you for your attempt though.

  • srduval Profile Picture
    1,796 Moderator on at

    If you have or your organization is willing to add it, Azure datafactory works well for this, you don't get feedback that it's done or failed (the SQL failed) so if you need that information to be fed back to flow, you'll have to get creative and have the SQL that is being run by the data factory write back a completion record to a log table. Then you can have a do until with a "polling" query to check for the data factory completion. then outside that loop you can then query the results assuming you are writing them to a table or are able to write them to a table. 

  • cha_cha Profile Picture
    4,932 Moderator on at

    Would plan to do this but I hope Microsoft will fix it soon. I don't to chop my code too much cause maintaining them becomes too difficult.

  • Sundeep_Malik Profile Picture
    6,501 on at

    @cha_cha In my case I make API calls to my SQL server. 

  • cha_cha Profile Picture
    4,932 Moderator on at

    I srduval, thank you for your response. I manage to put a working around by chopping the code into two parts.

     

    As for the error, I can retrieve flow errors and put them on my storage by using Automate's Run After setting

     

    cha_cha_0-1663401280752.png

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    Thank you for responding, but I would not do that for now as I think learning API calls and also securing them might take longer than what I intend to spend time for this project.

  • Tariqya Profile Picture
    2 on at

    how did that workout for you? I'm trying to execute a stored procedure and getting GatewayTimeout. Please let me know if there is a workaround by using API call. looking forward to hearing back from you. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard