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 September 15. Request your voucher.

Reply
vckbx
Helper I
Helper I

Set a maximum allowed dataset and/or dataflow refresh time?

I've had issues in the past where a transit PBI service issues causes a dataset to refresh indefinitely. Since we're on a PPU capacity I think it will go for up to 5 hours before failing. Is there any way to control that max refresh timing on a workspace or dataset? Most of my datasets shouldn't take more than 30 minutes and I would like for them to fail if they run longer than that so that I get a notification and can re-trigger them manually.

1 REPLY 1
cassidy
Power Participant
Power Participant

That's an interesting concept that you may be able to due using the REST API functions

 

Execute the Cancel:

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/cancel-refresh

 

Check on refresh status (thinking maybe you could call on in progress Refreshes and compare the Start Time to the Current Time, and if it's passed your threshold, execute Cancel and send email):

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-execution-details#in-progre...

 

I'd also say that after many thousands of dataset refreshes, I've only personally encountered the 5 hour limit a handful of times.  It's also worth noting that sometimes long refreshes appear to be on purpose as Power BI Service is managing capacity load, so cancelling and restarting may not have any positive impact.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors