Business Professionals
Power BI | Power Pivot | Power Query | DAX
Cloud Flows | RPA | AI Builder | Copilot
60+ Formulas | Data Stories | Advanced Reporting & Modeling
VB Programming | Report Automation |
MS-Office Automation
Techno-Business Professionals
Power BI | Power Query | Advanced DAX | SQL - Query &
Programming
Microsoft Fabric | Power BI | Power Query | Advanced DAX |
SQL - Query & Programming
Power BI | Power Apps | Power Automate | Copilot Studio | Power Pages | Dataverse
Microsoft Power Apps | Microsoft Power Automate
Power BI | Adv. DAX | SQL (Query & Programming) |
VBA | Python | Web Scrapping | API Integration
Power BI | Power Apps | Power Automate |
SQL (Query & Programming)
Power BI | Adv. DAX | Power Apps | Power Automate |
SQL (Query & Programming) | VBA | Python | Web Scrapping | API Integration
Power Apps | Power Automate | SQL | VBA | Python |
Web Scraping | RPA | API Integration
Technology Professionals
Power BI | DAX | SQL | ETL with SSIS | SSAS | VBA | Python
Power BI | SQL | Azure Data Lake | Synapse Analytics |
Data Factory | Databricks | Power Apps | Power Automate |
Azure Analysis Services
Microsoft Fabric | Power BI | SQL | Lakehouse |
Data Factory (Pipelines) | Dataflows Gen2 | KQL | Delta Tables | Power Apps | Power Automate
Power BI | Power Apps | Power Automate | SQL | VBA | Python | API Integration
Power BI | Advanced DAX | Databricks | SQL | Lakehouse Architecture
Business Professionals
Power BI | Power Pivot | Power Query | DAX
Cloud Flows | RPA | AI Builder | Copilot
60+ Formulas | Data Stories | Advanced Reporting & Modeling
VB Programming | Report Automation |
MS-Office Automation
Techno-Business Professionals
Power BI | Power Query | Advanced DAX | SQL - Query &
Programming
Microsoft Fabric | Power BI | Power Query | Advanced DAX |
SQL - Query & Programming
Power BI | Power Apps | Power Automate | Copilot Studio | Power Pages | Dataverse
Microsoft Power Apps | Microsoft Power Automate
Power BI | Adv. DAX | SQL (Query & Programming) |
VBA | Web Scrapping | API Integration
Power BI | Power Apps | Power Automate |
SQL (Query & Programming)
Power BI | Adv. DAX | Power Apps | Power Automate |
SQL (Query & Programming) | VBA | Web Scrapping | API Integration
Power Apps | Power Automate | SQL | VBA |
Web Scraping | RPA | API Integration
Technology Professionals
Power BI | DAX | SQL | ETL with SSIS | SSAS | VBA
Power BI | SQL | Azure Data Lake | Synapse Analytics |
Data Factory | Azure Analysis Services
Microsoft Fabric | Power BI | SQL | Lakehouse |
Data Factory (Pipelines) | Dataflows Gen2 | KQL | Delta Tables
Power BI | Power Apps | Power Automate | SQL | VBA | API Integration
Power BI | Advanced DAX | Databricks | SQL | Lakehouse Architecture
Power BI Desktop refreshes happily, but once you publish, the dataset fails in the Power BI service with a vague error and a red exclamation mark. You tweak queries, re‑publish, still fine locally, still broken online. This article walks through why Power BI refresh works in Desktop but fails in the Service, using one realistic scenario and the handful of causes that actually matter most.
You own a Sales Analytics dataset:
Symptoms:
The credentials provided for the source are invalid.We couldn't refresh the dataset. Please try again later.Data source error: Unable to connect to the data source.Nothing obvious is wrong. The SQL server is up, the files are there, your own account has access. The root issue: Desktop and Service are different execution environments.
We’ll stay with this Sales Analytics dataset and peel back the main causes:
Power BI Desktop and the Power BI service do not share a runtime or identity.
Power BI Desktop refresh:
Z:\SalesFiles) if the engine supports themPower BI Service refresh:
If a dataset depends on anything that only exists in your Desktop context, the refresh will succeed locally and fail in the Service.
For our Sales Analytics dataset, the most common pattern:
Z:\SalesFiles\Monthly.xlsx via your mapped drive.Z: at all; it needs a gateway connection to the underlying UNC path, e.g. \\fileserver\SalesFiles.For on-premises sources, the Power BI service must go through an on-premises data gateway. Desktop does not.
No configured gateway for the dataset’s sources
Gateway exists but doesn’t match the dataset’s connection string
Server=SQLPROD01;Database=SalesDW, but the gateway data source is configured as SQLPROD01.corp.local.File share paths that work locally but not via gateway
\\fileserver\SalesFiles\Monthly.xlsx or Z:\SalesFiles\Monthly.xlsx.For each on-prem source:
Once the gateway and paths match, the Service refresh should stop failing with basic connectivity errors.
Authentication is where many "works in Desktop, fails in Service" issues live.
In Desktop you can use:
Desktop stores credentials in your local Power BI credential store and uses your identity when connecting.
In the Service, each data source in the dataset is bound to service-managed credentials:
Common mismatches:
Desktop uses Windows auth; Service uses different credentials via gateway
OAuth / organizational account expired or not granted consent
Web APIs that rely on your local environment
https://internal-api.corp.local/sales via your VPN.corp.local at all; gateway doesn’t help for HTTP endpoints unless configured and reachable from the gateway machine.For each source in the Service:
If you’re using parameters for server names or URLs, check that the parameter values in Desktop match those in the Service after publish.
Power Query in Desktop and in the Service use the same language but can differ in runtime capabilities and privacy behaviour.
Data privacy levels (Public, Organizational, Private) can change how queries are folded and combined.
Typical symptom:
To reduce problems:
Some behaviour differences that matter in practice:
Local file references
C:\Users\... or a removable drive will never work in the Service.R and Python scripts
Custom connectors
Suppose you have a Power Query step that reads a local CSV and merges it with SQL data:
let
SourceSql = Sql.Database("SQLPROD01", "SalesDW"),
SalesTable = SourceSql{[Schema="dbo", Name="FactSales"]}[Data],
LocalCsv = Csv.Document(
File.Contents("C:\\Data\\Targets.csv"),
[Delimiter=",", Columns=3, Encoding=65001, QuoteStyle=QuoteStyle.Csv]
),
Merged = Table.NestedJoin(
SalesTable,
{"SalespersonId"},
LocalCsv,
{"SalespersonId"},
"Targets",
JoinKind.LeftOuter
)
in
Merged
This will never refresh in the Service because File.Contents("C:\...") is only valid on your machine. The fix is to move Targets.csv to a supported location (e.g. SharePoint) and update the query to use that path.
Sometimes both Desktop and Service can technically connect, but the Service fails due to resource limits.
Desktop:
Service (shared capacity):
Typical symptom in our Sales Analytics dataset:
Reduce data volume per refresh
Improve query folding
Check capacity and refresh schedule
Monitor refresh diagnostics
These mitigations don’t change basic connectivity rules, but they turn "works locally, fails in Service" due to resource constraints into a stable scheduled refresh.
Back to the Sales Analytics dataset. A realistic resolution path looks like this:
Normalize connection strings
Z:\SalesFiles\Monthly.xlsx with \\fileserver\SalesFiles\Monthly.xlsx in Desktop.Configure gateway properly
SQLPROD01 and \\fileserver\SalesFiles.Fix unsupported local references
Align authentication
Review refresh load
Once those changes are in place, you should see the pattern flip: refresh is consistent in both Desktop and Service, and failures are now rare and explainable.
When Power BI refresh works in Desktop but fails in the Service, start by assuming environment mismatch, not query logic. Trace each data source from Desktop to Service: path, gateway, authentication, and runtime support. Fix those four for your main datasets and most "mysterious" refresh failures disappear.
This article reflects the growing need for teams running mixed on-prem and cloud data in Power BI to understand and design explicitly for the differences between Desktop refresh and service-side execution, especially in shared enterprise environments.
Professionals who want to apply these patterns to their own data can explore Excelgoodies' Power BI Reporting programme - taught live by instructors, with certification awarded once a real project is running at work.
Insights compiled through ongoing industry research and discussions within the Excelgoodies Analytics Community.
Power BI
New
Next Batches Now Live
Power BI
SQL
Power Apps
Power Automate
Microsoft Fabrics
Azure Data Engineering