After installation of KB5094126 the Word integration over COM fails

Daratha, Paul 95 Reputation points
2026-06-11T18:46:08.1966667+00:00

After installing Windows Update KB5094126 (June 2026), our application fails when opening Word via COM automation.

Error:

HRESULT 0x80020005 (DISP_E_TYPEMISMATCH)
Type mismatch
  • Happens during Documents.Open() (IDispatch call)
  • Fully reproducible
  • Works again after uninstalling KB5094126

Impact:

  • Breaks Word integration / reporting completely
  • Affects multiple environments

Tested with:

  • Word 2013
  • Word 2021
  • Microsoft 365

→ So not Office-specific, likely COM/Windows layer

Question: Has anyone seen this after KB5094126? Was there a change in COM/OLE automation or VARIANT handling in this update?

Microsoft 365 and Office | Development | Other

Answer accepted by question author
Homero Junior 80 Reputation points
2026-07-14T20:05:47.8366667+00:00

My integration had been having issues ever since the update that broke it. All it took was installing this update—KB5101650—and everything started working again. Just install update KB5101650, restart, and you're all set.

Was this answer helpful?

4 people found this answer helpful.
0 comments No comments

11 additional answers

Sort by: Most helpful
  1. Daratha, Paul 95 Reputation points
    2026-07-15T13:09:02.5666667+00:00

    Fixed by Microsoft

    For all OS see following table

    OS Resolving KB
    Windows 11 26H1 KB5101649
    Windows 11 25H2 / Windows 11 24H2 KB5101650
    Windows 11 23H2 KB5099414
    Windows Server 2025 KB5099536
    Windows 10 ESU KB5099539
    Windows Server 2022 KB5099540
    Windows Server 2019 KB5099538
    Windows Server 2016 KB5099535
    Windows Server 2012 R2 KB5099444

    Was this answer helpful?

    0 comments No comments

  2. Homero Junior 80 Reputation points
    2026-07-14T20:04:14.0366667+00:00

    My integration had been having issues ever since the update that broke it. All it took was installing this update—KB5101650—and everything started working again. Just install update KB5101650, restart, and you're all set.

    Was this answer helpful?

    0 comments No comments

  3. Jürgen Hillmann 5 Reputation points
    2026-06-20T05:03:26.76+00:00

    one annotation:

    we were fine for generating one document in a loop after that we had the same error typeconflict

    after research we found out that Table generation did the problem

    oTables.Add() was fault, we had as last parameter vtOptional for autoformation , but it want's a true or false !!!!!!!

    bmks=oDoc.GetBookmarks();

    bmk=bmks.Item(COleVariant("Tabelle_01"));

    oRange = bmk.GetRange();

    oTables = oDoc.GetTables();

    if (anzahl>0)

    {

    			oTable =  oTables.Add(oRange,(long) anzahl,(long) 5,vtOptional**,vtTrue);  //** 
    
    			oBorders = oTable.GetBorders();
    

    ]

    Was this answer helpful?

    0 comments No comments

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.