Variable Excel "Connecting to Datasource" Load times

Noah Tarczon 0 Reputation points
2026-01-19T23:08:20.46+00:00

Hello,  I am running into a strange issue that I am not sure how to solve. I am using Power Query to link to external Excel data files/Sheets and then I process the data within Power Query and also have some Macros that run after the data is refreshed. I am seeing a drastic difference in the amount of time it takes separate users to open/refresh this file (the users have the same internet connection, use the same link to the file on a Shared Drive on our servers, same Excel settings, and have the same hardware). Some users can load and run all Macros in ~15 seconds, while the others take ~10 minutes. I have exhausted all possible causes/reasons that I can think of and am looking for some guidance.

Q: Is it always the same users who load and run in <15 seconds? Is it always the same users who load and run in >10 minutes? 

Q: (Or, just be sure we're clear, are there some people who have  both experiences, just on different occasions?)

A: Yes (to a degree). I have a fairly small sample size when it comes to users that I know have experienced one or the other. I know of three individuals who always have it run <15 seconds, and four that are always > 10 minutes. 

A: I am not aware of anyone that has experienced both scenarios. It's either one or the other. 

Q: Are there no (zero) experiences in the sizable time gap between those two extremes? If there are other experiences, let's include them in the list of symptoms seeking a cause.

A: There are rare occasions where they either both take longer or both run faster, but I have not heard of/experienced any significant deviations from one or the other.

Q: Are these different users all in the same geographic location (you don't mention location in your description of all the "Sames" that they do share in common.

A: Good point, I seem to have forgotten to add this! Yes, we are all located within the same building. I have made sure to test different internet types (WiFi, Ethernet) as well as locations in the building. These tests were unhelpful as the faster PC/User was still fast, while the slow PC/User (both are laptops in this case) was still slow.

Q: When are these different extremes experienced (time of day, time of week)?

  1. They are consistent throughout the Day and Week. It does not matter at which time the Users attempt to open/run the file. 

As for our test cases, we have attempted (using two specific laptops, one from each "bucket"):

  • swapping the User Account signed into Excel on either machine
  • using both Ethernet and WiFi on either machine
  • editing Excel's Macro/data connection settings
  • downloading the files locally
  • optimizing the Power Query connections
  • using a "fresh" Windows account (i.e., I logged in using my Windows account onto one of the slow machines)
  • reinstalling Microsoft Office 365 applications

Any and all suggestions are appreciated!

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sophie N 9,965 Reputation points Microsoft External Staff Moderator
    2026-01-20T01:44:58.2966667+00:00

    Dear @Noah Tarczon,

    Thank you for reaching out to the Microsoft 365 Q&A forum. Given that the issue persists across different Windows profiles on the same hardware, but remains consistent to specific machines, we can narrow the focus to hardware-level configurations, Excel’s internal handling of sheet metadata, and network protocol overhead. 

    To help me narrow down the cause, could you please provide the following details?    

    1. Have you checked the specific versions of Excel installed on both fast and slow computers? 
    2. Are the Excel files very large or complex, possibly affecting performance due to local configurations? 
    3. Could there be any differences in user access rights on the shared drive affecting performance? 
    4. Have you considered running a test under a controlled environment (different users on the same machine)? 

    In the meantime, please try the following official troubleshooting options which usually resolve issues with basic issues:   

    Step 1: Address "Incorrect Dimensions" in Source Files 

    Power Query relies on the OpenXML dimension attribute to know how much data to read. If a source file was ever modified in a way that Excel thinks the used range is millions of rows (even if they are empty), Power Query will attempt to "read" that entire space for certain users depending on how their local cache handles the stream. 

    Force Power Query to ignore the file's internal dimension metadata by adjusting your M code. In the Advanced Editor, modify your Excel.Workbook step: 

    • Standard: Excel.Workbook(File.Contents("path"), null, true) 
    • Optimized: Excel.Workbook(File.Contents("path"), null, false) 

    Setting the third parameter (InferSheetDimensions) to false (or true depending on your version, as behavior can toggle) forces Excel to ignore the metadata and scan the actual data rows instead. 

    For more technical details, you can refer to the Excel.Workbook - PowerQuery M | Microsoft Learn 

    Step 2: Disable "Background Refresh" 

    On "slow" machines, Excel often attempts to allow the user to keep working while data loads in the background. This sounds helpful but often creates a massive bottleneck for complex queries. 

    1. Right-click your Query in the Queries & Connections pane.  User's image
    2. Select Properties.  User's image
    3. Uncheck Enable background refresh.  User's image
    4. This forces Excel to dedicate all available resources to the refresh, often dropping load times from minutes to seconds. 

    Step 3: Clear and Standardize Data Cache 

    Since the problem follows the hardware, it may be related to how the local Office installation handles the Data Cache. 

    1. Go to Data > Get Data > Query Options. 
    2. Under Global > Data Load, click Clear Cache. 
    3. Ensure Maximum allowed (MB) is set to the same value across all machines (e.g., 4096 MB).  User's image

    Step 4: Check for Printer driver latency 

    It sounds unrelated, but Excel queries the Default Printer driver during page layout calculations when opening files. If a "slow" user has a disconnected or mapped network printer that is timing out, Excel will hang for minutes "Connecting to Datasource" while it waits for a printer handshake. 

    Test: Set the default printer to "Microsoft Print to PDF" on a slow machine and attempt the refresh. 

    Please note that as a forum moderator, I don’t have access to backend tools or internal systems to investigate further, and certain settings or configurations are managed exclusively by your organization’s administrators, so I’m unable to check or make changes on that side. That said, I truly hope these suggestions help you move forward.  

    Please let me know if you have any further questions or if the problem persists after trying these solutions. Thank you for your patience and cooperation.  


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.