# Refreshes and Schedules

The Mapping **Refreshes and Schedules** screen brings together the **three scans** that feed the refresh and schedule screens: the refresh history of semantic models, the runs (jobs) of Fabric items, such as pipelines, notebooks and dataflows, and the schedules of Fabric items. Here you see the last run of each scan, trigger any of them right away and use the **Force refresh history scan** action to fix refreshes that got stuck in **Running**.

**How to access:** *Mapping › Operations › Refreshes and Schedules*. Only **Administrators** can access the screen and the actions. This screen concentrates the former **Collect now** button of the [Artifact Refreshes](../dashboards/atualizacoes-de-artefatos.md) panel and the action that forces the history, which used to be in the Timeline of [Schedules](../governanca/agendamentos.md).

<figure><picture><source srcset="../../assets/pm-mapeamento-atualizacoes-agendamentos-en-dark.png" media="(prefers-color-scheme: dark)"><img src="../../assets/pm-mapeamento-atualizacoes-agendamentos-en.png" alt="Refreshes and Schedules screen with the What is collected, Scans in this collection and Refresh history cards"></picture><figcaption><p>Refreshes and Schedules</p></figcaption></figure>

## What it is for

* Force the collection of refreshes, jobs or schedules without waiting for the automatic cycle, for example right after turning on monitoring or creating a schedule.
* Find out which of the three scans is stopped or failing when a refresh or schedule screen looks empty or out of date.
* Fix semantic model refreshes that got stuck in **Running** in the Timeline.

## Screen components

The screen has three cards: **What is collected**, **Scans in this collection** and **Refresh history**.

### What is collected

**What it is:** a card with the description of the three scans and, in the footer, the links **View collected data in Artifact Refreshes →** and **View collected data in Schedules →**, which lead to the screens fed by this collection.

### Scans in this collection

**What it is:** a table with one row per scan and the columns **Scan**, **Last run**, **Status** and the **Run now** button.

<figure><picture><source srcset="../../assets/pm-mapeamento-atualizacoes-agendamentos-scans-en-dark.png" media="(prefers-color-scheme: dark)"><img src="../../assets/pm-mapeamento-atualizacoes-agendamentos-scans-en.png" alt="Scans in this collection card with the Semantic Model, Fabric Job and Fabric Item Schedule rows"></picture><figcaption><p>Scans in this collection card</p></figcaption></figure>

| Scan | What it collects | Automatic frequency | Condition |
| --- | --- | --- | --- |
| **Semantic Model** | Refresh history of semantic models (status, start and end of the last refresh) | Every 15 minutes | Semantic model monitoring turned on in *Settings › Monitoring › Resource Monitoring* |
| **Fabric Job** | Runs of Fabric items (pipelines, Copy Jobs, notebooks, dataflows) | Every 2 hours | Fabric item monitoring turned on in *Settings › Monitoring › Resource Monitoring* |
| **Fabric Item Schedule** | Schedules of Fabric items | Every 6 hours | Always active (no on/off switch) |

Each row shows the **Status** of the last run: **Running** (blue), **Completed** (green), **Failed** (red) or **Never run** (gray). Each row has its own button: two scans can run at the same time without one blocking the other.

**How to use Run now:**

1. In the row of the desired scan, click **Run now**. There is no confirmation modal.
2. **Scan queued. The status updates by itself when it finishes.** appears and the button shows **Running…** (disabled).
3. When it finishes, Power Monitor notifies you with **Scan completed.** or **The scan finished with a failure. See the details in Scan Logs.**, and the **Last run** of the row is updated.

{% hint style="info" %}
The **Fabric Job** scan only collects when Fabric item monitoring is turned on. With monitoring turned off, the run ends as **Completed**, but without processing any item. A manual **Semantic Model** scan collects even if model monitoring is turned off, but the automatic 15-minute cycle only exists with it turned on.
{% endhint %}

**Full history:** the **View full history in Scan Logs →** link, in the footer of the card, opens [Scan Logs](logs-de-scans-e-re-execucoes.md) filtered by the three types (**Semantic Model**, **Fabric Job** and **Fabric Item Schedule**), with the runs and the error messages.

### Run history

**What it is:** the **Run history** table, below the scans, with the runs of this screen's scans from the most recent to the oldest, with an items-per-page selector and pagination.

| Column | Content |
| --- | --- |
| **Trigger** | **Scheduled** or **Manual** (for manual runs, hover over the person icon to see who triggered it) |
| **Scan** | Which of this screen's scans ran |
| **Started** / **Finished** / **Duration** | Run times; while the run is in progress, **Duration** shows the elapsed time live |
| **Status** | Run status |
| **Items processed** | Number of items handled by the run |
| **Error** | Icon with the run's error message (hover over it) |

**What it is for:** checking the latest runs and the error of a failure without leaving the screen.

### Refresh history

**What it is:** a card with the **Force refresh history scan** button. The description explains the purpose: it reconciles refreshes stuck in "In progress" against the provider's real refresh history, model by model.

<figure><picture><source srcset="../../assets/pm-mapeamento-atualizacoes-agendamentos-historico-atualizacoes-en-dark.png" media="(prefers-color-scheme: dark)"><img src="../../assets/pm-mapeamento-atualizacoes-agendamentos-historico-atualizacoes-en.png" alt="Refresh history card with the Force refresh history scan button"></picture><figcaption><p>Refresh history card</p></figcaption></figure>

**What it is for:** the automatic scan only sees the "most recent" refresh of each model. If a refresh ends and another starts before the next cycle, the first one could stay stuck in **Running** in the Timeline. Power Monitor fixes these cases **on its own** on every cycle of the refresh scan; this button forces the same fix right away.

**How to use:**

1. Click **Force refresh history scan**. The button shows a loading indicator while it runs; the result comes on the screen itself, without a queue.
2. Read the notice that appears in the card:
   * **{n} checked, {n} updated from the API history, {n} closed without a confirmed status (superseded by a newer refresh), {n} closed without a confirmed status (started more than 24 h ago), {n} left in progress.** (green): how many stuck rows existed, how many the real history confirmed as finished, how many were closed by the rules below and how many remain in progress.
   * **No refresh stuck "In progress" was found.** (green): there is nothing to fix.
   * Message in red: the reconciliation failed (for example, the Service Principal is not configured) and the text indicates what to do. Without a specific message, **Could not reconcile the refresh history.** appears.

**How it works / rules:**

* **Automatic fix:** at the end of each cycle of the semantic model refresh scan, Power Monitor reconciles up to 25 models with a refresh stuck in **Running**. A failure in this step does not bring down the cycle; the remaining models are left for the following cycles. The button uses exactly the same rules.
* **Real status first:** when the Power BI history brings the same refresh, the row gets the real status (**Success**, **Failed**, **Cancelled**).
* When the history does not bring the refresh, it is closed with the **Ended, status unknown** status if there is already a newer refresh of the same model (Power BI runs one refresh at a time per model), or **Ended, status unknown (over 24 h)** if it started more than 24 hours ago, the platform's maximum duration.
* Otherwise, the row stays **Running**. A temporary failure when querying the history never closes a row. If the model was deleted or became inaccessible to the Service Principal, the row is closed by the same superseding and 24-hour rules.
* Refreshes closed without a status do not count toward the peak of concurrent refreshes.

## Rules and behavior

* **Where the data comes from:** Power BI Admin API (model refreshes) and Fabric API (item jobs and schedules), with the organization's Service Principal.
* **Frequency:** the three scans run in short cycles (15 minutes, 2 hours and 6 hours) and therefore **do not have the Frequency option** (**Daily**/**Weekly**/**Monthly**) of *Settings › Monitoring*. The **Run now** button works at any time.
* **Last run:** comes from the same record as Home, not from the window of days of Scan Logs.
* **Where the status is shown:** in [Artifact Refreshes](../dashboards/atualizacoes-de-artefatos.md) and in [Schedules](../governanca/agendamentos.md) the **Collection** line (last run) appears and, for Administrators, the **View/manage collection →** link that leads to this screen.
* **Prerequisite:** Service Principal configured, with the tenant setting for admin APIs and access to the monitored workspaces. If the Service Principal cannot see part of the workspaces, the Artifact Refreshes panel warns that the job collection is incomplete.

## Step by step

{% stepper %}
{% step %}
### Open the screen

In *Mapping › Operations › Refreshes and Schedules* (or through the **View/manage collection →** link in Artifact Refreshes or Schedules).
{% endstep %}

{% step %}
### Identify the scan

Look at the **Last run** and the **Status** of each row to know which collection is late or failing.
{% endstep %}

{% step %}
### Trigger the collection

Click **Run now** in the desired row and wait for the status to become **Completed**.
{% endstep %}

{% step %}
### Check the data

Use the **View collected data in…** links to open [Artifact Refreshes](../dashboards/atualizacoes-de-artefatos.md) or [Schedules](../governanca/agendamentos.md).
{% endstep %}
{% endstepper %}

## Frequently asked questions

<details>

<summary>Where is the Collect now button of Artifact Refreshes?</summary>

It was replaced by the **Run now** buttons of this screen, one per scan. Artifact Refreshes now shows only the **Collection** line, with the **View/manage collection →** link.

</details>

<details>

<summary>A refresh has been Running for days. What should I do?</summary>

Click **Force refresh history scan**. If it comes back as **no match**, the provider no longer keeps that refresh or it is still running.

</details>

<details>

<summary>Fabric Job completed but brought nothing. Why?</summary>

Fabric item monitoring is probably turned off. Turn it on in *Settings › Monitoring › Resource Monitoring*. See also [Fabric Items](../monitoramento/itens-do-microsoft-fabric.md).

</details>

<details>

<summary>The Schedules screen is empty. Do I need to do something here?</summary>

Click **Run now** in the **Fabric Item Schedule** row. The automatic collection runs every 6 hours.

</details>

## Related pages

* [Artifact Refreshes](../dashboards/atualizacoes-de-artefatos.md)
* [Governance › Operations › Schedules](../governanca/agendamentos.md)
* [Monitoring › Semantic Models](../monitoramento/modelos-semanticos.md)
* [Monitoring › Fabric Items](../monitoramento/itens-do-microsoft-fabric.md)
* [Scan Logs](logs-de-scans-e-re-execucoes.md)
* [Mapping](README.md)
