How to Fix Excel Cannot Open IQY File Downloaded from SharePoint
Question details
The user is unable to open an IQY (Internet Query) file downloaded from a restricted SharePoint server using Microsoft Excel.

- Product
- Microsoft Excel, SharePoint
- Device & OS
- not provided
- Scenario
- Exporting data from a SharePoint Server or SharePoint Online list to Excel via an IQY query file.
- Observed behavior
- Excel fails to import the data and displays the error message: "An unexpected error has occurred. Changes to your data cannot be saved."
Verify whether you are using SharePoint Online or an on-premises SharePoint Server, and check with colleagues to see if they experience the exact same issue when opening the file.
Apply Microsoft Registry Fix for SharePoint Export
Modify the Windows Registry to ensure Excel can properly authenticate and connect to SharePoint Online.
This error frequently occurs due to missing registry keys required for modern SharePoint authentication in Microsoft Office.
Adding the necessary authentication key to the Windows Registry typically restores the ability to import data via IQY files.
Press Win + R on your keyboard, type 'regedit' into the Run dialog box, and press Enter to launch the Registry Editor.
Use the left-hand folder pane to navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity. (If you are using an older version of Office, replace '16.0' with your corresponding version number).
Right-click in the empty space on the right pane, select New > DWORD (32-bit) Value, and name it 'EnableADAL'.
Double-click the newly created 'EnableADAL' key, change its Value data to 1, and click OK.
Close the Registry Editor, restart your computer, and attempt to open the SharePoint IQY file in Excel again.

Test Alternate IQY Files and Site Permissions
Determine if the issue is isolated to a specific restricted SharePoint site or file by testing alternative sources.
Try WPS Office for Seamless Data Management
If Microsoft Excel continues to experience authentication and connectivity issues with complex web queries, consider switching to WPS Office. It provides a lightweight, highly compatible spreadsheet tool that efficiently handles your daily data management without requiring complex registry configurations.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to complete the setup in minutes.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheet and instantly open your existing Excel workbooks and data files without losing any formatting.

Frequently Asked Questions
What exactly is an IQY file?
An IQY (Internet Query) file is a simple plain text file used by spreadsheet programs like Excel. It contains the web address and query parameters needed to automatically download and refresh data from the internet or an intranet, such as a SharePoint list.
Why do I get an 'unexpected error' when exporting SharePoint to Excel?
This error typically occurs due to blocked authentication tokens, restricted user permissions on the SharePoint server, or outdated registry settings in Windows that prevent Excel from communicating properly with SharePoint.
Does this export error happen on both SharePoint Online and SharePoint Server?
Yes, it can happen on both. However, troubleshooting differs slightly: SharePoint Online issues often require updating the Office Identity registry keys (like EnableADAL), while on-premises Server issues may involve checking internal network permissions or VPN connections.
How can I view the actual contents of an IQY file?
Because IQY files are just text files containing connection strings, you can easily view their contents by right-clicking the file, selecting 'Open with', and choosing Notepad. This allows you to inspect the target URL and query properties directly.




