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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors