Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Outlook Data File Cannot Be Accessed: Fixes

· 6 min read · Home Tech

In this article
  1. What the Error Actually Means
  2. Why the File Becomes Inaccessible
  3. Step-by-Step Fixes
  4. How to Prevent the Problem
  5. Common Related Questions
  6. Final Thoughts

If Outlook shows “Outlook data file cannot be accessed,” it usually means the program cannot read your .pst or .ost file due to a path issue, file corruption, or a permissions problem. The fix typically involves closing Outlook, repairing the file with the Inbox Repair tool, or removing and re-adding the account in a new profile.

What the Error Actually Means

Outlook stores your emails, calendar entries, contacts, and tasks in a data file. For most accounts, this is a Personal Folders file (.pst) or an Offline Outlook Data File (.ost). When you see “Outlook data file cannot be accessed,” the program has failed to open that file during startup or while you were working. The message often appears with a path like C:\Users\YourName\Documents\Outlook Files\archive.pst or a similar location.

This is different from a simple “file not found” error. It means Outlook found the file but could not read it, or it could not find the file at the expected location. The causes vary: the file may be corrupted, the path may have changed, the file may be locked by another process, or Windows permissions may be blocking access.

Why the File Becomes Inaccessible

Several common scenarios lead to this error:

  • File corruption – A sudden power loss, a system crash, or a program freeze can leave the data file in an inconsistent state.
  • Path changes – If you moved the .pst or .ost file manually, or if your user profile folder was renamed, Outlook may still look in the old location.
  • OneDrive or cloud sync – If your Outlook data file is stored in a OneDrive folder, the file may not be fully downloaded to your device, or syncing can interfere with Outlook’s lock on the file.
  • Antivirus or backup software – Some programs temporarily lock files while scanning, which can cause Outlook to lose access.
  • Permissions problems – After a Windows update or a profile migration, the file’s security settings may not allow your user account to read it.

Step-by-Step Fixes

Work through these in order, testing after each step. Start with the simplest and least invasive.

1. Restart Outlook and Your Computer

Close Outlook completely, then reopen it. If that fails, restart Windows. This clears any temporary lock on the file and resets Outlook’s connection to it.

2. Run the Inbox Repair Tool (Scanpst.exe)

For .pst files, Outlook includes a repair utility called Scanpst.exe. It is usually located in the Outlook installation folder. The exact path depends on your Outlook version and whether Windows is 32-bit or 64-bit. Common locations include:

  • C:\Program Files\Microsoft Office\root\Office16\
  • C:\Program Files (x86)\Microsoft Office\root\Office16\
  • C:\Program Files\Microsoft Office\Office16\

If you are unsure, search your computer for “Scanpst.exe”. Run it, browse to your .pst file, and click Start. The tool will scan and offer to repair errors. This process can take a while for large files. Note that the Inbox Repair Tool works on .pst files, but not on .ost files. For .ost, you typically delete it and let Outlook recreate it.

3. Delete and Recreate the .ost File

If your account uses an .ost file (which is common for IMAP, Exchange, and Microsoft 365 accounts), the file is a cached copy. You can safely delete it, and Outlook will rebuild it from the server. To do this:

  1. Close Outlook.
  2. Open File Explorer and navigate to %localappdata%\Microsoft\Outlook (paste this into the address bar).
  3. Find the .ost file associated with your account – it often has the account’s email address in the name.
  4. Rename it to something like old.ost instead of deleting it immediately. This gives you a backup.
  5. Restart Outlook. It will create a new .ost file and download your data from the server.

4. Check File Location and Permissions

If the error shows a specific path, verify that the file actually exists there. If it does not, you may have moved it. Use Windows Search to find the .pst or .ost file, then note its new location. In Outlook, go to File > Account Settings > Account Settings > Data Files and check the path listed. If it is wrong, you can click Open File Location or use Settings to point to the correct file.

Also check file permissions: right-click the file, select Properties, go to the Security tab, and ensure your user account has Full control or at least Read and Write permissions.

5. Create a New Outlook Profile

Sometimes the profile itself is corrupted. In Windows, open Control Panel > Mail (you may need to search for “Mail”). Click Show Profiles, then Add to create a new profile. After creating it, open Outlook with the new profile and re-add your email account. You can then attach your existing .pst file by going to File > Open & Export > Open Outlook Data File.

How to Prevent the Problem

Once you resolve the error, a few habits reduce the chance of it recurring:

  • Keep your .pst file on a local drive, not on a network share or cloud-synced folder like OneDrive or Dropbox.
  • Regularly back up your .pst file. You can copy it while Outlook is closed.
  • Shut down Outlook properly before turning off your computer.
  • If you use a laptop, avoid force-shutdowns when the battery is low.
  • Run Scanpst.exe periodically if you notice odd behavior, though it is not a replacement for backups.

Why does the error appear only after I moved my .pst file?

Outlook stores the absolute path to your data file in the registry. If you move the file, Outlook still looks for it in the old location. You need to update the path in Account Settings > Data Files, or use the Open Outlook Data File option to locate the moved file.

Can I recover emails if the repair tool fails?

Yes, but it may require third-party recovery software. Before trying that, check if you have a backup of the .pst file (from a previous export or a system backup). If not, some recovery tools can read damaged .pst files, but success varies. Always keep a current backup to avoid this situation.

Does the error mean my emails are permanently lost?

Not necessarily. The error usually means Outlook cannot read the file, but the data may still be intact. Running Scanpst.exe often recovers the data. If the file is severely damaged, professional recovery might be needed. The key is to stop using the file immediately and avoid making changes that could overwrite data.

What is the difference between a .pst and an .ost file?

A .pst file is your primary data file for POP3 accounts and for archiving. It contains a copy of your emails and other items. An .ost file is a cached copy used by IMAP, Exchange, and Microsoft 365 accounts. The .ost is synchronized with the server, so if it is deleted, Outlook recreates it from the server. A .pst is not stored on a server, so it must be backed up manually.

Is it safe to delete the .ost file?

Yes, for most accounts. The .ost is a cache; the original data remains on the mail server. Deleting it forces Outlook to download a fresh copy. However, if you are using an account that does not keep items on the server (rare with modern setups), you might lose locally-only data. For standard IMAP, Exchange, and Microsoft 365 accounts, it is safe.

Final Thoughts

“Outlook data file cannot be accessed” is a fixable error. Start with a restart, then use the Inbox Repair Tool for .pst files or delete the .ost for cached accounts. Check the file location and permissions, and if all else fails, create a new profile. Regular backups and keeping data files on a local drive are the best ways to avoid this issue in the future.