Fix: Error (0x8004010F) Outlook Data File Cannot be Accessed

Outlook error 0x8004010F occurs when you try to send or receive an email in Outlook. It occurs if Outlook is unable to access the data file. Many users have reported that this issue occurs mostly during the migration of an old Outlook file. There are two variations of this error, and it depends on whether you are sending an email or receiving it.

  • Error when sending email: Sending’ reported error (0x8004010F) ‘Outlook data file cannot be accessed).’
  • Error when receiving email: Receiving’ reported error (0x8004010F) ‘Outlook data file cannot be accessed).’
Outlook Data File Cannot be Accessed

In this article, we will discuss the causes of Outlook error 0x8004010F and how to fix it. We will also explore how to prevent this error from occurring again.

Before we begin, you have to understand how Outlook operates and why Outlook’s data files, commonly known as OST (Offline Storage Files) and PST (Personal Storage Table), are essential for sending or receiving an email.

What are these Outlook data files, and why are they so important?

An Outlook data file (PST) or Offline Outlook Data File (OST) contains all your emails and other important information required for Outlook to properly display your messages. When you add an email account to Outlook, all your email messages are downloaded and stored in these data files. These files act like an offline copy of all your mailbox information, which is stored on the email server.

Now, why are they so important? Well, these files contain all your mailbox information, and if these files are corrupted or not working as intended, then Outlook will be stuck in a loop and won’t know where to store more email information. This is because these files contain all the email messages you send or receive. That’s why the ‘Outlook data file cannot be accessed’ error appears.

There are many other errors related to PST and OST files as well. Two more errors are often faced alongside this error if the Outlook data file is corrupted:

For more information and references regarding the information above, Please visit Microsoft’s Official Blog Page on ‘OST & PST Files.’

What are the causes of Outlook error 0x8004010F?

Although the main cause of this error is a corrupted Outlook data file, this error can also be caused by several other factors. These factors include a corrupted Outlook data file, conflicting applications, or a corrupt Office installation.

  • Conflicting Applications: If there is an application on your system, such as OneDrive, that interferes with Outlook’s access to the data file (especially if the file is located inside the OneDrive backup folder), it can cause a data file access issue.
  • Corrupt Outlook Data File: If the Outlook data file itself is corrupted, it may be the reason for the error you are experiencing.
  • Corrupt Cached Exchange Data:If Outlook is configured to use cached Exchange mode, corrupted cached data in Outlook may be the cause of the data file access issue.
  • Corrupt Office Installation: If the Office suite installation is corrupted, you may encounter issues with Outlook file access.

How can I fix Outlook error 0x8004010F?

Now that we know the main causes of this error, let’s explore some solutions to fix it. Our primary goal is to ensure that Outlook can access its OST or PST data files properly without any issues.

If the data file is inaccessible, then it must be corrupted or malfunctioning. Let’s take a look at each solution and see why it might help resolve the issue, then move on to detailed instructions for each solution.

  1. Launch Outlook as administrator:If Outlook does not have administrator privileges to access the directory where the Outlook data file is located, it can result in the issue of being unable to access the data file. In this case, launching Outlook as an administrator may resolve the problem.
  2. Perform a Clean Boot: Outlook might display the ‘data file cannot be accessed’ issue if another application or service on the system is limiting Outlook’s access to its data file. In this case, performing a clean boot of the system may prevent the problematic application or service from starting, which could resolve the problem.
  3. Disable Exchange Cached Mode of Outlook: If the associated Outlook account is used in Exchange Cached Mode, then the corrupted cached data could be the reason for the ‘Outlook data file cannot be accessed’ issue. In this case, you can fix the ‘Outlook data file cannot be accessed’ error by disabling the Exchange Cached Mode in Outlook.
  4. Repair the Office Installation: This can potentially fix the paths and correct corrupted installation issues with Outlook, which can help resolve errors with PST and OST files.
  5. Repair Inbox using the Scan PST utility: The data file access issue in Outlook could be a result of corruption in Outlook’s data file. Performing an inbox repair using the ScanPST utility (if the data file is in the PST format) may solve the problem.
  6. Fix Path of Data Files:If the path is defined incorrectly in Outlook’s registry settings, Outlook will fail to locate the data file. In this case, using the system’s registry to force the PST path might solve the problem.
  7. Edit the Mail-Related Settings of the System:There may be numerous email-related settings causing the data file access issue at hand, and modifying the relevant settings could potentially resolve the problem.
  8. Reinstall the MS Office: If none of the above methods work, then a corrupt installation of Office (which cannot be repaired) may be the cause of the data file problem. In this scenario, reinstalling Office might solve the problem.

1. Launching Outlook as Administrator

  1. Close Outlook completely.
  2. Run Outlook as an administrator.
    Open Outlook as Administrator
  3. Check if the issue is resolved.
  4. If not, open Command Prompt as an administrator.
    Open Command Prompt as Administrator
  5. Execute the following command:
    icacls *.pst /setintegritylevel m
  6. Check if the issue is resolved.

2. Performing a Clean Boot

  1. Firstly, perform a clean boot of your PC. Make sure to disable OneDrive and its associated services during the clean boot process, as OneDrive is a known application that interferes with Outlook data files.
    Disable Microsoft OneDrive at the System’s Startup
  2. Once done, launch Outlook and check if the Outlook data file accessed problem is solved.

3. Disable Exchange Cached Mode of Outlook

  1. Close Outlook.
  2. Open Control Panel.
    Open Control Panel
  3. Go to Mail > Email Accounts.
    Open Mail in Control Panel
  4. Now, in the Email tab, select the problematic email account and click on Change.
    Open Email Accounts in the Mail Setup
  5. Then, near the right bottom of the window shown, open More Settings and head to the Advanced tab.
    Select the Problematic Email Account and Click on Change
  6. Now uncheck the option of Download Shared Folders and apply the changes made.\
    Open More Settings of the Problematic Account in Outlook
  7. Then launch Outlook and check if it is working fine.
    Uncheck Download Shared Folders and Use Cached Exchange Mode
  8. If not, head to the Advanced tab of the Email account’s More Settings (repeat steps 1 to 5) and uncheck Use Cached Exchange Mode.
  9. Afterward, apply the changes and launch Outlook to check if the data file cannot be accessed problem is cleared.

4. Repairing the Office Installation

  1. Restart your PC.
  2. Then, right-click on Windows and select Apps & Features.
    Open Apps & Features
  3. Now, in the right pane, expand the Microsoft Office installation and select Modify.
    Modify the Office Installation
  4. Select Quick Repair and click on Repair.
    Quick Repair Office
  5. Wait until the repair process completes.
  6. Check if the Outlook issue is resolved.
  7. If not, open the Office Repair menu again and select Online Repair.
    Online Repair Office
  8. Wait until the online repair process finishes.
  9. Check if the Outlook data file cannot be accessed problem is cleared.

5. Performing an Inbox Repair by Using the ScanPST Utility

  1. Firstly, make sure to enable the viewing of hidden and protected operating system files on the system.
  2. Now, exit Outlook and ensure that you close all of its related processes in the Task Manager.
  3. Then, right-click on Windows and select “Run.
    Open the Run Command Box from the Quick Access Menu
  4. Now navigate to the following path (as per the Office installation):
    For Office 64-bit
    \Program Files\Microsoft Office\root\Office16
    
    For Office 32-bit
    \Program Files (x86)\Microsoft Office\root\Office16
    Open the Office16 Folder Through the Run Command Box
  5. Then find and right-click on the ScanPST.exe.
    Open ScanPST.exe as Administrator
  6. Now select Run as Administrator and in the Inbox Repair Tool, Browse to the location of the PST file.
    Browse for the Outlook Data File in the ScanPST Utility
  7. Then, click on ‘Start‘ and wait until the process is complete. This may take some time, depending on the size of the PST file. If you encounter the ‘PST file is in use’ error, perform a clean boot of the PC (as discussed earlier), and then try the above steps once again. If Outlook is synced through a mobile phone (such as an iPhone), turn off the phone or disable Outlook Sync, and then attempt to use the ScanPST utility again.
  8. Once finished, launch Outlook and check whether the data file issue has been resolved.

6. Edit the System’s Registry to Force the PST Path

Warning: Proceed at your own risk and with the utmost care, as editing the system’s registry requires skill. If not done properly, you may cause irreparable damage to the system/data. It’s best to create a backup of your Windows registry and refer to the related forum before proceeding. Here’s a detailed guide on ‘Path of OST and PST Files in Microsoft Windows

  1. Click Windows, search for Registry Editor, right-click on it, and select Run as Administrator.
    Open Registry Editor as Administrator
  2. Now navigate to the following path:
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook
    Create a New Expandable String Value Under The Outlook Registry Key
  3. Then, in the left pane, right-click on Outlook and select New>> Expandable String Value.
  4. Now double-click on the value and enter the Value Name as ForcePSTPath.
    Set the Value of the ForcePSTPath to the Data File’s Location
  5. Then enter the value of the PST file path (like C:\Documents) in the field of Value Data and click on OK.
  6. Then close the Registry Editor and reboot your PC.
  7. Upon reboot, launch Outlook and check if its data file problem is cleared.

7. Edit the Mail-Related Settings of the System

There can be many email-related settings that might cause the data file access issue at hand, and editing the related settings may solve the problem.

7.1 Repair the Outlook Profile

If the Outlook profile is corrupt, it may result in data file access issues within Outlook. In this case, repairing the Outlook profile could potentially solve the problem.

  1. Exit Outlook and terminate its related processes in the system’s Task Manager.
  2. Then, click on Windows, search, and open the Control Panel.
  3. Now, near the top-right corner, switch to the Large Icons View and open Mail (or Mail 32-bit if the Office installation is 32-bit). If no Mail icon is shown in the Control Panel, make sure you are not using the Microsoft Store version of Outlook or Office.
  4. Then, in the Email tab, select the problematic account, and afterward, click on the Repair button..
    Repair the Outlook Profile
  5. Now follow the prompts on the screen to complete the process. You may have to enter your relevant E-mail credentials during the process.
  6. Once done, launch Outlook and check if it is clear of the data file access issue.

7.2 Use Additional Mailboxes Feature

If the issue occurs with the shared mailboxes, then using the additional mailboxes feature may solve the problem.

  1. Firstly, delete all the shared mailboxes (do not forget to back up the data files) and launch Outlook.
  2. Now, expand the File menu and select Account Settings > Account Settings.
    Open Account Settings of Outlook
  3. Then select the main account in use and click on Change.
  4. Now open More Settings and head to the Advanced tab.
  5. Then click on Add and add the shared mailboxes (one by one) to check if that resolves the file access issue.
    Add Additional Mailboxes to the Main Account in Outlook
  6. If not and the issue is occurring when sending/receiving emails, then make sure to enable one, Send on or Send as (not both), and then check if the Outlook issue is resolved.

7.3 Use the Change Folder Button

  1. Launch Outlook and open its File tab.
  2. Now, open Account Settings >> Account Settings, and select the problematic account.
  3. Then, click on “Change Folder” (near the bottom left) and select “Personal Folder/Inbox“. If the “Change Folder” button is not shown, you may be using IMAP.
    Change Folder of the Outlook Profile
  4. Now click on OK and check if the Outlook data file issue is resolved.

7.4 Create a New Data File in Outlook

  1. Open Mail in the system’s Control Panel and head to the Data Files tab..
    Open Data Files in the Mail Setup
  2. Now click on Add and save the new data file (make sure to choose a destination on the system drive).
    Add a New Data File for the Outlook Profile
  3. Then select the newly created Data File and click on Set as Default.
    Set the New Data File as Default for the Outlook Profile
  4. Now head to the Email tab and select the problematic account.
  5. Then click on Change Folder and select the newly created data file.
  6. Afterward, launch Outlook and check if it is clear of the data file issue.
  7. If not, open the File menu of Outlook and select Open & Export.
  8. Then click on Open Outlook Data File and navigate to the old PST file.
    Open Outlook Data File in the Open & Export Menu
  9. Now double-click on the PST file and check if that resolves the data file access issue.

7.5 Add the New Outlook Profile and Point it to the Data File

The Outlook data file issue might arise due to a corrupt Outlook profile. In this context, adding a new Outlook profile and pointing it to the problematic data file may solve the problem.

  1. Exit Outlook and end its related processes in the system’s Task Manager.
  2. Now, click on “Windows,” search for, and open the Control Panel.
  3. Then, change the View to Large Icons and open Mail or Mail (32-bit).
  4. Now, click on the Show Profiles button, and in the resulting window, select the problematic profile.
    Open Show Profiles in the Mail Setup
  5. Then click on Properties and select Data Files. Now select the problematic data file.
    Open Properties of the Outlook Profile in Mail
  6. Afterward, click on the Change File Location button and copy the address from the address bar.
    Open Data Files in the Mail Setup
  7. Then close all the opened Windows till the Mail window is shown and at that window, click on Add.
    Open the File Location of the Outlook Data File
  8. Then enter a name for the new profile and follow the on-screen instructions to complete the process.
    Add a New Outlook Profile
  9. Once done, open Mail from the Control Panel and select the new profile.
  10. Now, checkmark Prompt a Profile to be Used and click on Apply.
    Enable Prompt for a Profile to be Used in the Mail Setup
  11. Then launch Outlook and select the newly created profile. If no prompt is shown when Outlook is launched, then you may add the “PromptRepair” value with the value of 0 in the following registry path:
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST
  12. Afterward, open the File menu of Outlook and select Open & Export. Now, in the right pane, click on Import/Export.
    Click on Import/Export in the Open & Export Menu of Outlook
  13. Then select Import from Another Program and File.
    Import from Another Program or File in Outlook
  14. Now click on Next and select Outlook Data File.
    Select Outlook Data File in the Outlook Import
  15. Then click on Next and browse to the data file (path noted at step 6).
    Browse to the Outlook Data File and Select the Appropriate Duplicate Option
  16. Now click on Next and select the appropriate option about duplicates.
  17. Once imported, check if the file’s access issue is cleared.
  18. If the issue persists, delete the old user profile in the Control Panel’s Mail applet (make sure to back up the data file) and then repeat the above steps to check if the issue is resolved.
  19. If that did not work, delete all the user profiles in the Control Panel’s Mail and add a new profile (as discussed earlier) but during the setup, use the old PST file to check if that lets you successfully solve the data file issue at hand.

8. Reinstalling the MS Office

  1. Corrected sentence: “Right-click on Windows and select Apps & Features.
  2. Now, expand the Office installation and click on ‘Uninstall.’
  3. Then confirm to uninstall Office, and afterward, follow the prompts on the screen to complete the uninstallation process.
    Uninstall Office
  4. Once done, restart your PC and upon restart, reinstall MS Office to check if the Outlook issue is resolved.
  5. If not, download the Official MS Office Uninstaller, and once downloaded, launch it as administrator.
    Download Office Uninstallation Tool from Microsoft Website
  6. Then follow the prompts on the screen to complete the process.
    Uninstall Microsoft Office Through the Uninstall Tool
  7. Once uninstalled, restart your system, and upon restart, reinstall the Office suite.
  8. Once done, launch Outlook and hopefully, it will be clear of the data file access issue.

That’s it! It’s very important to always keep a backup of your Outlook data file to prevent this issue from happening again. Microsoft have an official guide on backing-up Outlook data file. Refer to, “Back up your email Outlook for Microsoft 365 Outlook 2021 Outlook 2019 Outlook 2016 Outlook 2013

If none of these solutions fixed the problem you are facing, then you must contact Microsoft Office tech support and explain the problem to them, because in some cases the root cause and solution can be difficult to precisely track down. Microsoft also has an official blog page that contains a repairing tool along with a guide. If you need more information, Please refer to “Repair Outlook Data Files (.pst and .ost)“. Furthermore, you can leave a comment down below, and our expert technicians will respond to you in no time!

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.