How to Fix Outlook Cannot Open OST File and Must Connect to Exchange
Question details
The user needs to resolve an Outlook error that prevents the application from opening the OST offline data file and requires a connection to Microsoft Exchange.

- Product
- Microsoft Outlook
- Device & OS
- Windows
- Scenario
- Opening Microsoft Outlook to access emails, calendar, and mailbox data.
- Observed behavior
- Outlook fails to launch or sync, displaying an error message stating that the OST file cannot be opened and that the application must connect to Microsoft Exchange.
Ensure you have a stable internet connection so Outlook can properly synchronize with the Exchange server once the issue is resolved. Also, verify that your Exchange server or Microsoft 365 service is currently online and not experiencing an outage.
Close Conflicting Microsoft 365 Applications
Sometimes, another process such as OneNote or a background Microsoft 365 service may lock the OST file, preventing Outlook from accessing it.
Before making any permanent changes to your data files, ensure that no other programs are currently trying to read or sync with your Outlook data.
Ensure Microsoft Outlook is completely closed. You can verify this by checking the system tray or Task Manager.
Close Microsoft OneNote, Skype for Business, and any other Microsoft 365 applications that might integrate with Outlook.
Relaunch Microsoft Outlook to see if the file lock has been released and the error is resolved.
Delete and Recreate the Corrupted OST File
This is the most effective way to fix a damaged OST file. By deleting the corrupted file, Outlook will automatically generate a new one and download a fresh copy of your mailbox from the Exchange server.
Repair the Data File using ScanPST.exe
If you cannot recreate the file or have unsynced offline data you wish to recover, you can use Microsoft's built-in Inbox Repair Tool.
Switch to WPS Office for a Hassle-Free Productivity Experience
If you are frustrated by recurring errors and complex troubleshooting in Microsoft Office, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly suite for your document, spreadsheet, and presentation needs without the steep subscription fees.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button.
- 2. Install WPS Office: Run the downloaded setup file and follow the quick installation prompts.
- 3. Enjoy Seamless Editing: Open your existing Office documents in WPS Office instantly, with no formatting loss or complex configurations.

Frequently Asked Questions
Why does Outlook say it must connect to Exchange?
This typically happens when your local offline data file (.ost) becomes corrupted, is locked by another application, or falls severely out of sync, requiring Outlook to verify and rebuild the data directly from the Exchange server.
Will deleting my OST file permanently delete my emails?
No, deleting the OST file will not delete your emails as long as they are already synchronized with the Microsoft Exchange server. Outlook will simply recreate the file and redownload your mailbox data when restarted.
Where is the Outlook OST file located on my computer?
By default, the OST file is located in a hidden folder at C:\Users\<username>\AppData\Local\Microsoft\Outlook. You must replace '<username>' with your actual Windows account name and ensure hidden files are visible in File Explorer.
How do I open Outlook in Safe Mode to check for add-in conflicts?
Press the Windows key + R to open the Run dialog, type 'outlook.exe /safe' (without quotes), and press Enter. This starts Outlook without third-party add-ins, helping you determine if an extension is causing the file lock or corruption error.





