TechBuzzPro

Outlook Wrong Data Files Error: How to Fix It

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The "wrong data files" error in Outlook usually means Outlook is pointing at a data file it can no longer open correctly — often because the file was moved, renamed, corrupted, or because a second copy of Outlook is trying to use the same file. The fastest fix is to open Outlook's account and data file settings, check which file is set as default, and either point Outlook back to the right file or repair the damaged one. Before you start, close every Office app and make sure you know where your .pst or .ost file lives, because you may need to browse to it.

Labels in Outlook differ slightly between versions (Microsoft 365, Outlook 2021, Outlook 2019), between Windows and Mac, and by region, so if a menu name below does not match exactly, look for the closest equivalent. The steps here are written for Outlook on Windows, which is where this error most commonly appears.

What You'll Need

  • Your Windows PC with Outlook installed and closed.
  • Access to your account credentials, in case Outlook asks you to sign in again.
  • Enough free disk space on the drive holding your data files.
  • Optionally, a backup copy of your .pst file before you repair anything.

Step-by-Step

  1. Close Outlook completely. Check the notification area (system tray) for a hidden Outlook icon and right-click it to exit if present. A background copy of Outlook can lock the data file and cause the error to reappear.
  2. Find your data files. Open File Explorer and go to C:\Users\<your username>\AppData\Local\Microsoft\Outlook for .ost files, or search your user folder for .pst. Note the exact folder path. If the file is on an external drive or network share, that alone can cause problems — move it to a local drive first.
  3. Open Outlook's data file settings. In Outlook, go to File > Account Settings > Account Settings, then open the Data Files tab. This lists every data file Outlook knows about.
  4. Check which file is the default. The default file is marked in the list. If the wrong file is selected, highlight the correct one and choose Set as Default. If you see a file with a path that no longer exists, select it and remove it — removing a data file entry from this list does not delete the file itself.
  5. Add the correct file back if it is missing. On the same Data Files tab, choose Add, browse to your .pst file, and select it. Outlook will re-register it. Restart Outlook and see whether the error is gone.
  6. Repair a damaged file. If Outlook still complains, close it and run the built-in repair tool. Open File Explorer, navigate to the Office installation folder (commonly under C:\Program Files\Microsoft Office\root\Office16), and run SCANPST.EXE. Choose Browse to select your .pst file, then click Start. Let it finish, and if it offers to repair, allow it. Keep a backup copy first.
  7. Recreate the Outlook profile if the error persists. Go to Control Panel > Mail (search "Mail" in the Start menu), click Show Profiles, and choose Add to create a new profile. Set it as the default, then add your email account again. Your existing .pst can be reattached through the Data Files tab.
  8. Restart and test. Open Outlook, send a test message to yourself, and check that mail arrives and folders display. If everything works, the error is resolved.

Common Mistakes

  • Deleting the data file instead of removing the entry. Removing a file from the Data Files list is safe; deleting the .pst from disk erases your mail, calendar and contacts. Back it up first.
  • Repairing without a backup. SCANPST can occasionally make things worse on a badly damaged file, so copy the .pst somewhere safe before running it.
  • Leaving Outlook running in the background. The repair tool and profile changes will not take effect if Outlook is still open.
  • Keeping the data file on a network drive or USB stick. Outlook expects local storage; remote locations cause locking and corruption issues.
  • Creating a new profile without reattaching the old data file. You will see an empty mailbox and assume your mail is gone when it is simply not linked.

Tips

  • Keep your .pst file on the same local drive as Windows, not on OneDrive-synced folders, which can lock the file mid-write.
  • Run SCANPST once a month if your mailbox is large; it catches minor corruption early.
  • If you use Microsoft 365 or Exchange, most mail lives in an .ost cache file. Deleting the .ost is safe because Outlook rebuilds it from the server — but only for accounts that sync, not for POP accounts.
  • Note the folder path of your data file somewhere you can find it, so future fixes are quicker.

Troubleshooting

If the error returns after a restart, check whether a second Outlook profile is still set as default. Go back to Control Panel > Mail > Show Profiles and confirm only the working profile is selected under "Always use this profile."

If SCANPST reports it cannot repair the file, try running it a second time — it sometimes needs two passes. If it still fails, create a new .pst and import mail from the damaged one using File > Open & Export > Import/Export. Anything that cannot be imported may be lost, which is why the backup matters.

If Outlook will not start at all, launch it in safe mode by holding Ctrl while clicking the Outlook icon. If it opens in safe mode, an add-in is likely involved; disable add-ins under File > Options > Add-ins and restart normally.

If the error mentions a specific file path you do not recognise, search your drive for that filename. A leftover file from an old account or a moved folder is a common cause, and removing the stale entry from the Data Files tab usually clears it.

Frequently Asked Questions

Will repairing my data file delete emails?

No. SCANPST repairs the file structure rather than removing messages, but a small number of already-damaged items may be unrecoverable. Always keep a backup copy first.

Can I delete the .ost file to fix the error?

Yes, for accounts that sync with a server such as Microsoft 365 or Exchange. Outlook recreates the .ost on next launch. Do not delete a .pst that holds POP mail, because that is your only copy.

Why does the error appear only on one computer?

Because the data file path and profile are stored per machine. If the .pst was moved or the profile was rebuilt on one PC, the other may still point at the old location.

Does this work on Outlook for Mac?

The menus differ. On Mac, use Outlook > Settings and look for the profiles or accounts section, and use the built-in database utility (hold Shift while opening Outlook) to rebuild the database instead of SCANPST.

What if I cannot find my .pst file at all?

Search the whole drive for "*.pst" in File Explorer. If nothing appears, the file may have been deleted or stored on a disconnected drive, and you may need to restore it from a backup or re-download mail from the server.

Is it safe to create a new Outlook profile?

Yes. A new profile does not delete your existing data files, but you must reattach the .pst through the Data Files tab to see your old mail.