0x8004010F and damaged Outlook data files
Outlook cannot open or write its local data file. For an OST this is inconvenient; for a PST it is potentially data loss.
What you see
"The operation failed. An object cannot be found" on send/receive, or "Outlook data file cannot be accessed" on start. The offline address book fails to download.
What is actually wrong
An OST is a cache and is disposable. A PST is the only copy of whatever is in it and must be repaired rather than replaced. A file on a network share or a synced folder is the usual reason either becomes damaged.
Codes and articles
Fixes (2)
Discard and rebuild the OST
It is an OST. The mailbox is on the server, so the local copy can be thrown away.
Confirm it is an OST and find it.
Get-ChildItem "$env:LOCALAPPDATA\Microsoft\Outlook" -Filter *.ost | Format-Table Name,Length,LastWriteTimeCheck for anything stored only locally first — items in a local folder outside the mailbox, and any PST attached to the same profile. Those are not on the server.
The OST is safe to delete only for what is genuinely synchronised. A mailbox with local-only folders, or one that has been archiving to the OST, will lose that content — check before, not after.
Close Outlook and rename rather than delete the file.
Get-Process OUTLOOK -ErrorAction SilentlyContinue | Stop-Process -ForceGet-ChildItem "$env:LOCALAPPDATA\Microsoft\Outlook\*.ost" | Rename-Item -NewName { $_.Name + '.old' }
Start Outlook. It builds a new OST and downloads the mailbox. On a large mailbox this takes hours.
Once everything is present, delete the .old file to reclaim the space.
Repair a PST safely
It is a PST. This is the only copy of that mail — copy it before doing anything.
Close Outlook and copy the PST somewhere else. This copy is the safety net for everything that follows.
Copy-Item 'C:\Users\me\Documents\Outlook Files\archive.pst' 'D:\backup\archive-copy.pst'Find the repair tool. It ships with Office and is not on the Start menu.
Get-ChildItem 'C:\Program Files\Microsoft Office' -Recurse -Filter SCANPST.EXE -ErrorAction SilentlyContinue | Select-Object -First 1 FullNameRun SCANPST.EXE against the file, let it make its own backup when offered, and run it repeatedly until it reports no errors — one pass is frequently not enough.
The tool fixes what it can see in a single pass and often uncovers more damage underneath. Three or four passes on a badly damaged file is normal, and stopping after one leaves it broken.
If a PST is over about 20GB, or lives on a network share or a synced folder such as OneDrive, that is the cause and it will recur. Move it to a local disk.
Outlook data files are not supported on network shares or sync folders. The access pattern is incompatible with them and corruption is the normal outcome, not bad luck.
If the repair cannot complete, a commercial PST recovery tool run against the copy is the next step.
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.