You see the error “Outlook data file is in use and cannot be accessed” when trying to start Outlook. This prevents you from opening your email, calendar, and contacts. The error occurs because another process is locking the PST or OST file. This article provides the steps to resolve the conflict and regain access to your data.
Key Takeaways: Fixing the Data File In Use Error
- Task Manager > End Task: Force closes any hidden Outlook processes that are preventing a clean startup.
- Outlook.exe /safe: Starts Outlook in Safe Mode to bypass add-ins and profile corruption that can cause file locks.
- Control Panel > Mail > Show Profiles > Remove: Deletes a corrupted Outlook profile so you can create a new one with a fresh data file.
Why Outlook Thinks Your Data File Is Already Open
Outlook stores your emails, calendar, and contacts in a local data file. For Microsoft 365 and Exchange accounts, this is an Offline Outlook Data File (OST). For POP and IMAP accounts, it is a Personal Folders File (PST). When Outlook starts, it needs exclusive read and write access to this file.
The “in use” error appears when the operating system reports the file is locked. This is often due to a previous Outlook session that did not close properly. The Outlook.exe process may still be running in the background. Other software, like backup utilities or antivirus scanners, can also temporarily lock the file. In rare cases, the data file itself can be corrupted or located on a network drive with sync issues.
How File Locking Works in Windows
Windows uses file handles to manage access. When Outlook opens your data file, it creates a handle. If Outlook crashes or is force-closed, this handle may not be released immediately. The system thinks the file is still open. You must clear this lock before a new Outlook instance can proceed.
Steps to Resolve the Data File Lock
Follow these methods in order. Start with the quickest fix and proceed if the error persists.
Method 1: End the Outlook Process and Restart
- Open Task Manager
Press Ctrl + Shift + Escape on your keyboard. Alternatively, right-click the Windows taskbar and select Task Manager. - Find and end Outlook
Click the Processes tab. Look for Microsoft Outlook in the list. If you see it, click on it to select it, then click the End task button in the bottom-right corner. - Check for background processes
Still in Task Manager, click the Details tab. Look for any processes named Outlook.exe. Select each one and click End task. - Restart Outlook
Close Task Manager and try launching Outlook normally from the Start menu.
Method 2: Start Outlook in Safe Mode
- Open the Run dialog
Press the Windows key + R on your keyboard. - Enter the Safe Mode command
Type outlook.exe /safe and press Enter or click OK. - Check for the error in Safe Mode
If Outlook starts without the error, the cause is likely a problematic add-in. Go to File > Options > Add-ins. At the bottom, change the Manage dropdown to COM Add-ins and click Go. Uncheck all add-ins, click OK, and restart Outlook normally.
Method 3: Create a New Outlook Profile
- Open the Mail control panel
Press Windows key + R, type control, and press Enter. In the Control Panel, search for Mail and open the Mail (Microsoft Outlook) item. For Windows 11, search for Mail directly in the Start menu. - Manage your profiles
In the Mail Setup window, click Show Profiles. - Add a new profile
Click Add. Enter a name for the new profile, such as OutlookNew, and click OK. Follow the prompts to re-add your email account. - Set the new profile as default
Back in the Mail window, under “When starting Microsoft Outlook, use this profile,” select the new profile you just created. Click Apply, then OK. Launch Outlook to test.
If the Error Still Appears After the Main Fix
Outlook Opens but Shows a Disconnected or Offline Data File
Your OST file may be corrupted. Close Outlook. Use the Search option in the Windows taskbar to find and run SCANPST.EXE, the Inbox Repair Tool. Browse to select your OST file (usually in C:\Users\[YourName]\AppData\Local\Microsoft\Outlook). Start the scan and repair. After repair, restart Outlook.
You Get an Error About File Permissions or a Network Drive
Do not store PST files on network drives or cloud sync folders like OneDrive or Dropbox. These locations cause sync conflicts and file locks. Move the PST file to a local folder on your C: drive. In Outlook, go to File > Account Settings > Account Settings > Data Files tab. Select the file and click Open File Location to see where it is stored. Close Outlook, move the file locally, then use the same Data Files tab to remove the old path and add the new one.
Outlook Crashes Immediately After the Splash Screen
- Run the Office Repair tool
Close all Office apps. Go to Settings > Apps > Installed apps. Find Microsoft 365 or Microsoft Office. Click the three-dot menu and select Modify. Choose Online Repair and follow the prompts. - Disable hardware graphics acceleration
If the repair does not work, try starting Outlook with a clean configuration. Press Windows key + R, type outlook.exe /cleanviews, and press Enter. You can also disable graphics acceleration in File > Options > Advanced. Under Display, check the box for Disable hardware graphics acceleration.
Common Data File Scenarios and Recommended Actions
| Scenario | Recommended Action | Alternative if It Fails |
|---|---|---|
| Outlook closed but process still in Task Manager | End task in Task Manager Details tab | Restart your computer |
| Error appears only with specific add-ins enabled | Start in Safe Mode and disable COM add-ins | Create a new Windows user profile |
| OST file corruption suspected | Run the SCANPST Inbox Repair Tool | Delete the OST file; Outlook will rebuild it from the server |
| PST file stored on OneDrive/network | Move the PST file to a local drive | Create a new PST file in a local location and move items to it |
| Persistent error after all software fixes | Create a new Outlook profile via Control Panel | Perform an Online Repair of Microsoft 365 |
You can now start Outlook without the data file error. Begin by checking Task Manager for leftover processes. For a permanent solution, manage add-ins and ensure data files are stored locally. A useful advanced tip is to use the command outlook.exe /resetnavpane if you suspect navigation pane corruption is contributing to the startup failure.