Troubleshooting
The power query download did not complete—not once, but repeatedly—until I realized some corporate firewall or background update was sabotaging my data pull. ⚡ I’ve spent hours debugging this myself. throttles the connection mid-download. The good news? Most fixes take under five minutes once you know where to look.
The root causes are usually network-related: throttled connections, proxy settings, or even Excel's own cache getting stuck on a partial download. I've seen this happen most often with large datasets or when switching between Power BI and Excel versions.
The error messages rarely help, but the solutions almost always come down to clearing temporary files or adjusting network settings.
You'll walk away with a foolproof method to retry downloads, clear stubborn cache files, and even bypass some network restrictions without IT help. The best part? These steps work for both Excel and Power BI, so you won't need separate fixes for each tool. Let's get your queries flowing again.
Fair warning: if you're on a corporate network, you might need to loop in your IT team for the final step—but I'll show you exactly which settings to check first. This has saved me from recreating entire datasets more times than I can count.
Why it happens
When your Power Query download stalls or fails to complete, it’s rarely a random glitch—it’s usually a clash between your system’s constraints and the data source’s demands. Below, we break down the most common culprits, explained in plain terms with actionable insights.
🔌 Network Bandwidth Bottlenecks
Power Query relies on your internet connection to fetch data, and if your network is throttled (intentionally slowed down) or overwhelmed, the download halts mid-process. This happens because:
- Corporate firewalls or IT policies limit bandwidth for non-critical apps, treating Power Query as a "background" task.
- Shared networks (Wi-Fi, VPNs) prioritize other devices, leaving Power Query starved for speed.
- ISP throttling may occur if your query triggers repeated small requests (e.g., API calls or large CSV chunks).
Why it matters: Power Query uses parallel connections by default, which can overwhelm a slow or restricted network. Even a "stable" connection may fail if it can’t handle the burst of simultaneous requests.
🖥️ System Resource Exhaustion
Power Query runs in memory, and if your machine is juggling too many tasks, it abandons the download to free up RAM or CPU. Key triggers include:
- RAM limits (e.g., 32-bit Excel or low-memory VMs) force Power Query to pause when loading large datasets.
- CPU throttling (common on laptops with thermal throttling) slows down data processing.
- Background apps (e.g., antivirus scans, updates, or other Excel add-ins) steal resources.
Why it matters: Power Query’s in-memory engine caches data before writing to Excel. If your system can’t hold the intermediate data, the query times out and appears "stuck."
📁 File Size or Structure Issues
Not all files are created equal—and some are designed to break Power Query. Problems arise when:
- Files exceed Excel’s limits (e.g., >1M rows in CSV, or binary files like
.xlsbwith embedded objects). - Corrupt or fragmented files (e.g., half-downloaded CSVs, password-protected Excel files, or malformed JSON).
- Unsupported formats (e.g.,
.dbf,.mdb, or cloud files with restrictive permissions).
Why it matters: Power Query uses streaming APIs or direct file reads. If the file is too large or malformed, the parser hangs waiting for data that never arrives cleanly.
🔒 Authentication or Permission Roadblocks
Even with a perfect connection, Power Query can’t proceed if it lacks the rights to access the data. Common blockers:
- Expired API tokens (e.g., OAuth, SharePoint, or SQL Server tokens).
- Firewall rules blocking outbound ports (e.g., 443 for HTTPS, 1433 for SQL).
- Source-side restrictions (e.g., a database admin revoked your read access mid-query).
Why it matters: Power Query silently retries failed authentication for ~30 seconds before failing. If the issue persists (e.g., a revoked token), it triggers a "download not complete" error.
🐌 Slow or Unresponsive Data Sources
Some data sources are inherently sluggish, and Power Query’s default timeout (usually 120 seconds) isn’t always enough. Examples:
- Legacy databases (e.g., Oracle, DB2) with poor query optimization.
- Cloud APIs with rate limits (e.g., Salesforce, Dynamics 365).
- FTP/SFTP servers with slow transfer speeds or high latency.
Why it matters: Power Query assumes the source will respond within its timeout. If the source is busy (e.g., running a backup) or restricted (e.g., a free-tier API), the query fails.
How to solve it
When Power Query refuses to finish downloading data, the frustration is real—but the fixes are often simpler than you think. Below are targeted solutions mapped to common causes, along with pro tips to keep your queries running smoothly. Let’s troubleshoot step by step!
###
🔥 1. Network Throttling or Slow Connection
If your internet is the bottleneck, Power Query may time out or stall. Here’s how to bypass it:
- 🔄 Restart your connection: Toggle Wi-Fi or Ethernet off and back on to reset bandwidth. Sometimes, a simple reboot clears hidden throttling.
- 📶 Switch networks: Move to a different Wi-Fi band (e.g., 5GHz to 2.4GHz) or use a mobile hotspot to test if ISP throttling is the issue.
- ⏳ Adjust timeout settings:
- Open Power Query Editor → Home → Advanced Editor.
- Locate the
letblock and add:
(IncreaseSource = Web.Contents("URL", [ManualStatusHandling={404,500,502,503,504}, Timeout=#duration(0,5,0,0)])Timeoutto#duration(0,10,0,0)for larger files.) - Click Done and rerun the query.
- 📉 Use a download manager: Tools like IDM or JDownloader can pre-fetch data, then import it into Power Query via From File.
💡 Prevention tip: Schedule heavy downloads during off-peak hours (e.g., late night) to avoid congestion.
###
🍳 2. Large File or Complex Query
Power Query may choke on massive datasets or nested transformations. Simplify with these workarounds:
- 📊 Split the load: Break the query into smaller chunks using Table.SelectRows or Table.FirstN to process data in batches.
- 🔄 Use incremental refresh:
- In Power Query Editor, go to Home → Advanced Editor.
- Add a step like:
let Source = Excel.Workbook(File.Contents("path"), null, true), Sheet1 = Source{[Item="Sheet1",Kind="Sheet"]}[Data], // Add a filter for incremental data: FilteredRows = Table.SelectRows(Sheet1, each [Date] > DateTime.LocalNow().AddDays(-7)) in FilteredRows
- 🖥️ Offload to Power BI: For enterprise files, use Power BI Desktop’s DirectQuery mode to stream data without full downloads.
💡 Prevention tip: Optimize queries by removing unused columns early (Remove Other Columns) and disabling Enable Load for intermediate steps.
###
👨🍳 3. Corrupted or Unreadable Source
If the file itself is the problem, isolate and repair it:
- 🔍 Verify the source:
- Open the file in its native app (e.g., Excel, CSV editor) to check for errors.
- Save a copy as a new file (e.g.,
DataBackup.xlsx) to rule out corruption.
- 🔄 Try a different format: Convert the file to _CSV_ or _JSON_ (tools like ConvertCSV can help), then reload.
- 🛠️ Repair the file:
- For Excel: File → Open → Browse → Select file → Open and Repair.
- For CSV: Use Notepad++ to fix line breaks or encoding issues.
💡 Prevention tip: Always back up critical files and validate them with a checksum tool (e.g., FCIV) before processing.
###
🥘 4. Power Query or Excel Glitch
Sometimes the tool itself is the culprit. Reset it with these steps:
- 🔄 Restart Excel/Power Query: Close all instances of Excel, reopen the file, and retry the query.
- 🧹 Clear query cache:
- Press
Alt + F11to open the VBA editor. - Go to Debug → Compile VBAProject.
- Close Excel and reopen it.
- Press
- 🔧 Repair Office installation:
- Go to Control Panel → Programs and Features.
- Select Microsoft 365 → Change → Quick Repair.
- 📦 Reinstall Power Query: Download the latest Power Query add-in and reinstall it.
💡 Prevention tip: Keep Excel and Power Query updated—Microsoft frequently patches bugs that cause hangs.
###
⏰ 5. Antivirus or Firewall Blocking Access
Security software can mistakenly flag Power Query as a threat. Whitelist it:
- 🛡️ Add exceptions:
- Open your antivirus/firewall (e.g., Windows Defender, McAfee).
- Navigate to Exceptions or Allowed Apps.
- Add:
C:\Program Files\Microsoft Office\Root\Office16\MSPQSTOR.EXE(or similar path for your Office version).C:\Program Files\Common Files\Microsoft Shared\Power Query.
- 🔌 Temporarily disable real-time protection: Test if the issue resolves by turning off your antivirus for 5–10 minutes.
💡 Prevention tip: Exclude %LocalAppData%\Microsoft\Power Query from scans to avoid future conflicts
Frequently asked questions
Why does Power Query keep failing mid-download even with a stable connection?
Network throttling is the most common culprit. Corporate firewalls, VPNs, or ISP restrictions often limit bandwidth for data-heavy tasks like Power Query. Even "stable" connections may struggle with Power Query's parallel download requests, causing timeouts. Try switching networks or adjusting your query's timeout settings in the Advanced Editor.
How can I fix Power Query errors when working with large datasets?
Break your query into smaller batches using Table.FirstN or Table.SelectRows. For Excel, consider incremental refresh by filtering data (e.g., only loading recent records). If the file exceeds 1M rows, try Power BI's DirectQuery mode instead—it streams data without full downloads.
What should I do if my antivirus keeps blocking Power Query downloads?
Add exceptions for Power Query's executable paths in your antivirus settings. For Microsoft 365, whitelist:
C:\Program Files\Microsoft Office\Root\Office16\MSPQSTOR.EXE and
C:\Program Files\Common Files\Microsoft Shared\Power Query.
If the issue persists, temporarily disable real-time protection to test.
Can corrupted files cause Power Query to fail silently?
Half-downloaded CSVs, password-protected Excel files, or malformed JSON will trigger this error. First, verify the file opens in its native app (e.g., Excel or Notepad++). Save a fresh copy as a different format (like CSV) and retry the import.
Will updating Excel or Power Query fix download issues?
Yes—Microsoft frequently patches bugs that cause hangs or timeouts. Run a Quick Repair through Control Panel > Programs > Microsoft 365. If problems persist, reinstall the Power Query add-in from Microsoft's official download page.
