Sub topic 10
Reading refresh history
This chapter assumes you have published a dataset with scheduled refresh configured, and that you know what a gateway data source is. Refresh history is where you confirm that scheduled refreshes ran and find out why they failed.
Where to find it
Open the workspace, select the dataset's Settings, and choose Refresh history (in the dataset's Refresh section). The dialog has two tabs: Scheduled and OneDrive. Use Scheduled for datasets that refresh on a schedule or on demand.
Each row is one refresh attempt. The columns you will use most are listed below.
| Column | What it tells you |
|---|---|
| Type | Scheduled, or On demand when someone started it manually or through the API |
| Start and End | When the attempt began and finished, in the time zone of your session |
| Status | Completed, Failed, In progress, or Disabled |
| Details | An error message and a link to details for failed attempts |
Select a failed row to see the error code, the message, and a Show link. Copy the full text of this message and the activity ID, because Microsoft support and gateway logs both use them.
What the statuses mean
- Completed means every table finished loading and the model was committed.
- Failed means at least one step failed. A refresh is transactional, so the data in the dataset stays as it was before the attempt.
- In progress means the refresh is still running. Check it against the timeout for your capacity before you assume it is stuck.
- Disabled means the service turned off the schedule, usually after repeated failures.
Reading the pattern
A single row says little. Look at several rows together.
- Compare Start with your configured times. A start that is later than scheduled is normal for shared capacity, because refreshes queue. Large and growing delays suggest capacity pressure.
- Compare duration (End minus Start) across successful runs. A steady rise points to growing source data. This is when you consider incremental refresh, covered later in this tutorial.
- Look for failures at the same time each day. That points to something external, such as a source database backup or a nightly gateway machine restart.
- Look for failures that began on a given date. Match that date against password changes, gateway updates, and dataset republishing. Republishing can reset credentials or the data source mapping.
Getting the same data from a script
The history shown in the portal is also available from the REST API. This returns the five most recent attempts, with status and start and end times.
Invoke-PowerBIRestMethod -Method Get -Url "groups/$groupId/datasets/$datasetId/refreshes?`$top=5"The backtick before $top stops PowerShell from treating it as a variable. This call assumes you have already run Connect-PowerBIServiceAccount and set $groupId and $datasetId.
Common mistakes
- Reading only the latest row. An intermittent failure hides behind a later success.
- Treating the displayed times as UTC. They follow your session's time zone, not the schedule's.
- Ignoring Disabled rows. Fix the cause first, then re-enable the schedule, or the failures return.
Exercise
A dataset's refresh history shows no new rows for the past week, although the schedule was set to refresh daily. Which two explanations should you check first?
Show answer
First, check whether the scheduled refresh was disabled, for example after consecutive failures or expired credentials, by opening the dataset settings and looking at the schedule toggle. Second, check whether the dataset has been inactive long enough for the service to pause the schedule. Both produce no new history rows, so the empty history does not mean the refreshes succeeded.