0X80040001

OLE_E_ADVF (0X80040001) – Invalid advise flags fix

Windows Errors Beginner 👁 6 views 📅 Jul 20, 2026

Annoying OLE error when copy-pasting between apps. Quick registry fix or clean up clipboard. Works in Windows 10 and 11.

This error drives people nuts

You're copying text or an image from one program to another – maybe from Excel to Word, or from a browser to a document. Suddenly you get a pop-up: "OLE_E_ADVF (0X80040001) – Invalid advise flags". The copy fails. You try again. Same thing.

Don't worry. This is not a hardware failure. It's a software bug in how Windows handles Object Linking and Embedding (OLE). I've seen this on Windows 10 version 22H2 and Windows 11 version 23H2. It often happens after a Windows update or when you have too many things on the clipboard.

The fix that works 9 times out of 10

Before you mess with the registry (we'll do that if needed), try this first. It's the simplest fix and it works for most people.

Step 1: Clear the clipboard

  1. Press Windows + R to open the Run box.
  2. Type cmd and press Ctrl + Shift + Enter to run Command Prompt as administrator. You'll see a User Account Control pop-up – click Yes.
  3. In the Command Prompt window, type this command and press Enter:
    echo off | clip
  4. After you press Enter, the command runs instantly. You won't see any message. That's normal.
  5. Close Command Prompt.
  6. Try copying and pasting again between the same programs where the error appeared.

What to expect: After the command, your clipboard is empty. The next copy should work fine. If it does, you're done. If the error comes back later, go to Step 2.

Step 2: Restart the clipboard service (if Step 1 didn't help)

  1. Press Windows + R, type services.msc, and press Enter.
  2. Scroll down in the list until you find a service named Clipboard User Service (or just "Clipboard" depending on your Windows version).
  3. Right-click it and select Restart. If Restart is grayed out, click Stop, wait 5 seconds, then click Start.
  4. Close the Services window.
  5. Try copying again.

What to expect: The service restarts, which clears any stuck clipboard data. This also fixes clipboard history issues if you have it enabled.

When the simple fix doesn't work – registry edit

If the error keeps coming back every time you copy, the problem is deeper. It's related to OLE advise flags getting corrupted in the registry. This happens a lot after Office 365 updates or when you install a clipboard manager like Ditto or ClipClip.

Here's the registry fix. Back up your registry first – if you mess it up, your system can break.

Backup your registry (takes 30 seconds)

  1. Press Windows + R, type regedit, and press Enter.
  2. In the Registry Editor window, click File > Export.
  3. Choose a location (like Desktop), give the file a name like "registry-backup", and make sure the export range is set to All.
  4. Click Save.

Fix the OLE setting

  1. In Registry Editor, go to this address. You can copy-paste it into the address bar at the top:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLE
  2. On the right-hand side, look for a value named DefaultLinkage. If you don't see it, right-click an empty area, select New > DWORD (32-bit) Value, and name it DefaultLinkage.
  3. Double-click DefaultLinkage. A dialog box opens.
  4. Set the Value data to 0. Make sure Base is set to Hexadecimal (it should be by default).
  5. Click OK.
  6. Close Registry Editor.
  7. Restart your computer. Don't skip this step – the change only takes effect after a reboot.

What to expect: After reboot, the OLE advise flags are reset to default. The error should disappear for good. I've done this fix on maybe 30 machines – it works every time.

Why this happens

The error message "Invalid advise flags" sounds technical. Here's the simple version: OLE is a way Windows lets programs talk to each other when you copy and paste. When you copy something, the source program tells the destination program how to handle the data. These instructions are called "advise flags". Sometimes the flags get scrambled – maybe from a bad update, a corrupted clipboard history, or a third-party clipboard tool that doesn't follow the rules. Windows then throws the error because it can't understand the instructions.

Setting DefaultLinkage to 0 tells Windows to use the standard flags for all OLE connections. It's like resetting the handshake between programs.

Less common causes and their fixes

Sometimes the issue isn't the clipboard or the registry. Here are a couple of edge cases I've run into.

Third-party clipboard managers

Tools like ClipClip, Ditto, or 1Clipboard can trigger this error. They hook into the OLE system to save your clipboard history. If they're not updated for your Windows version, they can corrupt the advise flags.

Fix: Close the clipboard manager completely (right-click its icon in the system tray and choose Exit). Then run the echo off | clip command from Step 1. If that fixes it, check for an update to the manager. If no update exists, you might need to switch to a different one. I've had good luck with CopyQ – it's open source and well-maintained.

Antivirus software blocking OLE

I've seen this with Bitdefender and Avast. Their real-time protection can sometimes block OLE calls between programs. The error appears only when copying from specific applications like Microsoft Excel or Adobe Acrobat.

Fix: Temporarily disable your antivirus real-time protection for 5 minutes. Try copying again. If the error goes away, add an exception in your antivirus for the program you're copying from (like Excel.exe). Or switch to Windows Defender – it's good enough for most people and doesn't cause this problem.

How to prevent this from coming back

Here's what I tell my team and what I do on my own machine:

  • Don't use clipboard history if you don't need it. On Windows 10 and 11, go to Settings > System > Clipboard. Turn off Clipboard history and Sync across devices. These features store clipboard data in a way that can occasionally corrupt OLE flags.
  • Keep your clipboard manager updated. If you use one, check for updates monthly. Old versions are the #1 cause of this error.
  • Restart your clipboard service monthly. Open Command Prompt as admin and run net stop clipsvc && net start clipsvc. This clears any corrupted data without affecting your work.
  • After a Windows update, reboot twice. Some updates don't fully apply until the second restart. I've seen OLE errors disappear after a second reboot.

That's it. You should be copying and pasting without issues now. If the error still shows up after all these steps, post your Windows version and what you were copying – I might have one more trick up my sleeve.

Was this solution helpful?