"Can't open online-only file" error when opening a file in OneDrive

Symptoms

When opening an online-only file in your OneDrive folder, you receive the following error:

Can't open online-only file
Make sure you're connected to the internet, then try again.
We can download the file next time you're online.

The error displays even when you are online.

Resolution

Important

Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.

  1. Ensure that Windows 10 version 1809 or newer is installed. For more information, see Update Windows 10.
  2. Using Registry Editor, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\UEV\Agent\Configuration.
  3. Right-click Configuration, select New > DWORD value.
  4. Name the value ApplyExplorerCompatFix with a value of 1.
  5. Close Registry Editor and open the online-only file.