MSBA-263 · Lesson 11 of 12 · 18 min

Troubleshooting refresh and performance

▶ Video coming soon A video version of this lesson is on the way.

Sooner or later, every maintainer opens a message that says *the report is wrong*, *the report is slow* or *the refresh failed*. Each has a handful of usual causes, and a calm, ordered approach finds them faster than guessing. This lesson collects the problems Kwabena met during the Student Success rollout, with the checks that solved each. It supports the PL-300 objectives on refresh and gateways and goes beyond them into performance tuning, which the modeling and visualization courses began.

Start with the symptom

Most reports of trouble fall into three groups, and the first step is to decide which.

SymptomFirst questionFirst place to look
The data is oldDid the last refresh succeed?Refresh history of the semantic model
The refresh failedWhat does the error message say?Refresh history details and the failure email
The numbers are wrongIs it the data, the model or the reader's access?The source, the measure, and the reader's roles
The report is slowIs it slow for everyone, or one page, or one place?Usage metrics performance page, then Performance analyzer
A reader cannot see the reportHow are they meant to get access?App audiences, workspace roles and Manage permissions

Refresh failures

A failed refresh nearly always names its cause in the error details on the refresh history page. Reading the whole message, including any technical details, before changing anything was Kwabena's first rule. The common causes, in roughly the order Lumenvale met them, were these.

Expired or changed credentials. A password on a service account changed, or an OAuth token for a cloud source expired. The semantic model's settings show the source with a warning; the fix is to edit the credentials, or for a gateway source, ask the connection owner to update the connection.

Gateway offline or unreachable. The gateway computer was restarted for patching, lost its network connection, or its service account's password changed. The gateway status in Manage connections and gateways shows whether it is online. A cluster with two members avoided most of these failures at Lumenvale.

Source names that do not match. After Signe moved the student database to a new server name, the model's Power Query still used the old one, so it no longer matched any gateway connection. Parameters for server and database names, as in lesson 6, made such moves a one-line change.

Timeouts. Refreshes on shared capacity are canceled after two hours, and Microsoft documents five hours on Premium. A model that grows past the limit needs less data, better folding or incremental refresh (lesson 4).

Memory limits. Very large refreshes on shared capacity, or on a small capacity, can fail because the model does not fit in the memory available while it refreshes. Removing unused columns, reducing cardinality, and moving to incremental refresh or a larger capacity all help.

Source-side errors. A view was changed, a column was renamed, or a SharePoint list column was deleted. The error names the missing object. Impact analysis upstream would have warned the source owner, which is why Rupert encouraged source owners to check it before changes.

Disabled schedules. After four consecutive failures the schedule is switched off. Fixing the cause is not enough; the schedule must be switched back on, and a manual refresh confirms the fix.

A decision tree for a failed refresh. The first question asks whether the error mentions credentials; yes leads to updating credentials or the gateway connection. No leads to whether the gateway is offline; yes leads to restoring the gateway or using another cluster member. No leads to whether the error mentions a timeout or memory; yes leads to reducing data, improving folding or using incremental refresh. No leads to whether an object is missing in the source; yes leads to fixing the query or the source. Every branch ends with turning the schedule back on and running a manual refresh.
Troubleshooting a failed refresh: read the error, fix the cause, switch the schedule back on and confirm with a manual refresh.

Numbers that look wrong

When a reader says a number is wrong, the cause is one of three things, and checking them in order saves time. First, the data: did the source contain what the reader expected at the time of the last refresh? A query against the source, or a look at the refresh time shown in the report, often shows the report is right and the expectation was based on newer data. Second, the model: does the measure calculate what its name says? Kwabena kept a short definition of every measure on the report's help page, and checked the measure in the DAX query view against a hand calculation, as MSBA-261 describes. Third, access: is row-level security filtering the reader's view, as it should, or is the reader in a role or workspace position that changes what they see? The Ridgeview dean in lesson 3 who saw every campus is the classic example.

Slow reports

Slowness is easier to fix when it is measured. The usage metrics performance page (lesson 8) shows whether a report is slow for everyone or for some readers, on some days or in some places. If it is slow everywhere, the cause is usually in the report or the model. If it is slow in one location or browser, the network or device is more likely.

In Power BI Desktop, Performance analyzer, on the Optimize ribbon, records how long each visual takes to load, split into the DAX query, the visual display and other time. Kwabena recorded the registration-week page and found two visuals taking most of the time: a table visual with fifteen measures over every student, and a card whose measure iterated the whole enrollment table. Copying a visual's query from Performance analyzer into the DAX query view let him test faster versions of the measure.

The fixes for slow pages fall into a few groups.

AreaTypical fixes
Report designFewer visuals per page; move detail tables to drillthrough pages; avoid many measures in one table visual
MeasuresRewrite iterators over large tables; use variables; avoid complex filters on high-cardinality columns
ModelRemove unused columns; reduce cardinality; use a star schema; turn off auto date/time where not needed
Storage modeImport or Direct Lake for speed; use DirectQuery only where freshness requires it; consider aggregations
DirectQuery sourcesIndex the source; limit visuals that send many queries; check gateway capacity
CapacityCheck the Capacity Metrics app for throttling caused by other workloads

On the registration-week page, Kwabena replaced the fifteen-measure table with a drillthrough to a detail page, rewrote the slow card's measure to count from the dimension instead of iterating every enrollment row, and switched automatic page refresh from a fixed two-minute interval to change detection, which refreshes the page only when a chosen measure, here the count of registrations, changes. Change detection needs a capacity, and Rupert had enabled it there. Median open time on the page fell from about nine seconds to under four.

Query caching and other service settings

For imported models on a capacity, query caching stores the results of the queries a report page runs when it first opens, so later readers see it faster. It is turned on in the semantic model's settings and is most useful for pages that many readers open with the same filters, such as an overview page on Monday morning. The large semantic model storage format, also set on the model in a capacity workspace, lets models grow beyond the default size limits and improves write operations through the XMLA endpoint. Neither is a substitute for a sound model, but both help a sound model serve more readers.

Access problems

When a reader cannot open content, the fix depends on how they were supposed to get it. If through the app, check that they are in an audience's group and that the item is in that audience, and that the app has been updated. If through sharing, check Manage permissions on the item. If through a workspace role, check the workspace's Manage access. And if they can open the report but see no data, check row-level security: a reader who belongs to no role on a model with roles sees nothing. Users can also request access from the message they see, which notifies the item's owner or the workspace contacts.

Worked problem

Monday morning, three problems

At 7:15 on a Monday, Kwabena finds three messages. The vice-president's subscription email shows Friday's numbers. A Lakeshore coordinator says the attendance report opens with no data. And the registration-week page is slow again. What should he check first in each case?

Show solution
  1. Stale numbers: open the Student Success model's refresh history. The 6:00 refresh failed with a credentials error after the service account's password changed. Ask Rupert's team to update the gateway connection, switch the schedule back on if it was disabled, and run a manual refresh. Resend the overview by email once it completes.
  2. No data: check the coordinator's access. She is in the Campus Coordinators audience, but her email was missing from the Access table that drives row-level security after she changed her surname. Update the Access table and confirm with Test as role.
  3. Slow page: open the usage metrics performance page. The slowdown started after Friday's release, which added a measure to the detail table. Use Performance analyzer in Desktop to confirm, then move the measure to the drillthrough page.

Answer: Refresh history found an expired credential, row-level security data found a missing access row, and the performance page plus Performance analyzer found the slow measure. Each fix took minutes once the right place was checked.

Keeping a troubleshooting log

Kwabena kept a simple log in the team's SharePoint list: the date, the symptom, the cause and the fix. After a term, patterns were obvious. Half the refresh failures came from password changes on one service account, which led Rupert's team to move that connection to a managed identity. Most access problems came from changes in people's names or roles, which led the registrar to send the Access table updates automatically from the HR system. The log turned firefighting into improvements.

Gateway-specific troubleshooting

When a refresh fails through a gateway, the gateway's own status and logs add detail the service may not show. The Manage connections and gateways page shows each cluster member's status and version, and the option to test a connection checks whether the gateway can reach the source with the stored credentials. On the gateway computer, the gateway app can run a network ports test and export logs for support. Rupert's team found most gateway problems with three checks: is every cluster member online and on a recent version, does the connection test succeed, and did anything change on the source server, such as a firewall rule or a certificate.

When it is not the report

Some problems lie outside Power BI entirely, and recognizing them saves time. A whole tenant can have a service incident; the Microsoft 365 admin center's service health page and the Fabric support pages list current issues, and Rupert checked them before anyone started debugging a sudden failure across many reports. A source system can be down for maintenance. A reader's browser extension can block the report's scripts. In each case the fix is to wait, to coordinate with the source owner, or to help the reader, not to change the report.

Escalating well

When Kwabena needed help from Rupert's team or from Microsoft support, he gathered the same facts each time: the workspace and item names, the time of the failure with the time zone, the full error message and any activity or request identifiers it contained, what had changed recently, and what he had already tried. Refresh history and the monitoring hub provided most of this, and the troubleshooting log provided the rest. Requests with these details were resolved far faster than a message that simply said *refresh is broken*.

Preventing problems

Most of the problems in this lesson can be made rarer. Service accounts with passwords that change on a schedule can be replaced, where sources support it, by managed identities or a workspace identity. Server names belong in parameters. Shared sources should be changed only after impact analysis. Refresh schedules should leave margins after upstream loads, or run from a pipeline. And every semantic model should have a named owner and a monitored contact list. Lumenvale's troubleshooting log showed the effect: in October there were eleven incidents across the Student Success workspaces, and in the first three weeks of November, after these changes, there were two.

Common mistakes

  • MistakeRetrying a failed refresh without reading the error.

    InsteadRead the full error in refresh history; it usually names the cause.

  • MistakeFixing the cause but leaving the schedule disabled.

    InsteadSwitch the schedule back on after four failures and confirm with a manual refresh.

  • MistakeAssuming a wrong number is a measure bug.

    InsteadCheck the data, then the measure, then the reader's access, in that order.

  • MistakeTuning a report without measuring it.

    InsteadUse the usage metrics performance page and Performance analyzer to find the slow visuals.

  • MistakeHard-coding server names, so a server move breaks refresh.

    InsteadUse parameters for server and database names.

Summary and key terms

  • Classify the problem first: stale data, failed refresh, wrong numbers, slow report or no access.
  • Refresh failures usually come from credentials, gateways, name mismatches, timeouts, memory or source changes.
  • After fixing a refresh failure, switch the schedule back on and run a manual refresh.
  • Check wrong numbers against the data, the measure and the reader's access, in that order.
  • Measure slowness with the usage metrics performance page and Performance analyzer before tuning.
  • Query caching and the large model storage format help capacity-hosted models serve many readers.
Performance analyzer
A Desktop pane that records how long each visual takes, split into query and display time.
DAX query view
A Desktop view for running and testing DAX queries against the model.
Query caching
A capacity feature that stores the results of a page's initial queries for faster loading.
Large semantic model storage format
A capacity setting that allows larger models and faster XMLA write operations.
Request access
A message that lets a user ask the owner of an item for permission.
Troubleshooting log
A record of symptoms, causes and fixes used to find recurring problems.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. A refresh fails four times and the schedule is disabled. You fix the credentials. What else must you do?

    Show answer

    Switch the schedule back on and run a manual refresh to confirm.

  2. A page is slow only for readers in one campus building. Where is the cause more likely to be?

    Show answer

    The network or devices in that location, rather than the report or model.

  3. Which Desktop tool shows which visuals on a page take the longest to load?

    Show answer

    Performance analyzer.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz