Skip to content
Outlook

Repair Corrupt Outlook OST File: Safe Fixes in Order

recover email from ost file in outlook
Quick Answer

To repair a corrupt Outlook OST file, close Outlook and rename the file to .ost.old. Outlook then builds a new OST and downloads your mail from the server again. This works for Microsoft 365, Exchange and Outlook.com accounts because the mailbox lives on the server. A POP account has no OST, so it needs a different fix.

The Invorx team tested the steps in this guide. They follow the Microsoft pages listed under Sources and cover classic Outlook for Windows. Menu names change between builds, so compare each step with your own screen.

Which Accounts Use an OST File?

An OST file is the offline copy of a mailbox that sits on a server. Only some account types create one, so check yours before you repair anything. According to Microsoft’s data file guide, PST is the data file for POP accounts, while Exchange, Microsoft 365 and Outlook.com accounts use OST. IMAP accounts use OST in Outlook 2016 and Microsoft 365.

Account type Data file If the file is corrupt
Microsoft 365 or Exchange OST Rename and rebuild. The server keeps the mailbox.
Outlook.com OST Rename and rebuild.
IMAP in Outlook 2016 or Microsoft 365 OST Rename and rebuild. Outlook downloads mail from the IMAP server.
POP PST (no OST) This guide does not apply. The PST holds the only copy of your mail.
Mailbox deleted or account disabled on the server OST (only copy) Do not rename it. Save the items first.

The last row matters most. A rebuild downloads a fresh copy from the server, so it cannot bring back a mailbox that the server no longer has. If that is your case, copy the items out first. Our guide on how to convert an OST file to PST covers that task.

How Do You Know the OST File Is Corrupt?

A damaged OST rarely announces itself with the word corrupt. These are the signs that point to it:

  • Outlook stops responding or crashes when it starts.
  • The status bar stays on Trying to connect or Disconnected while Outlook on the web opens your mail normally.
  • Folders stay empty, items are missing or the folder pane does not update.
  • Outlook shows a message that errors were detected in the file.

The message names your OST and looks like this:

Errors have been detected in the file C:\Users\YourName\AppData\Local\Microsoft\Outlook\user@company.com.ost

Microsoft documents this message for Outlook 2013 and later and says the Application event log then holds an event with ID 2000. Open Event Viewer, select Windows Logs, then Application, and look for an event with ID 2000. According to Microsoft, this error means corruption was detected in the offline Outlook data file, so a match points to the OST and not to the network.

What Should You Check Before You Repair It?

A rebuild downloads your mailbox from the server again, so it depends on the server still holding that mailbox. Run through this short list first:

  1. Open Outlook on the web. If your mail shows there, the server copy is intact.
  2. Look at Outbox and Drafts. Copy the text of any unsent message you still need before you start.
  3. Save a profile backup. Follow our guide to backup an Outlook user profile so you can return to the old settings.

How Do You Repair a Corrupt OST File?

Work through these in order, safest first. Test Outlook after each one and stop when it opens and syncs.

Fix 1: Update Outlook and Windows

Open File, Office Account, Update Options and select Update Now. Then run Windows Update and restart the PC. This is the safest first step and sometimes clears the error alone.

Fix 2: Rename the OST and Let Outlook Rebuild It

According to Microsoft, the fix for the “errors have been detected” message is to delete the OST and let Outlook download the information again from Exchange. Renaming does the same job and keeps the old file as a fallback, which deleting does not. Microsoft also describes this file in its offline Outlook data file guide. Use this sequence:

  1. Close Outlook completely. Check Task Manager to make sure OUTLOOK.EXE is not running.
  2. Open the Outlook data folder. Press Windows + R, paste %localappdata%\Microsoft\Outlook and press Enter.
  3. Show file extensions. In File Explorer select View, then Show, then File name extensions so you can see the .ost ending.
  4. Find the OST for your account. Look for the .ost file named after your email address.
  5. Rename the file. Rename it from name.ost to name.ost.old. Do not delete it yet.
  6. Start Outlook. Open Outlook and let it create a new OST and download your mail again.
  7. Check the result. Wait until the status bar reads Connected or All folders are up to date, then delete the .ost.old file.

Cannot find the folder? Open Outlook, select File, Account Settings, Account Settings and the Data Files tab. Select your account and choose Open File Location. This works even when the OST was moved to another drive.

Fix 3: Create a New Outlook Profile

A new profile creates a new OST and also clears a damaged profile. Close Outlook, open Control Panel, select Mail and then Show Profiles. Select Add, enter a profile name and add your email account. Choose Prompt for a profile to be used so you can pick the new one, as Microsoft’s profile guide describes. If the new profile works, the old one was the problem. Our guide to repairing an Outlook profile covers what to do with it.

Fix 4: Start Outlook in Safe Mode

Press Windows + R, type outlook.exe /safe and press Enter. If Outlook opens normally, an add-in is the likely cause and the OST may be fine. Turn add-ins off under File, Options, Add-ins and turn them back on one at a time.

Fix 5: Run Office Repair

If Outlook still fails, repair the Office installation. Microsoft’s repair guide describes Quick Repair, which runs without internet, and Online Repair, which reinstalls Office and takes longer. Try Quick Repair first.

What About ScanPST?

The Inbox Repair tool, scanpst.exe, scans Outlook data files on your PC and Microsoft lists it for both PST and OST files. For Outlook 2016 and 2019 it sits in C:\Program Files (x86)\Microsoft Office\root\Office16 and the folder differs on other installs. Use it on a copy of the OST. For the “errors have been detected” message Microsoft’s guidance is to delete the OST and let Outlook download it again, so Fix 2 is the better first choice and ScanPST is a second try.

What If You Have a Very Large Mailbox?

A rebuild downloads your mailbox again, so a very large mailbox on a slow connection can take hours and slow Outlook while it syncs. Before you rename the OST, open the account settings and set Mail to keep offline to a shorter range such as 12 months. The new OST then holds less, and the older mail stays on the server. Read how to manage Outlook cached mode and OST file size before you change it.

Plan the rebuild for a time when you do not need the PC.

What Happens if the Fix Does Not Work?

  • Outlook asks you to sign in again. Sign in with your usual account password.
  • The error returns after a rebuild. Check free space on the drive that holds the OST, then run a disk check. A failing drive can damage the new file too.
  • Outlook still does not open in a new profile. Run Online Repair, then test in Safe Mode again.
  • You use new Outlook. New Outlook for Windows does not use a classic OST, so these steps do not apply. Read our comparison of new Outlook and classic Outlook to see the difference.

How Can You Stop an OST File From Corrupting Again?

  • Close Outlook before you shut down. Forcing Windows to end Outlook can leave the file mid-write.
  • Keep free space on the drive. A full drive stops Outlook from saving sync changes.
  • Keep Outlook and Windows updated. Updates fix known Outlook bugs.
  • Keep the mailbox size in check. A very large OST takes longer to sync and longer to rebuild.
  • Do not copy the OST to another PC. An OST belongs to one profile on one machine.

Frequently Asked Questions

How can I fix a corrupted Outlook OST file?

Close Outlook, rename the OST file to .ost.old and start Outlook again. Outlook builds a new OST and downloads your mail from the server. If the error returns, update Outlook, then create a new profile and run Quick Repair or Online Repair from Windows Settings.

What is the difference between a PST and an OST file?

A PST file is a data file that Outlook saves on your PC and that holds your own copy of the mail, so you can move it between PCs. An OST file is a cached copy of a mailbox that lives on a server, and Outlook rebuilds it from that server. Deleting an OST loses nothing that the server still has.

How do I fix a missing OST file in Outlook?

Start Outlook. For a Microsoft 365, Exchange or IMAP account Outlook creates a new OST when the old one is gone. If it does not, check that Use Cached Exchange Mode is on for the account and that your drive has free space. A POP account never has an OST.

Where is the OST file located in Windows 11?

Press Windows + R, paste %localappdata%\Microsoft\Outlook and press Enter. The folder usually sits at C:\Users\YourName\AppData\Local\Microsoft\Outlook and AppData is hidden by default. You can also open File, Account Settings, Data Files and select Open File Location.

Can ScanPST repair an OST file?

Yes, Microsoft’s Inbox Repair tool can scan an OST file. For the “errors have been detected” message, though, Microsoft’s guidance is to delete the OST and let Outlook download it again from the server. Renaming the file does that and keeps a fallback copy.

How do I create a new OST file in Outlook 365?

Close Outlook, rename the current OST to .ost.old and open Outlook again. Outlook creates a new OST for the account. You can also add the account to a new profile, which creates a fresh OST in the same Outlook folder.

Is it safe to delete an OST file in Outlook?

Yes, when the mailbox still exists on the server. Outlook downloads the mailbox again and you lose nothing the server holds. It is not safe when the mailbox no longer exists on the server, because there is nothing to download again.

Conclusion

A corrupt Outlook OST file is a local copy problem, not a lost mailbox, as long as the mailbox still exists on the server. Check your account type, confirm that Outlook on the web shows your mail, then rename the OST to .ost.old and let Outlook rebuild it. Move to a new profile, Safe Mode and Office Repair only when the rename does not fix it. Treat the OST as the only copy when the server mailbox is gone and save its items before you touch it.

Sources

  • Microsoft Support: Create an Outlook data file (.pst) to save your information
  • Microsoft Support: Open or import items from an offline Outlook data file (.ost)
  • Microsoft Support: Repair an Office application
  • Microsoft Learn: Errors have been detected in your .ost file in Outlook
  • Microsoft Support: Repair Outlook Data Files (.pst and .ost)
  • Microsoft Support: Create an Outlook profile