To troubleshoot Power BI dataset refresh failures that occur only in the Power BI Service but work fine in Power BI Desktop, follow these steps:
1. Check Data Source Credentials & Authentication
-
Go to Power BI Service > Dataset Settings > Data Source Credentials and ensure credentials are correctly set.
-
If using OAuth, refresh tokens might expire—re-authenticate the connection.
-
If using Windows authentication, ensure that the same user running the refresh in Desktop has the correct access in the Service.
2. Verify Gateway Configuration (For On-Premises Sources)
-
If your dataset connects to on-premises databases (SQL Server, Excel, SharePoint, etc.), you need an On-premises data gateway.
-
Check Gateway Setup:
-
Go to Manage Gateways in the Power BI Service and confirm that the data source is added to the gateway.
-
Ensure the server name and database name in Power BI Desktop match the gateway settings.
-
If using DirectQuery or Import mode, verify that the gateway is online and not blocking queries.
3. Review Query Performance & Timeouts
4. Check Dataset Refresh Logs
-
Go to Power BI Service > Dataset > Refresh History to check error messages.
-
If the error mentions "Resource consumption exceeded", reduce dataset size using summarized tables or optimizing DAX calculations.
-
If the error states "Invalid credentials", re-enter credentials and verify permissions.
5. Consider API Limits & Cloud Service Restrictions
-
If using SharePoint, OneDrive, or Web APIs, Power BI Service has stricter rate limits than Desktop.
-
Use Azure SQL, Synapse, or Dataflows as alternatives for better refresh handling.
Final Steps
-
Test a manual refresh in the Service after applying fixes.
-
If errors persist, try publishing the dataset under a different workspace and reconfigure.
-
For persistent issues, use Power BI Premium for better performance handling or contact Microsoft Support.