Fix Excel Power BI Pivot Table Refresh Failing Initially
Question details
The user needs to resolve an issue where Power BI-connected pivot tables in a SharePoint-hosted Excel workbook fail during the initial data refresh but refresh successfully when the Refresh All command is used subsequently.

- Product
- Microsoft Excel, Power BI, SharePoint Online
- Device & OS
- not provided
- Scenario
- Refreshing Power BI dataset-connected pivot tables in an Excel workbook stored on SharePoint Online.
- Observed behavior
- The initial data refresh fails to update the pivot tables, but triggering 'Refresh All' immediately afterward successfully establishes the connection and updates the data.
Ensure you have a stable internet connection and the necessary permissions to access both the SharePoint Online directory and the underlying Power BI datasets.
Isolate the Issue by Moving or Rebuilding the Pivot Table
Moving the affected pivot table to a new workbook helps determine if the issue is a workbook-specific corruption or related to a delayed data connection.
A delay in the data connection or a bloated workbook cache can cause the initial refresh to time out. Rebuilding the report in a fresh file often bypasses legacy file errors and establishes a cleaner connection handshake with Power BI.
Launch Microsoft Excel and create a completely blank workbook.
Navigate to the 'Data' tab, select 'Get Data', and connect to your target Power BI dataset.
Recreate the pivot table fields in the new workbook to match your original report.
Save the new file to SharePoint Online, reopen it, and attempt an initial refresh to see if the failure persists.

Monitor Refresh Logs Using Diagnostic Data Viewer
If the problem continues, using diagnostic tools can help log exactly what happens during the initial Excel data connection.
Experience Fast and Reliable Data Analysis with WPS Office
If you frequently encounter connection delays or complex configuration issues in Microsoft Excel, consider trying WPS Office. It provides a lightweight, highly compatible, and user-friendly spreadsheet environment for seamless data analysis.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing .xlsx files without losing any formatting.
- 3. Analyze Data Without Lag: Use WPS Office's built-in Pivot Table features to securely analyze your local data sets.

Frequently Asked Questions
Why does 'Refresh All' work when the initial refresh fails?
The initial refresh might fail due to authentication delays or a slow handshake with the Power BI dataset. 'Refresh All' often succeeds because the connection pathway and authentication tokens were already established during the first, albeit failed, attempt.
Can SharePoint sync issues cause pivot table refresh errors?
Yes, if the Excel file is actively syncing or temporarily locked by SharePoint Online background processes, it can interrupt or delay the initial data request to external sources like Power BI.
How can I prevent data connection timeouts in Excel?
You can adjust connection properties by navigating to Data > Queries & Connections, right-clicking your specific data connection, selecting Properties, and increasing the Timeout limit in the connection string or settings.




