Fix Outlook OST File Cannot Be Accessed Error
In this article
If Outlook shows “cannot access” for your OST file, the fix usually involves recreating the file or repairing your mail profile. This article explains why the error occurs and provides step-by-step solutions to get your mailbox working again.
What Is an OST File and Why Does It Matter?
An Offline Outlook Data File (.ost) is a local copy of your Exchange, Microsoft 365, or IMAP mailbox. Outlook uses it to store emails, contacts, calendar items, and other data so you can work offline. When the OST file becomes corrupted, outdated, or is blocked by another program, Outlook throws the “cannot access” error and may fail to start or load your mailbox.
Unlike a PST file (which is a personal archive), an OST is tied to your mail account and is automatically recreated from the server when deleted. That means you can often fix the error by simply removing the problematic OST file and letting Outlook rebuild it.
Common Causes of the OST Access Error
Several issues can lead to this error. Knowing the cause helps you choose the fastest fix.
- File corruption: Unexpected shutdowns, crashes, or disk errors can damage the OST file.
- Outdated profile: A mail profile that references an old OST path or server settings.
- File permissions: Windows may block access if the OST file is marked as read-only or if your user account lacks permissions.
- Antivirus or backup software: Some programs lock OST files during scans, causing Outlook to lose access temporarily.
- Disk space or path issues: If the drive is full or the OST path is too long, Outlook may fail to open the file.
- Sync issues: A large mailbox or a stalled sync can leave the OST in an inconsistent state.
How to Fix the OST File Cannot Be Accessed Error
Follow these steps in order. The first is the most common fix and works for most users.
Step 1: Close Outlook and Restart It
Sometimes the error is temporary. Close Outlook completely (check the system tray for the Outlook icon and right-click to exit). Wait a few seconds, then reopen Outlook. If the error persists, proceed.
Step 2: Recreate the OST File
This is the most reliable fix. The OST is a cached copy; deleting it forces Outlook to download a fresh copy from the server. Your emails, contacts, and other data will reappear after sync.
- Exit Outlook.
- Open Control Panel → Mail (or type “Mail” in the Start menu).
- Click Show Profiles.
- Select your profile and click Properties.
- Under Email Accounts, select your account and click Change.
- Under Offline Settings, click Use Cached Exchange Mode (if not already checked), then uncheck it and click Next, then re-check it and click Next. This resets the OST path.
- Alternatively, you can simply delete the OST file manually. Go to
%localappdata%\Microsoft\Outlookin File Explorer, find the .ost file for your account, and delete it. Outlook will recreate it on next launch.
Deleting the OST file does not delete your server data. It only removes the local cache.
Step 3: Repair Your Mail Profile
If recreating the file doesn’t work, your profile may be damaged. Create a new profile and add your account to it.
- Open Control Panel → Mail → Show Profiles.
- Click Add and name the new profile.
- Enter your email address and password, then let Outlook configure it.
- Set the new profile as the default (or choose it when Outlook prompts).
- Open Outlook with the new profile. If it works, you can delete the old profile later.
Step 4: Run the Inbox Repair Tool (ScanPST.exe)
For PST files, Microsoft provides a repair tool. For OST files, the tool is less commonly used, but it can sometimes fix corruption. The tool is located in the Outlook installation folder, typically C:\Program Files\Microsoft Office\root\Office16 (or similar). Run ScanPST.exe, browse to the OST file, and click Start. This tool is not a guaranteed fix for OST files, but it’s worth trying if you cannot afford to lose the local cache.
Step 5: Check File Permissions and Antivirus
Right-click the OST file in File Explorer, select Properties, and ensure it is not read-only. Also, temporarily disable antivirus or backup software that may be scanning the file, then try opening Outlook. If that fixes it, add Outlook and the OST folder to the exclusion list.
Step 6: Free Up Disk Space and Shorten the Path
Ensure your system drive has enough free space. If the OST path is very long (e.g., deep in a folder hierarchy), move the OST to a shorter path. You can change the OST location in Outlook by going to File → Account Settings → Account Settings → Data Files, but for Exchange accounts, it’s easier to delete and recreate the file as described above.
What to Do If the Error Persists
If you’ve tried all the above and still see the error, the issue may be with your mail server or network. Check that you can access your mailbox via Outlook on the web. If that works, try creating a new Windows user profile and setting up Outlook there. If the problem is widespread, contact your IT administrator or email provider for server-side diagnostics.
Preventing Future OST Errors
To minimize the chance of this error recurring:
- Always close Outlook properly before shutting down your computer.
- Keep your Windows and Office updated.
- Ensure your antivirus excludes Outlook and the OST folder from real-time scanning.
- Maintain adequate free disk space.
- If you use a laptop, avoid putting it to sleep while Outlook is syncing large folders.
Frequently Asked Questions
Will deleting the OST file delete my emails?
No. The OST is a cached copy. Your emails, contacts, and calendar items remain on the server. After deletion, Outlook downloads a fresh copy, and your data reappears after sync.
Can I convert an OST file to PST to recover data?
Yes, but only with third-party tools. Microsoft does not provide a built-in converter for OST to PST. If you need to recover data from a corrupted OST, you may use a reputable third-party recovery tool, but it’s often easier to let Outlook recreate the file.
Why does the error mention “cannot access” even though I’m online?
The error is about the local file, not your internet connection. It means Outlook cannot read or write to the OST file, which can happen due to corruption, permissions, or another program locking the file.
How long does it take to rebuild an OST file?
It depends on the size of your mailbox and your internet speed. A small mailbox may take a few minutes; a large one (10+ GB) could take hours. Outlook shows a sync status in the bottom-right corner.
Can I use the same OST file on another computer?
No. OST files are tied to the specific mail profile and computer. You should not copy an OST to another machine; instead, set up the account fresh and let Outlook create a new OST.