7 Fixes For Power BI Refresh Timeout Errors
Power BI | November 27, 2026
A Power BI refresh timeout means the refresh ran longer than a time limit allowed. That might be the service limit, a source query limit, or a gateway limit. In shared capacity (Pro), a scheduled refresh of an imported model stops after two hours. In Premium and Premium Per User workspaces, the limit is five hours. To fix it, make the refresh do less work:
- Turn on incremental refresh so only recent data reloads.
- Make sure Power Query steps fold back to the source.
- Remove columns and rows nobody uses.
- Fix gateway sizing, location and version.
- Simplify the model, especially calculated columns.
- Stagger refresh schedules, or move heavy transformations upstream.
- Only then consider a larger capacity.
The service limit itself cannot be changed, so speeding up the refresh is the real fix.
Which timeout are you hitting?
“Timeout” in a Power BI refresh error can mean several different limits. Read the full error text in the refresh history before you change anything, because each one has a different fix.
| Timeout type | What the error usually says | Typical cause |
| Service refresh limit | Refresh ran past two hours in shared capacity, or five hours in Premium | The whole refresh is too big or too slow |
| Source query timeout | “Query timeout expired” or “The timeout period elapsed prior to completion of the operation” | One query to the database runs longer than the connector’s command timeout |
| Gateway timeout | Messages that mention the gateway or the mashup engine | Gateway machine short on memory or CPU, an old gateway version, or a slow network path |
| Authentication expiry | Credential or token errors partway through a long load | The OAuth token expired before a long data load finished |
Two other limits can look like timeouts. In shared capacity, a refresh can process at most 10 GB of uncompressed data, and the published model cannot exceed 1 GB. Microsoft Learn also notes that Entra ID OAuth tokens expire after about an hour, so very long loads from some cloud sources can fail on credentials, not time.
One common pattern: the refresh works in Power BI Desktop but times out in the service. Desktop talks to the source directly. The service goes through the gateway, shares capacity with other workloads, and runs on a schedule when the source may be busy with nightly jobs.
Diagnose first: find where the time goes
Most teams jump straight to buying more capacity. A short investigation usually turns up one or two tables that account for most of the refresh time, and fixing those is far cheaper.
- Check refresh history. In the semantic model settings, open refresh history and compare durations over the past few weeks. A refresh that creeps up slowly points to data growth. One that jumps suddenly points to a change, such as a new table, a gateway update, or a slower source.
- Run Query Diagnostics in Power Query. In Desktop, use Tools > Diagnose Step on the slowest queries. It shows whether time is spent at the source, in Power Query, or moving data.
- Look at the source. For SQL Server, Snowflake or other databases, check the query history for the refresh window. Slow queries, queuing, or warehouses suspended mid-refresh show up there.
- Read the gateway logs. If you use an on-premises gateway, check CPU and memory on the gateway machine during refresh, and confirm it is on a current version.
- Refresh one table at a time. With XMLA endpoint access (Premium or PPU), tools like Tabular Editor or SQL Server Management Studio can refresh tables or partitions on their own. This quickly shows which one is the problem.
Seven fixes for Power BI refresh timeouts
Work through these in order. The first three fix most cases.
1. Turn on incremental refresh
If a fact table holds years of history, reloading all of it every night is the most common cause of timeouts. Incremental refresh splits the table into date partitions and refreshes only the recent ones, for example the last 10 days, while older partitions stay as they are. Set up the RangeStart and RangeEnd parameters in Power Query and check that the date filter folds to the source. If it doesn’t, Power BI still pulls the full table, and you gain nothing.
2. Restore query folding
Query folding means Power Query turns your steps into one query that the source database runs. When folding breaks, Power BI downloads raw data and does the work itself, which is much slower. Right-click a step and check “View Native Query”. If it is greyed out, folding stops at or before that step. Common culprits are merging with an Excel file, adding index columns, or custom functions early in the query. Move those steps later, or push the logic into a database view.
3. Load only what the report uses
Remove columns with no visual or measure needs, especially wide text fields and unique IDs. Filter out rows outside the reporting window. A table with fewer, narrower columns loads faster and compresses better. That also helps with the 10 GB processing limit in shared capacity.
4. Fix the gateway
The on-premises data gateway is often the real bottleneck. Keep it on a current version, run it on a machine with enough memory and CPU for your largest refreshes, and place it close to the data source on the network. If many models share one gateway, add machines to a gateway cluster or spread schedules across it.
5. Raise the source query timeout, carefully
If the error says “Query timeout expired”, one database query is hitting the connector’s command timeout. For SQL Server, the default is 10 minutes, and you can raise it in Power Query:
Sql.Database(“server-name”, “database-name”, [CommandTimeout = #duration(0, 1, 0, 0)])
This buys time but doesn’t fix a slow query. Use it while you work on fixes 1 to 3, not instead of them.
6. Simplify the model
Calculated columns in DAX are computed during every refresh, and many of them on a large table add up quickly. Move those calculations into Power Query or the source. Also look for high-cardinality columns such as timestamps down to the second, auto date/time tables you don’t use, and bi-directional relationships that aren’t needed.
7. Split, stagger, or move the work upstream
If several large models refresh at 6 a.m., they compete for the same source, gateway and capacity. Stagger the schedules. For heavy transformations shared across reports, move them into a dataflow or, better, into the data warehouse, so each model loads finished tables instead of rebuilding them.
When to upgrade capacity, and when to call in help
Moving to Premium Per User or a Premium or Fabric capacity raises the refresh limit from two hours to five, removes the shared-capacity data limits, and opens up XMLA endpoint tools for partition-level refreshes. It is the right move when your models are genuinely large and already well built.
It is the wrong move when the refresh is slow because of broken folding, a full reload of history, or an undersized gateway. In those cases a bigger capacity just gives a slow refresh more time to fail. It also costs more every month.
A Power BI consultant can help when:
- You’ve tried the fixes above and refreshes still fail, or still take hours.
- Many models across teams are hitting limits, which points to a shared design problem.
- You’re planning a move to Fabric or a new cloud warehouse and want a refresh designed properly from the start.
Perceptive Analytics helps teams audit slow semantic models, rebuild them around incremental refresh and folding-friendly sources, and set up refresh monitoring so problems show up before users notice.
Frequently Asked Questions
Can I increase the Power BI refresh time limit?
No. The two-hour limit in shared capacity and the five-hour limit in Premium are set by the service, and no setting in the model, workspace or gateway changes them. You can only make the refresh faster or move the model to a capacity with the higher limit.
Why does my refresh work in Power BI Desktop but time out in the service?
Desktop connects to the source directly from your machine, while the service goes through the gateway and shared or Premium capacity. Gateway resources, network distance, busy sources during scheduled hours, and capacity contention can all slow the service refresh. Check the gateway machine and source query history for the failed refresh window.
Does incremental refresh need Premium?
No. Incremental refresh works with Power BI Pro as well as Premium. Premium adds options such as real-time partitions and XMLA endpoint access for managing partitions directly.
How do I know if query folding is working?
In Power Query, right-click the last step of a query and check whether “View Native Query” is available. If it is greyed out, folding has stopped somewhere earlier. Query Diagnostics and the step folding indicators in recent Desktop versions also show which steps fold.
Should we move to Microsoft Fabric to fix refresh timeouts?
Only if the models are large and already optimized. Fabric capacity raises limits and adds options such as Direct Lake, which avoids import refresh for some scenarios. But it will not fix a model that reloads all of its history or breaks query folding. Fix the design first, then decide on capacity.




