Fix it now
The data file’s internal structures no longer agree with each other, so Outlook works normally until it touches the damaged part. That is why the error appears at apparently random moments rather than every time you start. The mailbox on the server is usually fine; the local file is not.
- Close Outlook completely and confirm no Outlook process remains in Task Manager.
- Find the file: File, Account Settings, Account Settings, then the Data Files tab, which shows the full path. Offline files default to C:\Users\<name>\AppData\Local\Microsoft\Outlook.
- Copy the file somewhere else before you touch it. The Inbox Repair tool does select a backup option automatically and writes a .bak file, but take your own copy as well.
- If it is an offline file, do not repair it – rename the file extension to .old and start Outlook. You get a “Preparing for first use” message and the cache rebuilds from the server.
- If it is a personal folder file, run the Inbox Repair tool against it, from the Office program folder – for a current click-to-run installation, C:\Program Files\Microsoft Office\root\Office16. Microsoft notes it may need to be run several times to fully repair a file.
After a repair, check the Lost and Found folder. It holds folders and items the tool recovered, and Microsoft states that items missing from it may be beyond repair.
If Outlook starts, every folder expands and search returns results, you are done. If the damage comes back, the next section covers what keeps causing it.
Why it happens
A personal folder file or an offline data file is a small database. The folder hierarchy, the table of items and the item content are separate structures held together by internal references, and an ordinary change updates more than one of them. If the file is written while another process holds part of it, or the machine loses power mid-write, or the file lives on a network path that drops for a moment, those structures stop agreeing with each other.
Microsoft does not publish a meaning for 0x80040119 or 0x80040600, so the confident definitions you will find for them are inference. Three of the codes in this family are documented, though, and they are the useful ones. An invalid EntryID means an incorrectly formatted identifier was passed to a method call. A disk error means there was a problem writing to or reading from disk. Corrupt data means there is an internal inconsistency in a database or in a complex property value – which is this article’s subject stated precisely.
The disk error is worth separating out, because it points somewhere else. It does not say the structure is wrong; it says the read or the write did not work. Check the Windows System log for disk and controller errors, and check whether the file sits on a network path or inside a synchronised folder. Repair will not help if the storage under it is the problem.
The Inbox Repair tool does not recover mail from nothing. It reads the structures, discards records it cannot reconcile, and rebuilds the index around what is left. That is why a repaired file sometimes comes back with items missing, or with a Lost and Found folder holding messages whose parent folder could not be determined. It repairs the container; it cannot invent the contents. Microsoft’s own note is that the tool may need to be run several times before a file is fully repaired.
An interrupted write damaged the file
You have this one if The trouble began after a crash, a power loss, a forced shutdown or a battery cutting out.
- Copy the file to another location before doing anything else.
- Run the Inbox Repair tool against the original, more than once if the first pass reports errors.
- Open Outlook and check the Lost and Found folder for items the tool reattached.
- Export anything critical to a fresh data file, so you are not relying indefinitely on a file that has already failed once.
The data file lives on a network share or inside a synchronised folder
You have this one if The path on the Data Files tab is a UNC path, a mapped drive, or a folder managed by a file synchronisation client.
- Close Outlook, move the file to a local disk, add it back through the Data Files tab and remove the old entry.
- Exclude Outlook data files from any file synchronisation client, and where several people need the same mail, use a shared mailbox rather than a shared data file.
A data file being written across a network link, or by a synchronisation client and Outlook at the same time, is the classic way to produce this repeatedly rather than once.
An offline file that has fallen out of step with the mailbox
You have this one if Errors appear only in cached mode, while the same mailbox is correct in webmail.
- Close Outlook and confirm no Outlook process is running. If you get a file-in-use message, end the Outlook and Word processes in Task Manager.
- Rename the .ost file extension to .old rather than deleting it, so you can go back.
- Start Outlook, wait for the “Preparing for first use” message, and let the mailbox synchronise.
- If the profile still misbehaves, create a new profile from Control Panel, Mail, Show Profiles.
The storage under the file is failing
You have this one if A disk error is reported rather than a structural one, and the Windows System log shows disk or controller warnings around the same times.
- Stop repairing the file and look at the disk. A repair on failing storage produces a corrupt result and consumes the time you needed for a copy.
- Copy the data file off the machine first, while it is still readable.
- Deal with the hardware, then rebuild or restore the file on healthy storage.
An add-in is writing to the store badly
You have this one if Damage returns after every repair, and the machine has a customer database, archiving, fax or scanning add-in installed.
- Start Outlook with add-ins disabled and see whether the errors stop.
- Open File, Options, Add-ins, choose COM Add-ins and Go, and disable all of them.
- Re-enable them one at a time, using Outlook normally between each, until the fault returns.
- Update or remove the add-in that reproduces it, then repair the file once more.
Full reference
Working out how bad it is
| Symptom | Where the fault is |
|---|---|
| One folder errors and the rest are fine | Localised damage; repair usually recovers it |
| It errors on every start | Structural damage close to the folder tree |
| A disk error, with disk warnings in Event Viewer | The disk, or the network path the file sits on |
| Errors on an offline file while webmail is correct | Rebuild the offline file; there is nothing that needs repairing |
| Damage returns after every repair | Something is writing to the store badly – an add-in, or the file’s location |
Where the tool lives
| Installation | Path |
|---|---|
| Outlook 2016 or later, click-to-run, 64-bit Windows | C:\Program Files\Microsoft Office\root\Office16 |
| Outlook 2016 or later, click-to-run, 32-bit Windows | C:\Program Files(x86)\Microsoft Office\root\Office16 |
| Outlook 2016, installer-based, 64-bit Windows | C:\Program Files\Microsoft Office\Office16 |
| Outlook 2016, installer-based, 32-bit Windows | C:\Program Files(x86)\Microsoft Office\Office16 |
The file is SCANPST.EXE and it is not on the Start menu; you run it from that folder directly. Point it at the data file, start it, and let it finish. Microsoft’s guidance is explicit that it may need running several times to fully repair a file, so a second pass reporting fewer errors than the first is normal rather than a sign that it is not working.
PST or OST, and why it changes the answer
A personal folder file may be the only copy of the mail in it, so repair is the route and your own backup copy is essential. An offline file is a cache of a mailbox that lives on the server, so rebuilding it is quicker, safer and produces a clean file – and Microsoft’s documented remedy for a corrupted offline file is exactly that: rename it and let Outlook download the mailbox again.
One correction worth making, because it is repeated everywhere: the Inbox Repair tool can be used on offline files as well as personal folder files. Microsoft says so directly. It is simply not usually the thing to do, because rebuilding from the server is faster and gives you a file with no history of damage. Reach for repair on an offline file only when the mailbox on the server is not reachable and you need something out of the cache.
Copy the data file elsewhere before repairing it and keep that copy until you have confirmed the repaired file is complete. The tool does select its own backup option automatically and writes a .bak file, but a repair that goes badly on failing storage can leave you with neither. Never run it against a file on a network share, or one another process still has open.
When it keeps coming back
- Check where the file actually is. A UNC path, a mapped drive or a synchronised folder will reproduce this indefinitely.
- Check the Windows System log for disk and controller errors, because failing storage damages a file as fast as you can repair it.
- Check the add-ins, one at a time, using Outlook normally between each rather than clicking through them in a minute.
- Check whether the machine is being powered off without shutting down, which is common on laptops with a failing battery.
- Check whether anything else has the file open – backup agents and indexing tools both do this, and both are excludable.
After a repair
- Open Outlook and confirm every folder expands without an error.
- Search for an old message and confirm results come back, which proves the store is readable end to end.
- Open the Lost and Found folder and move anything in it back where it belongs.
- Run a full send and receive and confirm both directions complete.
- Keep the pre-repair copy until you are satisfied nothing is missing, and only then delete it.
Every code this article covers
| Code | What it points at | Source |
|---|---|---|
0x80040119 |
Seen on store-level failures. Microsoft publishes no meaning for this value; the MAPI documentation defines an extended-error condition where more information is retrieved separately, but no page ties that to this number | not published by the vendor |
0x80040600 |
Seen alongside data file damage. Microsoft publishes no meaning for this value | not published by the vendor |
0x80040107 |
InvalidEntryID: an incorrectly formatted EntryID was passed to a method call | Microsoft Learn |
0x80040116 |
DiskError: there was a problem writing to or reading from disk. This points at the storage or the file’s location rather than its internal structure | Microsoft Learn |
0x8004011B |
CorruptData: there is an internal inconsistency in a database, or in a complex property value | Microsoft Learn |
Confirm the fix worked
- Outlook starts without an error and every folder expands.
- A search for an old message returns results, which proves the store is readable end to end.
- A full send and receive completes in both directions.
- The Lost and Found folder has been checked and emptied back into the right places.
- The pre-repair copy of the file is still kept, and the error has not returned after a week of normal use.
Questions people ask about this
Will the Inbox Repair tool lose any of my mail?
It can. Items whose references cannot be reconciled are discarded, and some end up in a Lost and Found folder instead of their original location. Microsoft notes that items missing from Lost and Found may be beyond repair, which is why you copy the file first and keep the copy.
How many times should I run it?
Microsoft states it may need to be run several times to fully repair a file, so more than one pass is expected. If the error count stops falling between passes, further passes will not help.
Should I repair the offline file or rebuild it?
Rebuild it. The tool can be used on offline files – Microsoft says so – but an offline file is a cache of a mailbox that lives on the server, so renaming it and letting Outlook download the mailbox again is quicker and gives you a clean file.
Is there a paid recovery tool I should buy?
Third-party recovery tools exist and some get more out of a badly damaged file than the built-in one. Before paying, rebuild the offline file or restore the personal folder file from backup, because in most cases one of those is the answer. Nothing about this is a licensing problem.
What do 0x80040119 and 0x80040600 actually mean?
Microsoft does not publish meanings for either. Treat them as a signal to look at the data file, and use the documented codes in the same family – invalid EntryID, disk error, corrupt data – to work out whether you are dealing with structure or with storage.
