Power BI Refresh
Error Decoder
Paste the error from your refresh history. You get what it means, the usual causes, and what to check first, in order. It runs in your browser: nothing you paste is sent or stored.
In the Power BI service open the workspace, choose the semantic model (dataset), then Refresh history, select the failed row and copy the whole message including any code. The code and the first sentence identify the problem.
Every error family
What Each Refresh Error
Usually Means
The gateway is offline or unreachable
What it means. The Power BI service could not reach the on-premises data gateway that sits between it and your data, so the refresh never started.
Usual causes.
- The machine running the gateway is off, asleep, or restarted after an update and the gateway service did not start.
- The gateway Windows service stopped, or its sign-in account was changed or locked.
- The machine lost internet access, or a firewall or proxy now blocks the gateway's outbound connection.
- The gateway was upgraded or moved and the dataset still points to the old one.
Check first.
- Open Manage connections and gateways in the Power BI service and check whether the gateway shows as online.
- On the gateway machine, open Services and start (or restart) the On-premises data gateway service.
- Open the gateway app and run its network test; ask your network team about outbound access if it fails.
- Confirm the dataset's Gateway connection setting points to the gateway that is running.
Credentials are invalid or have expired
What it means. The saved sign-in for a data source no longer works. The source rejected it, so the refresh failed before any data moved.
Usual causes.
- The password of the account used for the data source changed or expired.
- An OAuth sign-in (SharePoint, OneDrive, Azure SQL, Dynamics and similar) expired or was revoked, often by a security policy or multi-factor rule.
- The person who set the credentials left, or their account was disabled.
- The account lost permission on the source.
Check first.
- In the dataset's settings, open Data source credentials, choose Edit credentials and sign in again.
- Check that the account can still open the source directly (a SQL login, the SharePoint file, the API).
- Look in your sign-in logs for a conditional access or multi-factor block on the account.
- For the long term, use a service account or service principal instead of a person's account.
The refresh or a query timed out
What it means. Something took longer than its limit: either one query against the source, or the whole refresh run.
Usual causes.
- A query against the source is slow, usually because it scans a large table or the source is busy at refresh time.
- Power Query steps stopped folding back to the source, so Power BI pulls everything and transforms it itself.
- The refresh as a whole exceeded the service's time limit (at the time of writing, 2 hours on shared capacity and 5 hours on Premium or Fabric capacity; check the current limits).
- A web source or API answers slowly and the request limit is reached.
Check first.
- Open refresh history and compare this run's duration with earlier runs; a steady climb points to data growth.
- In Power Query, right-click a step and check whether View Native Query is available; if not, that step stopped folding.
- Filter and aggregate at the source, and set up incremental refresh so each run loads only new data.
- Move the schedule to a quiet time at the source, and stagger refreshes that start together.
Not enough memory to finish the refresh
What it means. The refresh needed more memory than the capacity (or the gateway machine) could give it, so it was cancelled.
Usual causes.
- The model is large for its capacity. During a full refresh the service keeps the old copy while it builds the new one, so it needs a lot more room than the finished model.
- Too many columns or very high-cardinality columns (long text, timestamps to the second) were loaded.
- Several heavy refreshes ran at the same moment on the same capacity.
- On a gateway, a heavy Power Query transformation ran on the gateway machine and ran it out of memory.
Check first.
- Remove columns and tables the reports do not use, and reduce high-cardinality columns.
- Set up incremental refresh so a run does not rebuild the whole history.
- Spread out refresh schedules on the same capacity.
- Check the capacity size or the gateway machine's memory; fold heavy transformations back to the source.
Scheduled refresh was switched off after repeated failures
What it means. Power BI stops a scheduled refresh on its own after several failures in a row (at the time of writing, four in a row on shared capacity), so nothing runs until someone turns it back on.
Usual causes.
- The original problem (credentials, gateway, source change) went unnoticed for several runs.
- Refresh failure emails went to one person who no longer reads them.
Check first.
- Fix the underlying failure first (the earlier errors in refresh history tell you which).
- Then open the dataset settings, switch the refresh schedule back on and run a manual refresh.
- Add a shared mailbox or group to the refresh failure notifications so a failure is seen on day one.
Formula.Firewall: a query references other queries or steps
What it means. Power Query's privacy protection blocked a query that reads one data source while also using data from another source in the same step.
Usual causes.
- One query both connects to a source and references another query or source (a merge, an append or a custom function).
- The sources have different privacy levels, or the levels were never set and the service is guessing.
Check first.
- Split the work: load each source in its own query, then combine them in a third query that only references those two.
- Set the privacy levels deliberately (for company data, usually Organizational) in the dataset's data source settings.
- Only as a last resort, and only if your security team agrees, ignore privacy levels for this file.
DataFormat.Error: a value could not be converted
What it means. A column was set to a data type, and at least one value in it does not fit (text such as N/A in a number column, a date written the wrong way round, a comma used as the decimal mark).
Usual causes.
- The source column now contains text, blanks or an error value where a number or date is expected.
- Decimal and date formats differ from the locale Power Query used when it set the type.
- A new file or period brought a different layout.
Check first.
- In Power Query, open the failing query, filter the column for errors (Keep Errors) and read the bad values.
- Clean them before the type step: replace errors, trim and replace text such as N/A, or use a try ... otherwise step.
- Set the column type using Locale (Change Type > Using Locale) when the format is not your own region's.
- Fix it at the source if the source should never hold that value.
Expression.Error: a column was not found
What it means. A Power Query step refers to a column by name, and that column is no longer in the source.
Usual causes.
- The source column was renamed, moved or removed by the owner of the file or system.
- The header row changed (an extra title row, a new export format).
- A promoted-headers step now sees different names.
Check first.
- Compare the source's current column names with the failing step in Power Query.
- Re-point the step to the new name, or fix the source so the old name returns.
- To survive future changes, select columns with Table.SelectColumns and the MissingField.UseNull option, and agree a stable layout with the source owner.
Expression.Error: the key didn't match any rows in the table
What it means. A navigation step looks up a table, sheet, schema or file by name, and nothing with that name exists in the source any more.
Usual causes.
- A sheet, table or view was renamed or deleted.
- The query now points at a different environment (test or production) where the object has another name.
- The file was replaced by one with a different structure.
Check first.
- Open the failing step in Power Query and look at the names the source actually shows now.
- Re-point the navigation step to the right object, or restore the original name at the source.
- Keep names stable across environments, and avoid navigating by position where a name will do.
The file or path cannot be found
What it means. The refresh looked for a file or folder at a path and could not open it from where the refresh runs.
Usual causes.
- The file was moved, renamed or deleted.
- The path uses a mapped drive letter (Z:\), which the gateway's service account cannot see; it needs a full network (UNC) path.
- The gateway or service account has no permission on that folder.
Check first.
- Open the path on the gateway machine itself, signed in as the gateway's service account.
- Replace drive letters with the full UNC path (\\server\share\file.xlsx).
- Give the account read access to the folder, and keep the file name stable or load a whole folder instead.
Cannot connect to SQL Server, or the login failed
What it means. The refresh reached for SQL Server (or Azure SQL) and either could not find it or was refused at sign-in.
Usual causes.
- The login or password changed, or the account has no access to that database.
- The server name or database was renamed, or the server is stopped.
- A firewall does not allow the gateway machine or the Power BI service to connect (for Azure SQL, the server firewall rules).
- Encrypted connection settings do not match what the server requires.
Check first.
- From the gateway machine, connect to the same server with the same account in SQL Server Management Studio.
- Check the server and database names in the data source settings.
- For Azure SQL, check the server's firewall and network rules.
- Update the saved credentials in the dataset settings once the connection works.
The operation was cancelled because of locking conflicts
What it means. Two operations tried to change or read the same model at the same moment, and one of them was cancelled.
Usual causes.
- Two refreshes (or a refresh and a publish or deployment) overlapped.
- An external tool using the XMLA endpoint was writing to the model during the refresh.
Check first.
- Look at refresh history for overlapping runs of the same dataset and spread the schedules.
- Pause deployments and XMLA writes during the refresh window.
- Retry once the other operation has finished; if it repeats on a schedule, the schedules overlap.
The daily refresh limit has been reached
What it means. The workspace's capacity only allows a set number of scheduled refreshes a day per dataset, and this dataset has used them (at the time of writing 8 a day on shared capacity and 48 on Premium or Fabric capacity).
Usual causes.
- More schedule times were added than the limit allows.
- Manual refreshes and API-triggered refreshes count towards the day's total.
Check first.
- Count the dataset's scheduled times and manual or API refreshes for the day.
- Cut the schedule to the times the business decision needs, or move the workspace to a capacity with a higher limit.
- Use incremental refresh so fewer, lighter runs do the same job.
The source is throttling you (429 Too Many Requests)
What it means. The API or service you pull from is limiting how many requests you can make in a period, and the refresh went over it.
Usual causes.
- The query makes one request per row or per page and fires them in a burst.
- Several datasets pull from the same API at the same time, sharing one limit.
- The source lowered its limits.
Check first.
- Read the API's rate-limit rules (often in a response header) and reduce the number of requests.
- Fetch in bigger pages or by date range instead of record by record, and stagger the schedules.
- Cache a slow-changing lookup in one dataset rather than calling the API from every report.
The remote certificate is invalid
What it means. The source's security certificate was not accepted by the machine making the connection, so the secure connection was refused.
Usual causes.
- The certificate expired or was replaced.
- It was issued by an internal authority the gateway machine does not trust.
- The server name in the connection does not match the name on the certificate.
Check first.
- Open the source's address in a browser on the gateway machine and look at the certificate warning.
- Install the issuing authority's certificate on the gateway machine, or renew the expired one.
- Connect using the exact server name on the certificate.
Web.Contents failed with an HTTP error
What it means. A web or API request returned an HTTP error code, which says who has the problem: 401 and 403 are about permission, 404 means the address is wrong, and 5xx errors are on the source's side.
Usual causes.
- 401 or 403: the key, token or account was rejected or lacks permission.
- 404: the URL changed or a part of it is built wrongly.
- 500 to 504: the source had a fault or was overloaded at that moment.
Check first.
- Open the same URL in a browser or an API tool with the same credentials and see the full response.
- For 401 and 403, renew the key or sign-in; for 404, correct the address.
- For 5xx, retry later and add a retry rule; if it repeats, tell the source's owner.
The data source is dynamic and cannot refresh in the service
What it means. The address of a web source is built on the fly inside the query, so the service cannot tell what it connects to ahead of time and will not refresh it.
Usual causes.
- A Web.Contents URL is put together from variables or earlier steps.
Check first.
- Keep the base address as a fixed text and pass the changing parts through the RelativePath and Query options of Web.Contents.
- Re-publish and refresh in the service to confirm.
The capacity is paused or not available
What it means. The workspace sits on a paid capacity that is paused, stopped or over its limits, so refreshes cannot run on it.
Usual causes.
- A pay-as-you-go Fabric capacity was paused (to save cost) and not resumed.
- The capacity is overloaded, or the subscription behind it lapsed.
Check first.
- Ask the capacity admin to check the capacity's status in the admin portal or Azure and resume it.
- Check the capacity's metrics for overload at the refresh time and move or stagger heavy jobs.
- Once it is running, run a manual refresh to confirm.
Incremental refresh is not set up correctly
What it means. Incremental refresh needs two date parameters and a filter that the source can run itself. If any part is missing or the filter does not fold to the source, the setup fails or loads far more than intended.
Usual causes.
- The parameters are not named exactly RangeStart and RangeEnd, or are not Date/Time type.
- The filter on the date column is applied after a step that stops query folding.
- The source does not support folding for that table (some files and web sources do not).
Check first.
- Check the two parameters' names and type, and that the filter uses both (greater or equal to RangeStart, less than RangeEnd).
- In Power Query, right-click the filter step and check View Native Query is available.
- Use a source that supports folding for large history, or partition the data before it reaches Power BI.
Expression.Error: cannot convert a null value
What it means. A step expected a value and received nothing (null) where it cannot work with it, such as a calculation or a true or false test.
Usual causes.
- A source column now has blanks that did not exist before.
- A custom column or filter does not handle empty values.
Check first.
- Filter the column for nulls in Power Query to see where they come from.
- Handle them explicitly: replace nulls first, or write the step as if [Col] = null then ... else ...
- Ask the source owner whether blanks are meant to appear.
Access is forbidden (SharePoint, OneDrive or a file share)
What it means. The account used for the refresh was refused when it tried to open the file or site.
Usual causes.
- The file's sharing changed, or the account lost access.
- The account was disabled, or a conditional access policy now blocks it.
- The file moved to a site the account cannot read.
Check first.
- Open the file as the account used for the refresh and see if it opens.
- Restore the account's permission, or share the file with a group that will not change.
- Re-enter the credentials in the dataset's settings after the permission is fixed.
The gateway machine ran out of memory or disk
What it means. Heavy work ran on the gateway machine itself and it ran out of memory or temporary disk space part-way through the refresh.
Usual causes.
- Power Query transformations that do not fold are processed on the gateway machine.
- The machine has little free disk, and the gateway keeps temporary files while it works.
- Many refreshes share one gateway at the same time.
Check first.
- Check free disk and memory on the gateway machine during a refresh.
- Push filters and joins back to the source so the gateway moves less data.
- Stagger refresh times, or use a gateway cluster to share the load.
Questions
Power BI Refresh Errors,
Answered
Why did my Power BI refresh fail?
A refresh fails when something between the Power BI service and your data stops working: a sign-in that expired, a gateway that is offline, a source that changed shape, a query that ran too long, or a capacity that ran out of memory. The exact message in refresh history says which. Paste it above and the decoder shows the usual causes and the first checks.
Where do I find the refresh error message?
Open the workspace, find the semantic model (dataset), and choose Refresh history from its menu or settings. Select the failed row and copy the full message, including any error code. The code and the first sentence are the parts that identify the problem, so include both when you paste.
Why does my report refresh in Power BI Desktop but fail in the service?
Desktop uses your own sign-in and your own machine. The service uses the credentials saved on the dataset and, for on-premises sources, the gateway. A password that works on your laptop, a mapped drive letter, or a privacy-level setting can behave differently there. Compare the saved data source credentials and the gateway with what Desktop used.
How many times a day can a dataset refresh?
The limit depends on the capacity: at the time of writing, 8 scheduled refreshes a day on shared capacity and 48 on Premium or Fabric capacity. Manual and API-triggered refreshes count towards the total. Check Microsoft's current documentation, because limits change.
What does 'scheduled refresh is disabled' mean?
Power BI turns off a schedule by itself after several failures in a row (four in a row on shared capacity at the time of writing). Fix the cause first, then switch the schedule back on and run one manual refresh to confirm. Add a shared mailbox to the failure notifications so the next failure is seen on day one.
Does the decoder send my error text anywhere?
No. The matching runs in your browser, and the text you paste is not sent to us or stored. Error messages can contain server names, so remove anything you do not want to share before you paste it into an email or a forum.
Can a decoder fix a failed refresh?
No. It narrows down the cause and lists what to check, in order. It cannot see your model, your gateway or your source, so treat the result as a starting point. If the checks do not resolve it, a short review of the refresh history and the model usually finds the real cause.
How do I stop refresh failures going unnoticed?
Send failure notifications to a shared mailbox or group instead of one person, use a service account for credentials instead of a personal one, and show a last-refreshed time on reports. Watch refresh duration over time, because a steady climb often warns of a timeout weeks before it happens.
Do you fix Power BI refresh and gateway problems?
Yes. Phoenix Solutions diagnoses refresh failures, gateways, credentials, incremental refresh and slow models for clients worldwide, working remotely. Smit Chandarana, who has 7+ years of experience and has done contract work for Microsoft, General Motors and Honda, leads the work. A free 30-minute call is the first step.
What should I send when I ask someone for help with a refresh error?
Send the full error text with its code, the time of the failure, whether the model uses a gateway, how long earlier refreshes took, and what changed recently (password, source, model, capacity). Those five facts let a helper skip most of the guessing.