Skip to main content
Outlook Data File Cannot be Accessed

Outlook Data File Cannot be Accessed 0x8004010f

Outlook Data File Cannot be Accessed Error 0x8004010f

Sometimes you may face an error in outlook, “Outlook Data File Cannot be Accessed” while sending/receiving the emails. This error indicates that the Outlook cannot access the data file. Different versions of Outlook including Outlook 2007, 2010, 2013 and Outlook 2016 may face this issue. The error looks like this:

Outlook Data File Cannot be Accessed

Reasons:

There could be two main reasons for this error:

  1. The oultook pst files in the Outlook profile are pointing to the wrong location.
  2. The outlook profile has corrupted.

Solutions:

The solution are quite simple. You can try the following:

  1. Link the data files to the existing Profile:

First of all, if you moved the outlook files to another location, you can try to link them to your outlook profile.

Go to Control Panel and open Mail and select your Profile and click Properties. Here click Data Files. Now click “Open file location” and point to the location where you stored the data files. Set the newly pointed data files as Default and remove the previous entry. Now close the Account settings and open the outlook. This time outlook will be able to access the Outlook files.

2. Create Ne Outlook Profile:

In case your outlook files are pointing to the correct location and still you are facing this issue, it could be because of corrupt outlook profile. To fix this issue, you can try to create a new profile.

Go to Control Panel and open Mail. Click Show Profiles and then click Add, give the new profile a name and click OK. Fill out the Outlook information and complete the configuration. Once the profile is created, set it as Default Profile. Finally, open the outlook (it will open with the new profile) and you will have a fresh, error free outlook profile.

 

For further details about this error, you can check the Microsoft support center article.

Scanpst location

ScanPST Location in Outlook

ScanPST Location in Outlook

The ScanPST Location for each Outlook versions are as follows:

Outlook VersionScanPST.exe Location
Outlook 97/98C:\Program Files\Common Files\Windows Messaging\scanpst.exe
Outlook 2000C:\Program Files\Common Files\System\MAPI\<locale ID>\NT\scanpst.exe
Outlook 2002/XPC:\Program Files\Common Files\System\MAPI\<locale ID>\scanpst.exe
Outlook 2003 (32 Bit)C:\Program Files (x86)\Common Files\System\MSMAPI\<locale ID>\scanpst.exe
Outlook 2003 (64 Bit)C:\Program Files\Common Files\System\MSMAPI\<locale ID>\scanpst.exe
Outlook 2007 (32 Bit)C:\Program Files (x86)\Microsoft Office\Office12\scanpst.exe
Outlook 2007 (64 Bit)C:\Program Files\Microsoft Office\Office12\scanpst.exe
Outlook 2010 (32 Bit)C:\Program Files (x86)\Microsoft Office\Office14\scanpst.exe
Outlook 2010 (64 bit)C:\Program Files\Microsoft Office\Office14\scanpst.exe
Outlook 2013 (32 Bit)C:\Program Files (x86)\Microsoft Office\Office15\scanpst.exe
Outlook 2013 (64 Bit)C:\Program Files\Microsoft Office\Office15\scanpst.exe
Outlook 2016 (32 Bit)C:\Program Files (x86)\Microsoft Office\root\Office16\scanpst.exe
Outlook 2016 (64 Bit)C:\Program Files\Microsoft Office\root\Office16\scanpst.exe

 

This example shows ScanPST location in Outlook 2010, 32 bit version.
Scanpst location

After opening the Scanpst tool, click browse and open the the PST file and then click the Start button to start the repair process.

Allow This Website To Configure Server Settings

Fix: Allow This Website To Configure Server Settings

Allow This Website To Configure Server Settings

If we use DNS SRV record for Autodiscover, you may get the message “Allow This Website To Configure Server Settings” while opening the Outlook. The detail mentions:

https://Mail.Domain.com/Autodiscover/Autodiscover.xml

“Your account was redirected to this website for settings. You should only allow settings from sources you know and trust.”

Allow This Website To Configure Server Settings

It appears because Outlook has found the SRV record for Autodiscover that is configured for mail.domain.com. The complete SRV record is _Autodiscover._tcp.domain.com. The complete URL for Autodiscover also appears in this notification. This warning message is  expected and we can ignore it by clicking Allow.

Fix for a Single User:

To automatically ignore this warning message for a user, we need to add a registry entry on the User’s PC depending on the Outlook version.

Outlook 2007:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\AutoDiscover\RedirectServers

Outlook 2010:

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\AutoDiscover\RedirectServers

Outlook 2013:

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\AutoDiscover\RedirectServers

Outlook 2016:

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover\RedirectServers

RediretServers

Go to the related path and create new string value with the name of the Server we are redirecting in SRV record, for example mail.domain.com.

RediretServers mail.domain.com entry

Close the registry and you will no longer get this prompt again for this user.

 

Fix for multiple users through Group Policy:

If you want to push this registry entry through group policy, you can create a new group policy object and link it to the Users OU. Browse to “User Configuration\Preferences\Windows Settings\Registry” and create new registry item with the following settings:

Action: Update
Hive: HKEY_CURRENT_USER
Key Path: Software\Microsoft\Office\15.0\Outlook\AutoDiscover\RedirectServers
Value name: mail.domain.com
Value type: REG_SZ

Registry entry mail.domain.com

If users have different Outlook versions, then you have to create Registry key for each Outlook version. By just changing the path.

For example for Outlook “Software\Microsoft\Office\15.0\Outlook\AutoDiscover\RedirectServers” for Outlook 2013 and “Software\Microsoft\Office\16.0\Outlook\AutoDiscover\RedirectServers” for Outlook 2016 and so on.