OST to PST Converter

The File “username.ost Is in Use and Cannot Be Accessed” — How to Fix It

info-icon  Our content follows trusted Editorial Standards - accurate & unbiased.

Summary:

You can fix the “The file username.ost is in use and cannot be accessed” error by closing Outlook completely, temporarily disabling the antivirus application, removing problematic add-ins, repairing Microsoft Office, or rebuilding the OST file. In this guide, we will discuss these methods in detail to help you fix this issue. If your OST file becomes inaccessible, you can use Stellar Converter for OST to restore the mailbox data.

Table of Contents

When you configure an IMAP, Exchange, or Microsoft 365 account in Outlook, it creates an Offline Storage Table (OST) file on your local storage. This file is the copy of all your mailbox data residing on the server, including emails, attachments, notes, contacts, and tasks. The OST file allows you to work with Outlook even when you are offline or not connected to the server.

Sometimes, you face various issues and errors when working with Outlook due to problems with the data file or the application itself. One such error you may encounter is:

“The file C:\users\…xyz.ost is in use and cannot be accessed. Close any application that is using the file, and then try again. You might need to restart the computer.”

When you look at the error message, it seems that the OST file is in use by another application, which is preventing you from accessing the file. However, there might be various other reasons for this error. In this guide, we’ll shed light on the reasons behind this error and discuss methods to fix it.

Why does Outlook say the OST File is in Use?

There are several reasons that can prevent Outlook from opening or accessing the OST file. Some of the most common reasons are: 

1. Another Application or Process is Accessing the OST File

Another application or process may access or lock the OST file, preventing Outlook from opening it. These may include Teams or Skype for Business, OneDrive, backup utility or antivirus software.

2. Outlook is Running in the Background

Sometimes, even after closing the Outlook, it may continue running in the background. If you start Outlook again before the previous process is still active, the OST file may still be in use, resulting in the error.

3. Synchronization Issues

Outlook continuously synchronizes the OST file with the mailbox server. If the there are synchronization issues, it may throw such an error. 

4. Corrupted or Damaged Outlook Profile

If your Outlook profile is corrupted or damaged, it may fail to access the OST file, causing this error.  

5. Faulty or Incompatible Outlook Add-ins  

Sometimes, faulty third-party add-ins can interfere with Outlook functionality, preventing it from opening or accessing the OST file.

6. Problems with OST File

Damage or corruption in OST file can prevent Outlook from accessing the mailbox data, resultresulting in the data file-related errors.

Quick Fix: Restart your System and Reopen Outlook

Save all your current work and restart your system. This can terminate any running Outlook or background processes and release file locks that may be preventing the application from accessing the OST file. After restarting the system, open Outlook again and check if the “The file username.ost is in use and cannot be accessed” error is resolved. If not, proceed with the troubleshooting methods below.

Methods to Fix “The File username.ost is in use and cannot be accessed” Error

You can follow the below given methods to resolve theis error.

Method 1: Close MS Outlook and Associated Processes

There are various applications that can access the OST file while Outlook is running or after it has been closed. For example, Microsoft Teams, Skype for Business, OneDrive, backup or antivirus software, and Windows Search may interact with Outlook data file. If one of these processes continues to access the file, the application may be unable to open it and display the “Outlook data file is in use and cannot be accessed” error. You can check and close all the applications and processes that might be using the OST file. Follow the steps mentioned below:

  • Close Outlook and open Task Manager (press Ctrl + Shift + Esc keys).
  • On the Task Manager window, select the ‘Processes’ tab.
  • From the list of processes running on your system, look for processes related to OutlookLYNCCommunicator, and UCMAPI.
Task Manager
  • Click on these processes one at a time and click on the End Task button.
  • When all the processes are closed, start Outlook.

If the error persists, move to the next method.

Method 2: Temporarily Disable Security Applications

Security applications, such as antivirus or Firewall can sometimes lock the OST file or conflict with Outlook processes, resulting in error. You can disable the Firewall or antivirus application temporarily and start Outlook. This will help you find out if such an application is behind the OST is in use error. If this is the case, you can add Outlook and OST as exceptions in your antivirus application or contact your security application provider.

Method 3: Check and Change Account Settings

You may also face issues and errors in Outlook due to faulty account settings, such as DNS, port numbers, proxy settings, etc. You can check and change the email account settings in Outlook via the Control Panel. You need administrative access to change the account settings.

Method 4: Find and Disable Problematic Outlook Add-ins

Sometimes, third-party add-ins can interfere with the functioning of Outlook, resulting in the error. To check this, start Outlook in Safe Mode. If it starts without any error, this means that any problematic add-in is behind the issue. In such a case, disable the add-ins by following these steps:

  • Click File > Options. This will open the Outlook Options window.
  • Click Add-Ins.
  • Find the Manage option at the bottom of the screen, select COM Add-ins, and click Go. This will open the list of all add-ins.
Outlook options
  • Uncheck all the add-ins and click OK to disable them.
COM Add-ins
  • Now, restart Outlook normally.

To find the problematic add-in, enable one add-in at a time and restart Outlook. This will help you to find out the add-in that is causing the error. After identifying the problematic add-in, remove it permanently.

Method 5: Repair Microsoft Office

Damaged or corrupted Office program files can also prevent Outlook from opening or accessing the data files. In such a case, you can repair your Microsoft Office application. First, use the Quick Repair option. If it didn’tdoesn’t resolve the issue, use Online Repair for more comprehensive repair.

Method 6: Disable Cached Exchange Mode

When Cached Exchange Mode is enabled in Outlook, it creates a local copy (OST) of the mailbox data and synchronizes it to and from the server. If there is any problem with synchronization, you may face issues when accessing the OST file. You can turn off the Cached Exchange Mode temporarily and see if it fixes the error.

If Outlook doesn’t show the error, it indicates there is some problem with the OST file. You can turn on the Cached Exchange Mode again and follow the next method.

Method 7: Repair the OST File with the Inbox Repair Tool

If your local data file is damaged or corrupted, it may prevent Outlook from accessing the file, which can cause issues or errors. Microsoft provides the Inbox Repair Tool (scanpst.exe) to repair corrupted and damaged Outlook data files (.ost and .pst). You can use this tool to repair your OST file and access your mailbox data.

Method 8: Rebuild or Recreate the OST File

If repairing the OST file didn’tdoesn’t fix the issue, you can recreate the OST file. Follow the below-mentioned steps:

Local Disk Storage
Outlook Data file
  • Start Outlook. It will create a new OST file at the default location and sync all your mailbox data from the mailbox server.
Data file location

Recover Missing Data after Rebuilding the OST File

After rebuilding the OST file, check your mailbox for any missing items. If you find any missing items, then you can retrieve them from the backup OST file by using a professional OST to PST converter tool, Stellar Converter for OST. This tool can extract all the data from the backup OST file and present it in a preview window. You can search for the missing items, select them, and then save them in PST file. You can import this PST file into your Outlook by using the Import and Export wizard to restore the missing items. This tool can easily and efficiently convert large-sized orphaned or inaccessible OST files to PST file format.

Advanced Fix: Reset the Outlook Profile in Registry

If the Cached Exchange Mode option is greyed out or if you suspect that your Outlook profile is corrupted, you can reset the Outlook profile through the Windows Registry. It allows the application to create a completely fresh profile next time it launches. Follow the steps below:

  • Press Windows + R to open the Run dialog box.
  • Type regedit and press Enter.
  • Click Yes if the User Account Control (UAC) prompt appears.
  • In Registry Editor, go to the Outlook profile key: HKEY_CURRENT_USER\Software\Microsoft\Office\<version>\Outlook\Profiles (Replace <version> with your Office version).
  • Right-click the Profiles key and select Export to create a backup.
  • Expand Profiles and locate your Outlook profile.
  • Delete the profile key or delete the entire Profiles key if you want to remove all Outlook profiles.
  • Close Registry Editor and open Outlook.
  • Now, you will be prompted to create a new profile. Once created, your mailbox data will be synchronized automatically.

Fixing The File username.ost is in Use and cannot be Accessed Error in New Outlook

This error is associated with classic Outlook, which uses OST file for the local cached copy of an Exchange or Microsoft 365 mailbox. However, the New Outlook is a web-based application that manages and stores your mail directly on the cloud and does not use OST file. Therefore, this specific file-locking error doesn’t apply to it.

If you are using New Outlook and experiencing a similar issue, you can troubleshoot it based on the error message displayed rather than applying troubleshooting methods for classic Outlook.

How to Prevent “The File username.ost is in Use and cannot be Accessed” Error?

Follow the best practices mentioned below to prevent this error in future:

  • Install Microsoft Office and Windows updates regularly.
  • Make sure to close your Outlook completely before shutting down Windows or restarting your computer.
  • Maintain adequate free storage on the drive where Outlook stores its data files.
  • Install only trusted Outlook add-ins and periodically review those you no longer use.

Keep your antivirus software updated.

Maintain regular backups of your mailbox data or export important folders periodically.

To Conclude

Factors, such as synchronization problems, conflicting applications, incorrect account settings, etc. can result in the ‘OST is in use and cannot be accessed’ error. You can follow the methods mentioned in this guide to fix this error. If the OST file is damaged or inconsistent, you can create a new file after taking its backup. If there are any missing items in the new OST file, then you can use Stellar Converter for OST to retrieve the missing items from the backup OST file.

FAQs

No. An OST file is a local cached copy of your Exchange, Microsoft 365, Outlook.com, or IMAP mailbox. Your mailbox data remains stored on the mail server, which you can download anytime by recreating the OST file.
Yes. In most cases, it is safe to delete an OST file associated with an Exchange or Microsoft 365 account. Because the .ost file is a local cached copy of your mailbox data, all your mailbox data remains on the mail server. After you delete the OST file and reopen Outlook, it creates a new OST file and synchronizes your mailbox data from the server. However, you should take backup of your OST file before deleting it.
This can happen if Outlook doesn't close properly, an Outlook or related background process continues to access the OST file, or antivirus software scans the file while Outlook is using it.
No. New Outlook for Windows uses cloud-based architecture and does not create an OST file.

About The Author

Shivom Sharma linkdin

Translating tech talk into everyday language—because everyone deserves to understand their software....

16 comments

  1. Hello i have Outlook 2019, if i want to open outlook this writes me that there is a problme with my .ost file.
    But if i launch reapirost.exe this can nit find the .ost file -) i tried to find but i have no .ost or .pst file in my computer. Somebody advices me to erase .ost and .pst files and after launching outlook it creates new files – but i can not launch outlook because od problem with .ost? i also tried to reinstall office but the error is still the same. Thank you for any help i am exhausted

    1. First, you should copy and backup the OST file from default location. But now if you have already deleted/erased it, you can try removing your current Outlook profile, which seems corrupted, and then add/create a new profile with your email ID.

  2. Started to work on this problem in the early morning and just fixed! Credit goes to your perfect tutorial.

  3. Our organization employees edit & saved the word file and facing .ost in use and cannot be accessed error. We have run scanost.exe application but can’t fix this error. Kindly suggest any other method.

    1. You can run Outlook in compatibility mode. Follow below steps:
      1. Go to your system desktop
      2. Hold Control Key (Ctrl)
      3. Double click on Outlook icon
      4. Now, confirm the dialogue box that asks to fix OST file.

  4. When I launched Outlook, I got the following error message:
    “OST file is in use and cannot be accessed”
    Then I tried to fix the error suddenly one more error occurs:
    “Sorry, we’re having trouble starting Outlook. Only one version of Outlook can run at a time. Check to see if another version of Outlook is running, or try restarting your computer.”

    Please suggest best solution.

      1. running an office repair via control panel, Programs & Apps resolved this issue for the ost profile in use error, you just select the program for office and hit change, then run a quick repair, if this doesn’t work a colleague suggested running gpupdate /force, and rebooting and if that doesn’t solve it then add a new profile for Outlook, but the office repair did the trick, hope this helps! 🙂

  5. Today when I tried to access Microsoft Outlook 2016, it suddenly crash and faced this error:
    The file C:\Users\roger\AppData\Local\Microsoft\roger\outlook.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer.

    How to resolve this error?

    1. Kill all MS Outlook related processes through Task Manager and restart the computer. This is the simplest way to resolve this error.

  6. I have tried it all the still Outlook is giving this error.

    Will I be able to solve this issue, If I use Stellar Converter for OST?

    1. Hi Oliver,

      Just download the software for 100% free evaluation. Then, you would be able to make a right decision.

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

Google Trust
Related Posts

WHY STELLAR® IS GLOBAL LEADER

Why Choose Stellar?

  • 3M+

    Customers

  • 30+

    Years of Excellence

  • 100+

    R&D Engineers

  • 190+

    Countries

  • 8000+

    PARTNERS

  • 120+

    Awards Received

BitRaser With 30 Years of Excellence
Technology You Can Trust
Data Care Experts since 1993
×