Sub topic 8
Configuring the refresh schedule and failure notifications
This chapter assumes you can publish a dataset (semantic model) from Power BI Desktop and that its gateway data source is already mapped and has working credentials. If the dataset still shows a "gateway not configured" or "credentials invalid" message, finish that step first. Without valid credentials, the schedule options stay unavailable or every run fails.
What a schedule does
A schedule tells the Power BI service to start an import refresh at fixed times. Each run re-reads the sources through the gateway, if one is needed, and replaces the data in the dataset. Reports that use the dataset show the new data once the run succeeds.
Only datasets with imported tables use a schedule. A DirectQuery or live connection dataset has no cached data to refresh. For those, the schedule page only lets you configure how often dashboard tiles refresh.
Where the settings live
- Open the workspace and find the dataset.
- Choose Schedule refresh (the clock icon), or open Settings from the dataset's more-options menu.
- Expand Refresh.
You must be an owner of the dataset to change its schedule. Workspace members with the Contributor role cannot change it. Select Take over in the dataset settings if you need to become the owner.
The Refresh section contains these settings:
| Setting | Purpose |
|---|---|
| Keep your data up to date | Turns the schedule on or off |
| Refresh frequency | Daily or Weekly |
| Time zone | The time zone for the listed times |
| Time | One or more start times |
| Send refresh failure notifications to | Who gets email on failure |
Setting up a schedule step by step
- Switch Keep your data up to date to On.
- Pick Daily or Weekly. With Weekly, select the days.
- Pick a time zone. Choose it deliberately, because all times you enter are read in that zone.
- Select Add another time and enter each start time.
- Choose who is notified (see below).
- Select Apply.
Start times are not exact. The service queues the refresh near the time you set, and the run can begin several minutes later when the capacity is busy. Do not assume a report is current at exactly 07:00. Plan for a margin.
Time zones and daylight saving
A schedule that uses a local time zone follows daylight saving changes. A refresh set for 07:00 in a zone that shifts will move relative to UTC twice a year. If downstream systems expect a fixed UTC moment, select UTC. The REST body later in this chapter uses "localTimeZoneId": "UTC" for this reason.
Failure notifications
Notifications are the only active alert you get without more tooling. Two options are available in the UI:
- Dataset owner: the owner gets an email when a scheduled refresh fails.
- These contacts: you list additional email addresses, such as a team mailbox.
Prefer a shared mailbox over one person's address. When the owner leaves, a personal address stops being useful.
A few behaviors to know:
- Notifications are about failure. A successful run sends nothing.
- If a schedule fails repeatedly, the service disables it. After consecutive failures it pauses the schedule and emails the owner. Fix the cause, then turn the schedule back on.
- A dataset whose reports have not been viewed for a long time may also have its schedule paused. Opening a report again lets the schedule resume.
The schedule as an API request
The same settings can be set with the Update Refresh Schedule REST call, a PATCH to the dataset's refreshSchedule endpoint. This request body sets two weekday runs and failure email:
{
"value": {
"enabled": true,
"days": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"times": ["07:00", "13:00"],
"localTimeZoneId": "UTC",
"notifyOption": "MailOnFailure"
}
}Fields to note:
dayslists the weekdays to run. Leave it out to run every day.timesis a list of start times, each on the hour or half hour.notifyOptionisMailOnFailureorNoNotification. The API call does not let you turn on mail for success.
Using the API is useful when you manage many datasets. You can keep these bodies in source control and apply them from a script, instead of clicking through each dataset.
Limits that shape your design
The number of times per day depends on the license and capacity.
| Where the dataset lives | Scheduled refreshes per day |
|---|---|
| Shared capacity (Pro or Premium Per User) | Up to 8 for Pro, up to 48 for Premium Per User |
| Dedicated capacity (Premium, Fabric) | Up to 48 |
Check Microsoft's current documentation for exact values because these limits change. A refresh also has a duration limit: two hours on shared capacity and longer on dedicated capacity. A run that exceeds the limit is cancelled and recorded as a failure. The next chapter section on limits covers this in more depth.
Practical consequences:
- Do not add 48 times to a dataset that takes 40 minutes to refresh. Runs overlap, and the service does not start a second refresh of the same dataset while one is in progress.
- Place times after the source system finishes its own load. A refresh at 06:00 against a warehouse that finishes loading at 06:30 returns yesterday's data without an error.
- Space runs by at least the typical duration plus a margin.
How a run flows
Both outcomes appear in refresh history, covered in the monitoring chapter. Only failures send email.
Checking the schedule from a script
You can confirm a schedule's effect by reading recent refresh attempts. This returns the five most recent entries, with status and start and end times:
Connect-PowerBIServiceAccount
$groupId = '<workspace-id>'
$datasetId = '<dataset-id>'
Invoke-PowerBIRestMethod -Method Get -Url "groups/$groupId/datasets/$datasetId/refreshes?`$top=5"The backtick before $top stops PowerShell from treating it as a variable. Without it the query string is empty and you get the full history.
Common mistakes
- Wrong time zone. The times look right in the UI but run hours away from what you intended.
- Schedule on, credentials expired. OAuth tokens for some sources expire. The schedule is still on, but each run fails until someone signs in again.
- Notifying only the owner. The owner is on leave, and nobody sees the failure.
- Counting on exact timing. Report consumers read data a few minutes after the set time and find it stale.
- Expecting the schedule to follow the source change. Refreshing does not detect a changed column name. The query fails and you must edit it in Desktop and republish.
Exercise
A dataset on shared capacity takes 35 minutes to refresh. The source warehouse finishes loading at 05:45 UTC each weekday. Propose a schedule and notification setup, and explain two choices you made.
Show answer
Use a Weekly schedule for Monday to Friday with the time zone set to UTC, and start the first run at 06:30 so it begins after the warehouse load finishes. A second run at 13:00 is fine, since runs are far enough apart not to overlap. Choosing UTC avoids shifts at daylight saving changes, and starting after 05:45 avoids reading half-loaded data without an error. For notifications, keep the dataset owner and add a shared team mailbox as a contact, so a failure is seen even if the owner is away.
Exercise
Users report that a report shows last week's data, yet nobody received a failure email. Name two things to check before examining the gateway.
Show answer
First, check whether the schedule is still enabled, because the service pauses schedules after repeated failures or long inactivity. Second, check refresh history for the dataset to see whether runs happened and what status they have. Also confirm that notifications are directed to a mailbox someone reads.