Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nikolai_nopost
New Member

Power Query request data every 5 minutes even I set timeout 30 minutes

Hello, I have a query that requests data from external API

I know that it takes a lot of time to get the answer so I set a timeout 30 minutes 

= Json.Document(Web.Contents("url",[Timeout=#duration(0,0,30,0)]))

But somehow PowerBI requests the data every 5 minutes. It seems that if it doesn't reseive an answer in 5 minutes it makes another request, that creates a lot of parallel requests to database (we have logs so I can see that it requests multiple times every 5 minutes)

 

Can somebody help me how I can force PowerBI NOT to request data every 5 minutes and respect timeout? 

2 REPLIES 2
kudav
Regular Visitor

Hi, Nikolai.

 

How did you set up Power BI to request the data every 5 minutes?

BA_Pete
Super User
Super User

Hi @nikolai_nopost ,

 

The timeout argument doesn't stop the query trying for that amount of time, it tells it when to give up. It may make many attempts during that time but, after 30 mins, it will return a fail.

I think what you want to use is Function.InvokeAfter(), where you can actually limit the calls via a specified time delay.

Check out Chris Webb's blog here:

https://blog.crossjoin.co.uk/2015/04/30/using-function-invokeafter-in-power-query/ 

 

You'll obviously need to correctly integrate it within your current query, but I think this is the function you need.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.