OST Is Not an Outlook Data File: Fix the Error
In this article
The error "ost is not an outlook data file" means Outlook cannot open or attach the offline cache file (.ost) you pointed it at, usually because the file is corrupt, was created by a different profile or version, or is actually an .stm/.pst file with the wrong extension. The fastest fix is to let Outlook rebuild the cache: close Outlook, rename or move the .ost file out of its folder, then restart Outlook so it recreates a fresh copy from the server. Below is the full walkthrough, including how to find the real .ost location, how to repair it with the built-in Inbox Repair Tool, and what to do when the file refuses to rebuild.
What You'll Need
- A Windows PC with Outlook installed (classic Outlook for Windows; the steps use File > Account Settings and the Mail setup dialog).
- Your email account password, in case Outlook asks you to sign in again after the cache is rebuilt.
- The exact path of your .ost file. You can find it under File > Account Settings > Account Settings > Data Files tab, or in the folder %localappdata%\Microsoft\Outlook.
- Enough free disk space for a new .ost file, which can be several gigabytes on a large mailbox.
- Optional: the SCANOST.exe tool, which ships with Outlook and lives in the Office program folder.
Note that menu labels can differ slightly between Outlook versions, Microsoft 365 builds and Windows releases, so treat the paths below as the common wording rather than an exact guarantee.
Step-by-Step
- Confirm what the file actually is. Open File Explorer, go to View and enable File name extensions, then look at the file. A genuine Outlook cache ends in .ost. If it ends in .pst, .stm or something else, that alone explains the error: you are pointing Outlook at a file it does not treat as an offline cache. Do not rename the extension to force it; instead, attach a .pst through File > Open & Export > Open Outlook Data File, and leave .ost handling to Outlook itself.
- Close Outlook completely. Check the notification area by the clock for a lingering Outlook icon and right-click > Exit if present. The .ost file is locked while Outlook runs, so any repair or rename will fail otherwise.
- Locate the .ost file. Press Windows key + R, type %localappdata%\Microsoft\Outlook and press Enter. Each account has its own .ost file, often named something like your-email@domain.com.ost. Write down the exact name and size so you can confirm later whether a new one was created.
- Move the old file aside rather than deleting it. Cut the .ost file and paste it onto your Desktop or into a folder called OST-backup. Renaming it in place (for example to .old) also works. Keeping a copy means you can restore it if the rebuild does not solve the problem.
- Restart Outlook. Outlook detects the missing cache and creates a fresh .ost file, then re-syncs your mailbox from the server. On a large mailbox this can take a while; leave Outlook open and connected to the internet until the status bar stops showing sync activity.
- Verify the rebuild. Return to %localappdata%\Microsoft\Outlook and check that a new .ost file with the same name now exists and is growing in size. If it is, the error is resolved and your mail, calendar and contacts should be visible again.
- If the error returns immediately, run the Inbox Repair Tool on the related data. Search the Start menu for the version-appropriate SCANPST.EXE, point it at your .pst files (the repair tool targets personal folders, not .ost directly), and let it repair. Then repeat steps 2 to 5 so Outlook rebuilds the cache from a healthy store.
- Recreate the mail profile if the cache still will not build. Go to Control Panel > Mail > Show Profiles > Add, create a new profile with your account, and set it as the default. This is the reliable fallback when the old profile itself is damaged. Your server-side mail is untouched; only local cache and any local-only folders are affected.
Common Mistakes
- Renaming a .pst or .stm file to .ost and expecting Outlook to open it. The formats are different; use File > Open & Export > Open Outlook Data File for .pst instead.
- Deleting the .ost file before backing it up. If the rebuild fails you have lost your only local copy, including any items that had not yet synced.
- Trying to repair an .ost with SCANPST.EXE. That tool targets .pst files; .ost repair is done by letting Outlook recreate the file.
- Copying an .ost file from another PC or profile and expecting it to work. Cache files are tied to the profile and account that created them.
- Ignoring disk space. A full drive prevents Outlook from creating the new cache and the error can persist even after the old file is moved.
Tips
- Keep the mailbox size in mind: a very large mailbox makes every rebuild slow, so run the rebuild when you do not need Outlook for a while.
- Use the Data Files tab in Account Settings to confirm which file Outlook is actually using before you touch anything.
- If you use multiple accounts, fix them one at a time so you can tell which cache caused the error.
- After a successful rebuild, delete the backup .ost only once you have confirmed mail, calendar and contacts are all present.
Troubleshooting
If Outlook still reports the error after a rebuild, work through these in order. First, check that Outlook is fully closed, including any background process, then try again. Second, confirm you have free disk space and that the Outlook folder is not read-only or blocked by security software. Third, sign out of the account in Windows Settings > Accounts and sign back in, then reopen Outlook. Fourth, run Office updates, since a mismatched build can prevent the cache from being created. Fifth, create a new mail profile as described in step 8. As a last resort, uninstall and reinstall Outlook, which removes the program but leaves your server mailbox intact; local cache and any local-only folders are lost, so back them up first. If the error names a specific file path, check that path exists and that the file is not zero bytes.
Frequently Asked Questions
Can I just delete the .ost file?
You can, but move or rename it first. Outlook recreates the cache from the server, so server mail is safe, but anything not yet synced and any local-only folders would be lost.
Does rebuilding the .ost delete my email?
No. The .ost is a local cache of server data. Rebuilding re-downloads it; your mailbox on the server is unchanged.
Why does Outlook say the file is not an Outlook data file when it ends in .ost?
Usually the file is corrupt, belongs to another profile, or was created by an incompatible Outlook version. Moving it aside so Outlook builds a new one is the standard fix.
Can I open an .ost in another program?
Not officially. .ost files are tied to Outlook and its profile; use Outlook itself or export to .pst from within Outlook if you need a portable copy.