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: Newest
  1. Jürgen Hillmann 5 Reputation points
    2026-06-12T06:32:45.7866667+00:00

    Nearly 500 customers have the problem , all Word Version with Remote COM ! .Open has definitiv a problem ! Your software stack is doing this, after deinstalling KB5094127 the problem was gone !

    Get on your seats and repair it, very sad because of our customers are very sad !

    Microsoft sucks ! C++

    User's image

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Greg Pryor 10 Reputation points
    2026-06-12T04:08:51.5666667+00:00

    It's happening with software I work on also (C++)

    It appears to be mostly related to using positional (non-named) parameters in methods that have optional parameters and passing vMissing for some of the optional parameters.
    COleVariant vMissing((long)DISP_E_PARAMNOTFOUND, VT_ERROR);

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments

  3. Hin-V 16,830 Reputation points Microsoft External Staff Moderator
    2026-06-11T21:38:12.3566667+00:00

    Hi @Daratha, Paul

    Thank you for sharing your concern. 

    I’ve tested Word COM automation in my environment using PowerShell on a device running Windows with KB5094126 installed (OS Build 26200.8655). In this setup, both Word startup and the Documents.Open() call completed successfully without any errors. This suggests that the update does not universally break COM automation or Word integration. 

    Based on your description and findings so far, it appears the issue is triggered after installing KB5094126, but the behavior may vary depending on the specific system configuration, runtime environment, and how parameters are passed during Word automation. 

    Currently, Microsoft has not published any official documentation or known issue related to this behavior yet. To help you reach your goal more effectively, I recommend engaging with [GitHub Community Forum] for a deeper technical dive or to connect with individuals who have relevant experience and expertise. Some approaches may behave differently or be restricted depending on your specific environment akknd configuration. These forums include many experienced developers and Microsoft specialists who can assist with troubleshooting and guidance.        

    Apologies for directing you to the relevant development support channel. As moderators in this forum, we do not have access to backend systems or the ability to directly influence Microsoft product behavior. Our guidance is therefore based on publicly available Microsoft documentation and resources.  That said, I’ll do my best to provide additional insight where possible.  

    If you have any additional concerns, feel free to comment below. I would be more than happy to assist. 


    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.

    Was this answer helpful?

    4 people found this answer helpful.

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.