Sub topic 9
Refresh frequency limits and timeouts
This chapter assumes you can publish a dataset (semantic model) from Power BI Desktop and that you have configured a basic refresh schedule, as covered in the previous chapters. Here you will learn what caps the number of refreshes per day, what stops a refresh that runs too long, and what makes the service switch a schedule off. The figures below are the published limits at the time of writing. Check Microsoft's current documentation before you design around a specific number.
Why limits exist
Scheduled refresh runs on shared infrastructure. Each refresh loads data, compresses it, and rebuilds the model in memory, which uses CPU, memory, and (for on-premises sources) gateway capacity. Limits keep one dataset from starving the others. The limits come in three kinds:
- Frequency limits cap how many refreshes a dataset can run per day.
- Duration limits cancel a refresh that runs too long.
- Health rules disable a schedule that keeps failing or is no longer used.
Daily frequency limits
The cap depends on the capacity that hosts the workspace, not on the user who owns the dataset.
| Where the dataset lives | Scheduled refreshes per day | Smallest gap between times |
|---|---|---|
| Shared capacity (Pro) | 8 | 30 minutes |
| Premium, Premium Per User, or Fabric capacity | 48 | 30 minutes |
The cap applies per dataset. Ten datasets in one workspace can each use their full allowance.
Times are set on a 30-minute grid, such as 07:00 or 07:30. You cannot pick 07:15. Refreshing more often than every 30 minutes is not possible through the schedule. For that, you need another design, such as DirectQuery, or an on-demand refresh through the REST API on a Premium capacity.
Manual and API refreshes
On shared capacity, the daily allowance of 8 also counts on-demand refreshes. Clicking Refresh now and calling the refresh REST API both use it. If a schedule already consumes all 8 slots, an on-demand refresh can fail with a message that you reached the limit.
On Premium capacity, the 48 limit applies to the schedule. On-demand and API refreshes are not capped by that count. They are limited only by the resources the capacity has available.
Refreshes that do not succeed still count toward the limit on shared capacity, so repeated retries can use up your allowance.
Timeouts
A refresh that runs too long is cancelled and recorded as failed in the refresh history.
| Where the dataset lives | Maximum duration of one refresh |
|---|---|
| Shared capacity (Pro) | 2 hours |
| Premium, Premium Per User, or Fabric capacity | 5 hours |
The clock covers the whole refresh. That includes the time spent waiting on the source database, moving data through the gateway, and processing the model in the service. The cause of a timeout is therefore not always the database. A slow network link between the gateway and the service, or a gateway machine short on CPU or memory, can push a refresh past the limit just as easily.
Other limits that interact with these:
- Dataset size. Shared capacity limits a dataset to 1 GB after compression. A refresh that grows the model past the limit fails. Premium allows much larger models, depending on the capacity size.
- Memory during refresh. A full refresh keeps the old copy of the data available for queries while it builds the new one. The refresh can therefore need roughly double the model's size in memory. A model that fits comfortably can still fail to refresh on a small capacity.
- Source query timeouts. Your database or the connector may have its own command timeout, which can stop a long query before the 2-hour limit.
Automatic schedule disabling
Two rules can turn a schedule off without anyone touching it:
- Consecutive failures. After four consecutive failed refreshes, the service disables the schedule. A common trigger is a changed password or an expired credential. Fix the cause, then re-enable the schedule.
- Inactivity. If nobody opens a report or dashboard that uses the dataset for two months, the service pauses its scheduled refresh. Viewing a report using the dataset starts it counting again, and you can re-enable the schedule.
When the schedule is disabled, the service emails the dataset owner. If you set up failure notifications in the previous chapter, make sure the contact list includes a monitored mailbox, not only a person who has left the team.
Configuring within the limits
The refresh schedule REST call enforces the same limits. Here is a body that stays within the shared capacity allowance with two refreshes on weekdays. You send it as a PATCH to the dataset's refreshSchedule endpoint.
{
"value": {
"enabled": true,
"days": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"times": ["07:00", "13:00"],
"localTimeZoneId": "UTC",
"notifyOption": "MailOnFailure"
}
}Two refreshes a day for five days is 2 per scheduled day, well under 8. You could add six more times on a weekday and still be within the shared limit. If you listed 9 times, the request would be rejected on shared capacity.
To send it from PowerShell with the MicrosoftPowerBIMgmt module:
Connect-PowerBIServiceAccount
$groupId = '<workspace-id>'
$datasetId = '<dataset-id>'
$body = @'
{
"value": {
"enabled": true,
"days": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"times": ["07:00", "13:00"],
"localTimeZoneId": "UTC",
"notifyOption": "MailOnFailure"
}
}
'@
Invoke-PowerBIRestMethod -Method Patch -Url "groups/$groupId/datasets/$datasetId/refreshSchedule" -Body $bodyCommon mistakes
- Scheduling every slot "just in case". Using all 8 slots on shared capacity leaves nothing for manual refreshes, which then fail. Keep a few slots free.
- Spacing times too closely when a refresh is long. If a refresh takes 40 minutes and the next slot is 30 minutes later, the second can overlap or queue behind the first. Space slots farther apart than the typical duration.
- Expecting an exact start time. A refresh is queued at the scheduled time and may start a little later when the service is busy. Do not build a downstream process that assumes data is ready at exactly 07:00.
- Treating a timeout as a database problem. Check the refresh history for the start and end times first. A failure at almost exactly 2 hours points to the duration limit.
- Ignoring the failure counter. One bad credential can produce four failures in half a day on an 8-slot schedule, which disables the schedule that same day.
What to do when you hit a limit
| Symptom | Options |
|---|---|
| Need more than 8 refreshes per day | Move the workspace to Premium or Fabric capacity (up to 48), or use DirectQuery for data that must be near real time |
| Refresh exceeds 2 hours | Reduce the data loaded, push filtering and aggregation to the source, or move to Premium for the 5-hour limit |
| Refresh still too long on Premium | Use incremental refresh, covered in a later chapter, so only recent data is reloaded |
| Model too large for shared capacity | Remove unused columns and tables, lower column cardinality, or use Premium |
Exercise
A dataset on shared capacity has a schedule with 6 times per day. A colleague then triggers 3 on-demand refreshes through the REST API in the same day. What happens, and what would change if the workspace were on Premium capacity?
Show answer
On shared capacity the daily allowance of 8 includes on-demand refreshes, so 6 scheduled plus 3 on-demand is 9. The ninth refresh would exceed the limit and be rejected or fail. On Premium capacity, the 48-per-day cap applies to the schedule, and API refreshes are not capped by that count, so all three would run, subject to the available capacity resources.
Exercise
A refresh in the history shows a start time of 06:00 and a failure at 08:00, and the dataset is on shared capacity. What is the most likely cause, and give two ways to address it.
Show answer
The refresh ran for the 2-hour maximum on shared capacity and was cancelled. Ways to address it include reducing the data loaded or pushing filters and aggregation to the source, moving the workspace to Premium (5-hour limit), or using incremental refresh so that only recent data is reloaded.
Exercise
Your schedule refreshed successfully for months, then stopped. No one changed it, and the history shows four recent failures with a "credentials invalid" error. What rule disabled the schedule, and what must you do besides re-enabling it?
Show answer
The rule that disables a schedule after four consecutive failures. You must also fix the cause by updating the data source credentials (for example in the gateway data source settings), and then re-enable the schedule. Otherwise it will fail again.