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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors
Top Kudoed Authors