Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Outlook error 0x8004010F "Outlook data file cannot be accessed": what Microsoft documents and how to fix it

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When Outlook sends or receives mail and reports "0x8004010F: Outlook data file cannot be accessed." or "0x8004010F: The operation failed. An object could not be found.", Microsoft's page gives one cause: a corrupted Outlook profile. Its fix is to note where the default Outlook data file is, create a new profile, and point the new profile at that file.

The page is written for Outlook 2010 and Outlook 2013 and gives no later version, so on a newer Outlook treat the steps as something to test, not as a certainty. Record the data file's name and folder before you touch the profile.

What the error means

Microsoft's page for this code is titled "Error 0x8004010F when you try to send or receive email in Outlook 2010 or Outlook 2013". Its summary reads: "This issue is caused by the corrupted Outlook profile. You can try to create a new profile to resolve the issue."

The two messages the page lists are:

  • 0x8004010F: Outlook data file cannot be accessed.
  • 0x8004010F: The operation failed. An object could not be found.

The page's procedure replaces the profile and keeps the data file: the new profile is told to use the existing Outlook data file, which is why the file's name and location are recorded first.

The page does not explain how a profile becomes corrupted, and it does not describe the 0x8004010F code beyond the two message texts. It does not name a data file fault, an antivirus product or a storage location as a cause.

Likely causes

Cause What you see How to confirm
Corrupted Outlook profile (the cause Microsoft names) 0x8004010F during send or receive; the page's title and scope name Outlook 2010 and Outlook 2013, and its symptom text names Outlook 2010 A new profile that uses the same data file sends and receives without the error
Default data file not at the location the profile expects Not stated on Microsoft's page The file named on the Data Files tab is missing from its folder in File Explorer
Damaged data file Outlook cannot read the file at all Microsoft's Inbox Repair page lists "You receive a message that Outlook can't open your data file" as a situation for that tool; it does not mention 0x8004010F

The second and third rows are checks to rule out, not causes the 0x8004010F page states. They cost nothing to test before you replace a profile.

Prove the cause before changing anything

All of these only read.

  1. Write down the exact message and whether it appears when sending, receiving or both. Microsoft's page ties the code to sending or receiving email.
  2. Find the default data file. Microsoft's page gives the steps: select Start, then Control Panel; select Mail; in the Mail Setup - Outlook dialog box select Show Profiles; select the current profile and then Properties; select Data Files; on the Data Files tab in Account Settings, note the name and location of the default data file. A check mark marks the default.
  3. In File Explorer, go to the folder you noted and confirm the file is there. A new profile cannot point at a missing file.
  4. If you also want to rule out file damage, read Microsoft's Inbox Repair page before you run anything. Running SCANPST.EXE is a change, so it is not part of the read-only checks.

Example (illustrative): at contoso.com.au a user on rds01 gets "0x8004010F: Outlook data file cannot be accessed." every time she sends. On the Data Files tab the default file is C:\Users\mlee\Documents\Outlook Files\mlee@contoso.com.au.pst, and File Explorer shows the file there, 4.2 GB, changed this morning. The file is present, so the next step is a new profile that points at it.

Fix

Microsoft's page builds the new profile in three steps: locate the default data file, create the profile, and make it the default. The page describes two ways to create an IMAP or POP3 account: automatic account setup, and manual setup that attaches an existing Outlook data file. The steps below follow the manual route, because the new profile has to use the file you noted. Microsoft's page also warns that if your email server supports both IMAP and POP3, automatic account setup creates an IMAP account by default and you need the manual steps to create a POP3 account; if the server supports only POP3, automatic setup creates a POP3 account. Find out from your provider which type your mailbox uses before you build the profile. The page does not give steps for an Exchange or Microsoft 365 account, so the procedure does not cover one.

Before you create the profile, save the facts you will need to go back:

  1. Note the name of the current profile (shown on the General tab in the Mail dialog box), and whether "Always use this profile" or "Prompt for a profile" is selected there.
  2. Note the data file name and folder from step 2 above.
  3. Copy the data file to a new name in File Explorer, with Outlook closed, for example mlee-before-new-profile.pst. Do not overwrite an earlier copy.

Risk: The next steps add a new profile and then make it the default, so Outlook starts with it from the next launch. Microsoft's page does not say which settings from the old profile (signatures, views, rules) carry across, so expect to check them. The old profile stays in the list.

  1. Select Start, then Control Panel, then Mail. In the Mail Setup - Outlook dialog box, select Show Profiles.
  2. On the General tab in the Mail dialog box, select Add.
  3. In the New Profile dialog box, type a new profile name and select OK.
  4. In the Add Account dialog box, select Manually configure server settings or additional server types, then Next.
  5. In the Choose Service dialog box, select Internet E-mail, then Next.
  6. In the Internet E-mail Settings dialog box, type your account details and select Test Account Settings. Microsoft's page says to contact your internet service provider if you are unsure of the account details.
  7. Select Existing Outlook Data File, then Browse. In the Open Outlook Data File dialog box, browse to the data file you noted and select OK.
  8. Select Next. In the Test Account Settings dialog box, select Close, then Finish.

Next, make the new profile the default. On the General tab of the Mail dialog box select Always use this profile, choose the new profile in the drop-down and select OK.

To undo it: open Mail again, select Show Profiles, and restore the choice you noted: if it was "Always use this profile", select it and choose the old profile name you noted; if it was "Prompt for a profile", select that instead. Then select OK. The old profile is still in the list, and the saved copy of the data file is untouched.

If you have other .pst files, Microsoft's page describes adding each one from File, Open, Open Outlook Data File, after which it appears in the Navigation pane. The page gives no way to remove an added file again.

Confirm the fix

  • Start Outlook with the new profile and send a test message to yourself. Microsoft ties the error to sending or receiving, so test both directions.
  • Check that the Navigation pane shows the folders the user expects.
  • Open the Data Files tab again and confirm that the default data file is the file you noted.

What to watch afterwards

  • Whether the same code returns on the new profile. Microsoft's page gives no other cause, so a repeat means you need a different diagnosis, such as a support case with the exact message and the Outlook build.
  • Items and settings tied to the old profile. Compare signatures, rules and views with the old profile while it is still available.
  • The copy of the data file. Keep it until the user has used the new profile for long enough to be sure nothing is missing, then delete it with the user's agreement.

Risks and limits

These steps have not been run or lab-tested.

Microsoft's page covers Outlook 2010 and Outlook 2013 and describes IMAP and POP3 account set-up, and gives no steps for Exchange or Microsoft 365 accounts. Microsoft's page does not say whether Outlook for Microsoft 365 or Outlook 2016 and later behave the same way. A new profile does not repair a damaged or missing data file; if the file is damaged, Microsoft's Inbox Repair page describes the repair tool and the .bak file it leaves behind.

Sources