Outlook fix · Classic (Windows)
Outlook OST file corrupt? Fix "errors detected in the file" safely
If classic Outlook keeps warning "errors have been detected in the file
What's actually wrong
Why Outlook says "errors detected" in your OST
Your .ost file (Offline Outlook Data File) is the local cache classic Outlook keeps on your PC so you can read mail when you're offline and so everything loads quickly. It is not your only copy. An .ost is only used by cached accounts — Microsoft 365, Exchange, Outlook.com and IMAP — and for those, your email also lives on the mail server. (One catch: on an IMAP account, classic Outlook keeps the calendar, contacts and tasks only inside the .ost, in folders marked (This computer only) — copy or export those before rebuilding.) The .ost simply mirrors it. (Older POP accounts don't use an .ost at all — they store mail in a .pst — so if Outlook is naming an .ost in the error, you're on a cached account and the server has the master copy.)
When Outlook reports "errors have been detected in the file
Which repair route to use: Microsoft's Inbox Repair Tool (scanpst.exe) can technically scan an .ost, but for a corrupt .ost Microsoft's own advice is simply to delete it and let Outlook rebuild the cache from the server — that's the reliable, no-data-loss route. Save scanpst.exe for repairing a .pst (say, an old local archive), which is what it's really built for and where it earns its keep.
// WINDOWS PCS ONLY
We do not support Outlook on Apple Macs, iPads or iPhones. Apple does not allow our remote-support tool to take control of an iPad or iPhone (an Apple restriction), and our remote support covers Windows PCs only. On an Apple device, Microsoft’s own Outlook help is the place to start.
// DO IT WITH ME · STEP BY STEP
Do it with me, one step at a time
The steps from this guide, one at a time. Tick each one off and it shows the next. Nothing here leaves your device.Last reviewed 6 October 2026
-
01Close Outlook completely
Fully close classic Outlook so the .ost file isn't locked. If Outlook seems stuck, open Task Manager (Ctrl+Shift+Esc), find OUTLOOK.EXE and End task.
Done that step? -
02Open the Outlook data folder
Press Windows key + R, type %localappdata%\Microsoft\Outlook and press Enter. This opens the folder that holds your .ost cache file.
Done that step? -
03Rename the corrupt .ost file
Find the .ost file named in the error (usually your email address). Right-click it and choose Rename — add .old to the end (e.g. account.ost.old). Renaming rather than deleting keeps a copy of the old cache just in case; you can delete it later once everything is back.
Done that step? -
04Reopen Outlook and let it resync
Start classic Outlook again. It automatically creates a fresh .ost and re-downloads your mail from the server (and, on a Microsoft 365, Exchange or Outlook.com account, your contacts and calendar too). Leave it connected to the internet while the folders fill back in.
Done that step? -
05Exclude the OST from antivirus scanning
To stop the error returning, add an antivirus exclusion for %localappdata%\Microsoft\Outlook (or the .ost file type) so real-time scanning can't lock the file mid-sync.
Done that step? -
06Confirm everything is back
Check your inbox, Sent Items, Calendar and Contacts have repopulated. Once everything looks right and the .old file is no longer needed, you can delete it.
Done that step?
Rather have it done for you? Remote help from £20, or in person across Bournemouth, Christchurch, Poole, Ringwood and the New Forest, with no call-out fee.
Done{mins}. Nice work.
Send yourself a test email to be sure it has stuck.
Still not working after all six steps? That is a remote job.
With your permission we connect to your screen and sort it in one session. Usually the same day, remote help from £20, and no fix, no fee.
Outlook OST file corrupt? Fix "errors detected in the file" safely - the fix order (365techies.co.uk/outlook-ost-file-corrupt/) 1. Close Outlook completely: Fully close classic Outlook so the.ost file isn't locked. If Outlook seems stuck, open Task Manager (Ctrl+Shift+Esc), find OUTLOOK.EXE and End task. 2. Open the Outlook data folder: Press Windows key + R, type %localappdata%\Microsoft\Outlook and press Enter. This opens the folder that holds your.ost cache file. 3. Rename the corrupt.ost file: Find the.ost file named in the error (usually your email address). Right-click it and choose Rename — add.old to the end (e.g. account.ost.old). Renaming rather than deleting keeps a copy of the old cache just in case; you can delete it later once everything is back. 4. Reopen Outlook and let it resync: Start classic Outlook again. It automatically creates a fresh.ost and re-downloads your mail from the server (and, on a Microsoft 365, Exchange or Outlook.com account, your contacts and calendar too). Leave it connected to the internet while the folders fill back in. 5. Exclude the OST from antivirus scanning: To stop the error returning, add an antivirus exclusion for %localappdata%\Microsoft\Outlook (or the.ost file type) so real-time scanning can't lock the file mid-sync. 6. Confirm everything is back: Check your inbox, Sent Items, Calendar and Contacts have repopulated. Once everything looks right and the.old file is no longer needed, you can delete it. Still stuck? 365 Techies fix it remotely: 01202 775566 - https://365techies.co.uk/remote-support/// NEED THIS FIXED RIGHT NOW?
Skip the DIY — call 01202 775566 and we can be looking at your screen within minutes. You watch everything we do, and most problems on this page are fixed in one short remote session. (Mon–Fri, 9am–5pm.)
The safe fix
Rebuild the OST without losing anything
The steps below rebuild the cache from your mail server. Because an .ost only ever belongs to a 365, Exchange, Outlook.com or IMAP account, your email re-downloads automatically once you reopen Outlook. On an IMAP account, copy any calendar, contacts or tasks marked (This computer only) first — those exist only in the .ost.
- They apply to classic Outlook for Windows — the full desktop app that came with Microsoft 365 or Office.
- To be extra safe, rename the file (add .old) rather than deleting it, so you keep the old cache until you've confirmed everything is back.
- Give the resync a little time on the first open — a big mailbox can take a while to download in the background.
Stop it coming back
Exclude the OST from antivirus scanning
If the same error keeps returning, a common culprit is antivirus or backup software scanning the .ost while Outlook is writing to it. Real-time scanners can lock or half-read the file mid-sync and re-corrupt it. In your antivirus settings, add an exclusion for the Outlook data folder (%localappdata%\Microsoft\Outlook) or for the .ost file type. Windows Security, Bitdefender, Norton, McAfee and the rest all have an "exclusions" or "exceptions" area for this.
Also worth checking: make sure your disk isn't nearly full, and always close Outlook properly (don't just power the PC off) so the cache finishes writing. If you'd like, we'll set the exclusion correctly and confirm the mailbox is fully healthy while we're in — it's the kind of thing that takes us a couple of minutes and stops the nagging error for good.
FAMILY-RUN SINCE 1995 · ★ 4.9 ON GOOGLE · 200+ COMPUTERS UNDER OUR CARE · NO FIX, NO FEE · SAME-DAY REMOTE SUPPORT
// GOOD QUESTIONS
Frequently asked
Will I lose my emails if I delete the OST file?
No. An .ost is only ever used by a Microsoft 365, Exchange, Outlook.com or IMAP account, and for all of those your email lives on the server (on an IMAP account, calendar, contacts and tasks marked (This computer only) exist only in the .ost, so copy them first), and Outlook re-downloads a fresh copy automatically when you reopen it. (POP accounts don't use an .ost at all; they use a .pst.) To be cautious, rename the .ost instead of deleting it so you keep the old file until everything is confirmed back — or give us a call first.
Can scanpst.exe repair an OST file?
It can scan one, but for a corrupt .ost it's not the route Microsoft recommends. The dependable fix for a damaged .ost is to delete or rename it and let Outlook rebuild the cache from the server — no data loss, because the server holds the master copy. Keep scanpst.exe (the Inbox Repair Tool) for repairing a .pst archive, which is what it's really designed for. You'll find it at C:\Program Files\Microsoft Office\root\Office16\SCANPST.EXE (or the Program Files (x86) path on 32-bit Office).
Where is my OST file stored?
In classic Outlook it lives in %localappdata%\Microsoft\Outlook. Press the Windows key + R, type that path and press Enter to open the folder — the file is named after your email address and ends in .ost. Close Outlook before touching it, or Windows will say the file is in use.
Why does my OST file keep getting corrupted?
A common cause is antivirus or backup software scanning the file while Outlook is syncing to it. Other triggers are shutting the PC down before Outlook has finished writing, a full hard disk, or a very large mailbox. Adding an antivirus exclusion for the Outlook data folder usually stops it recurring.
How long does Outlook take to rebuild the OST?
Usually a few minutes for a modest mailbox, but a large one with years of mail can take a good while to download in the background. Leave Outlook open and connected to the internet; the folders fill in as it syncs. It's normal for older items to appear gradually.
This is fiddly — can you just fix it for me?
Yes, that's exactly what we do. We connect over a secure remote session (we phone you first, you watch the whole thing on your screen, and access ends when we're done), rebuild the cache safely, set the antivirus exclusion so it doesn't return, and confirm your mailbox is healthy. It's usually sorted in minutes. Call 01202 775566.
// Still stuck?
Rather not touch the file yourself?
We'll watch-and-fix it over a secure remote session — we phone you first, you see everything on your screen, and access ends the moment it's sorted. Same-day, usually done in minutes.
We’ll fix it with you
- Checking the problem is free
- Fixes from £20, agreed before we start
- We phone first, and you watch every step
Stop it happening again
- A full service every six weeks, written up
- Every program kept up to date
- Unlimited remote help when you need it
Plans from £18.25 a month per computer · cancel any time
Mon–Fri 9–5 · family-run since 1995 · rated 4.9 on GoogleSee the steps below →