Data Import & Export

Fix Excel Web Query Error After Microsoft 365 Update

Huma Ashraf ChHuma Ashraf Ch Oct 19, 2026 868 views

Question details

Users are encountering an unexpected assembly error when attempting to run web queries in Excel following a recent Microsoft 365 update.

Fix Excel Web Query Error After Microsoft 365 Update
Product
Microsoft Excel
Device & OS
Windows
Scenario
Importing data from a website using the built-in web query feature in Excel.
Observed behavior
Excel throws an 'Unexpected Error' stating it cannot load the Microsoft.mshtml assembly or its dependencies, preventing the web data from importing.
Before you start

Before rolling back your Office installation, make sure to save all active workbooks and verify your Microsoft account credentials in case you need to sign in again.

Solution 1

Clear Global Data Source Permissions

Resetting the global permissions for your data sources can resolve cached authentication or connectivity glitches causing query errors.

Sometimes Excel retains outdated or corrupted permission settings for specific web URLs. Clearing these forces Excel to establish a fresh connection to the data source.

1
Open Data Source Settings

In Excel, navigate to the Data tab on the ribbon, click on Get Data, and select Data Source Settings.

2
Select Global Permissions

In the Data Source Settings dialog box, click on the Global permissions toggle at the top.

3
Clear Permissions

Locate and select the affected URL from the list, then click the Clear Permissions button. Alternatively, click the drop-down arrow next to it and select Clear All Permissions to reset all sites.

Free Microsoft Office alternative

Avoid Disruptive Update Bugs with WPS Office

If Microsoft 365 update bugs are disrupting your critical data workflows, consider switching to WPS Office. It provides a stable, highly compatible, and lightweight spreadsheet environment without forcing unexpected background updates that break functionality.

  1. 1. Download and Install: Get the free WPS Office installer from the official website and run the setup on your Windows PC.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheets and directly open your existing .xlsx files without worrying about compatibility loss.
  3. 3. Continue Working Uninterrupted: Manage your data, formulas, and formatting in a highly stable application environment.
Seamlessly compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Stable environment for reliable data handling and formattingFamiliar user interface requiring zero learning curveLightweight application that uses minimal system resourcesFree to use for everyday productivity tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show a Microsoft.mshtml assembly error when importing data?

This error is typically caused by a corrupted update or missing dependency within a new Microsoft 365 release (such as Version 2303), which prevents Excel's web query engine from successfully loading required background components.

Will I lose my saved data if I revert to an older version of Excel?

No. Reverting to a previous build of Microsoft 365 only replaces the application installation files. All of your personal documents, saved spreadsheets, and data will remain completely unaffected.

How do I stop Excel from automatically updating to the buggy version again?

Before or immediately after downgrading, open Excel, navigate to File > Account, click on the Update Options button, and select 'Disable Updates'. You can re-enable this setting once Microsoft officially releases a patched version.