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
You hit Refresh in Desktop, everything loads fine. You publish, schedule a refresh in the Power BI service, and the first email of the morning is a failure notification. Same dataset, same queries, different result.
This post walks through a realistic scenario and the handful of root causes that explain most “works in Desktop, fails in Service” refresh issues – and how to fix them properly instead of poking random settings.
You’re supporting an internal HR analytics dashboard.
On your laptop, Refresh in Power BI Desktop succeeds.
After publishing:
Let’s fix this systematically.
Before changing anything, prove the problem is environment-related.
.pbix you published.If Desktop refresh fails, you have a query/model problem, not a Service-only problem. Fix that first.
If Desktop refresh succeeds and Service fails, you’re dealing with one or more of:
We’ll use the HR scenario to go through each.
In our scenario, the HR SQL Server and the network file share are on-premises. Power BI Service cannot reach them directly over your corporate network – it needs a gateway.
In the Power BI Service:
Then, for the published dataset:
If it’s not mapped, scheduled refresh will fail for any on-prem sources.
Each distinct connection string used in your Power Query must have a corresponding data source configured on the gateway.
For our HR example, we need:
In Manage connections and gateways:
HRDB-SQL01 or hrdb-sql01.domain.local)\\fileserver01\HR_Reports)Use a service account that:
Back on the dataset settings page:
Only when the mapping is correct will the dataset refresh use the gateway.
If your Desktop uses localhost or a different server alias, the Service will not match it to the gateway entry. This is a common reason “Gateway is online but dataset still shows Not configured correctly”.
In Desktop, update the source definition to match the gateway connection string.
For example, in Power Query:
let
Source = Sql.Database("HRDB-SQL01", "HR_Prod")
in
Source
Publish again, then re-check the gateway mapping.
In Desktop, Power Query uses your local credentials. In the Service, each data source stores its own credentials. They are independent.
For our HR scenario, the three sources use different auth types:
In the dataset settings page:
Key points:
If you see “Your data source can't be refreshed because the credentials are invalid”, it almost always means:
Fix the credentials, then run a manual refresh to confirm.
A refresh that works in Desktop but fails in the Service with:
Information is needed in order to combine data
usually points to privacy levels or query folding differences.
In Desktop, you can disable privacy checks under File > Options and settings > Options > Global > Privacy. Many teams do this for performance.
In the Service, privacy levels are enforced per data source. You can’t globally turn them off; you can only set them to None, Public, Organizational, or Private.
If your queries combine data from sources with conflicting privacy levels, the Service may block the operation or require explicit configuration.
In the dataset settings page, under Data source credentials:
For our HR scenario:
If all sources are within the same tenant and appropriately protected, setting them to Organizational is common, and usually avoids unnecessary blocking.
If you merge HR SQL data with SharePoint comments in Power Query, the engine may need to materialize one source locally. This can be slower or more fragile in the Service.
Where practical:
But don’t assume cross-source joins are unsupported – they are supported, just subject to privacy and folding behaviour.
In our scenario, the SharePoint Online list is cloud-based and doesn’t use the on-premises gateway.
Common Service-only failure causes:
In Desktop, when connecting to a SharePoint Online list or folder, use the site root URL, not the list or file URL.
For example:
let
Source = SharePoint.Tables("https://contoso.sharepoint.com/sites/HR", [ApiVersion = 15])
in
Source
Avoid embedding tenant-specific paths that might change (like file URLs with ?web=1 parameters).
After publishing, set the credentials in the Service using OAuth2 with an organizational account that has access to the site.
If your organization enforces MFA or conditional access, tokens used by the Service may expire or be revoked when:
Whenever that happens, you’ll see credential errors in the refresh history. The fix is simply to Edit credentials and sign in again with a valid account.
For production datasets, consider using a dedicated service account where your security policies allow it.
Sometimes everything is configured correctly, but the Service still fails while Desktop succeeds, especially on large HR datasets.
Desktop runs on your machine’s resources. The Service runs under capacity limits (shared or Premium).
If your dataset is close to the maximum size allowed for your capacity, refresh may fail in the Service even if Desktop copes.
To mitigate:
Query folding to SQL may behave differently in the Service. For example, if a step in Power Query prevents folding, the Service may need to pull more data over the network than your local Desktop, and hit timeouts.
Typical fixes:
You can check folding in Desktop by right-clicking a step in Power Query and looking for View Native Query. If it’s greyed out early in the query, consider refactoring.
After each change, don’t just assume it worked – confirm via refresh history.
In the Service:
You’ll see:
For our HR scenario, you might see a progression like:
Once you have a clean history for a few runs, you can treat the issue as resolved.
Before you send any new dataset to production, do a Service-first validation:
That small step turns “mysterious Monday-morning failures” into predictable, fixable configuration tasks you catch before the HR team sees anything break.
This article reflects the growing need for Power BI teams to treat Desktop and Service refresh as separate environments, especially in organisations mixing on-premises gateways with cloud sources and strict security policies.
Professionals who want to apply these patterns to their own data can explore Excelgoodies' Power BI Training Singapore 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