Outlook data file cannot be accessed (0x8004010F): how to fix it without losing mail
Short answer
Error 0x8004010F means classic Outlook can't open the data file its profile points to. Microsoft's fix is a new Outlook profile. If it returns on a Microsoft 365, Exchange or IMAP account, delete that account's .ost and let it resync. On POP, back up your .pst first, because it's your only copy.
On this page
“Outlook data file cannot be accessed” (error 0x8004010F) means classic Outlook can’t open the data file its profile points to, because the profile is damaged or the file has moved, broken or gone. Microsoft’s fix is to create a new Outlook profile. If the error comes back on a Microsoft 365, Exchange or IMAP account, close Outlook, delete that account’s .ost file and let Outlook download a fresh copy. If you use a POP account, back up your .pst file before you change anything, because it’s the only copy of your mail.
How we put this together: this guide is research, not a test. It’s built from Microsoft’s article on this error, its data file and OneDrive documentation, and Microsoft Q&A threads from October 2025 to May 2026 where people confirmed what fixed it, all listed under Sources. It covers classic Outlook for Windows, and what changes in new Outlook.
What does error 0x8004010F mean?
Microsoft’s article says it plainly: “This issue is caused by the corrupted Outlook profile.” You’ll see it as “Outlook data file cannot be accessed” or “The operation failed. An object could not be found”, often in the Send/Receive box when mail won’t send.
Classic Outlook keeps each account’s mail in a data file, and every profile points at one default file. When Outlook can’t open that file, you get this error. The profile might be damaged, the file might have moved or been replaced, or the file itself might be broken.
First: is your mail safe?
That depends on your account type, and it decides which fixes are safe for you:
| Account type | Data file | Where it is | Is it the only copy? |
|---|---|---|---|
| Microsoft 365, Exchange, Outlook.com, IMAP | .ost | C:\Users\you\AppData\Local\Microsoft\Outlook | No. It’s a synced copy of the server, and Microsoft says you don’t need to back it up |
| POP | .pst | Documents\Outlook Files | Yes. Back it up before anything else |
A quick check: if your mail shows up in webmail, it’s still on the server. One thing an .ost can hold that the server doesn’t is mail stuck in your Outbox that never sent, so copy anything important out of the Outbox before deleting an .ost.
To see which file your profile uses, open File, Account Settings, Account Settings, then the Data Files tab. If Outlook won’t open, go to Control Panel, Mail, Show Profiles, select the profile, then Properties and Data Files. The file with the tick is the default.
How to fix “Outlook data file cannot be accessed”
1. Back up a .pst before you touch it
If you use POP, close Outlook and copy the .pst file to another drive or a USB stick. Skip this for an .ost: it rebuilds from the server.
2. Rule out add-ins
Start Outlook in safe mode, which turns off add-ins. Press Windows+R, type outlook.exe /safe and press Enter. If the error goes away, an add-in is involved, so turn add-ins off one at a time to find it.
3. Create a new Outlook profile
This is Microsoft’s own fix, and it solved the two-mailbox case in a May 2026 Microsoft Q&A thread:
- Close Outlook and open Control Panel, Mail, Show Profiles.
- Click Add, name the profile, and add your account with the automatic setup.
- Back on the profile list, choose “Always use this profile”, select the new one and click OK.
- Open Outlook. A Microsoft 365, Exchange or IMAP account downloads a fresh copy of your mail.
For a POP account, bring your old mail across. Either set the account up manually and choose “Existing Outlook Data File”, then browse to your .pst, or open the .pst afterwards with File, Open & Export, Open Outlook Data File. If you have two mailboxes and the new profile fails too, try adding them in the other order, as the person in that May 2026 thread did.
4. If it comes back: delete the .ost and let it resync
For Microsoft 365, Exchange and IMAP accounts, Microsoft’s repair article says you can delete the .ost, and Outlook builds a new one next time it opens. In another May 2026 thread, on a Microsoft 365 Business account, a new profile alone didn’t help. What worked was a clean profile, removing and re-adding the mailbox, and deleting every .ost linked to it, then letting Outlook resync.
Close Outlook first. Check the Data Files tab for old or duplicate .ost entries, then delete the matching files from C:\Users\you\AppData\Local\Microsoft\Outlook. Expect the first resync of a big mailbox to take a while.
5. For a .pst, run the Inbox Repair tool
With Outlook closed, run SCANPST.EXE. Microsoft lists it in C:\Program Files (x86)\Microsoft Office\root\Office16 for Outlook 2016 and 2019, and 64-bit Office keeps it in the same folder under C:\Program Files. Browse to your .pst, click Start, then Repair. Microsoft says it makes a backup first, may need several runs and can’t recover everything. It doesn’t work on an .ost, so use step 4 for those.
6. Get the .pst out of OneDrive
If the data file sits in a folder OneDrive syncs, such as Documents with backup turned on, that can be the cause. Microsoft says .pst files sync less often there, and if OneDrive’s folder backup moved your Documents folder, Outlook may still look in the old place and show errors. Move the .pst to a local folder OneDrive doesn’t sync, then point the profile at it from the Data Files tab.
7. Still failing? It may be the mailbox
If a brand-new profile and a fresh .ost still fail, the problem may be on the server side. In a December 2025 thread, reinstalling Office and resetting the PC didn’t fix it, and the Microsoft moderator pointed to the mailbox itself. Use Outlook on the web in the meantime, and give your Microsoft 365 admin or Microsoft support your Outlook version, account type and what you’ve tried.
Using new Outlook? This error works differently
New Outlook for Windows comes installed with Windows 11 from version 24H2, so you may have it without choosing it. It doesn’t use profiles or an .ost file. A Microsoft Q&A answer from August 2026 explains it keeps offline copies through Settings, General, Offline, where you pick how many days of mail to keep (7, 30, 90 or 180). SCANPST and the Control Panel Mail settings don’t apply to it, and we found no Microsoft documentation of 0x8004010F in new Outlook.
New Outlook can open a .pst under Settings, Files, Outlook Data Files, with conditions. Classic Outlook must also be installed, the account needs a Microsoft 365 subscription, and it doesn’t work on ARM PCs. One user with Office Home 2024 got “Outlook Data Files require a Microsoft 365 subscription” and had to install an edition that includes classic Outlook. Classic Outlook stays supported until at least 2029, so you can keep using it.
What to skip
The top-ranking pages we read for this error sell their own paid “PST repair” or “OST converter” tool, and you don’t need one for an .ost: the server already has your mail. They also tell you to turn off your antivirus or firewall, which Microsoft’s article for this error doesn’t mention. And don’t reinstall Office or Windows first: in that December 2025 thread, neither fixed it.
Check your Office version while you’re at it. Outlook 2019’s support ended on 14 October 2025, and Office 2021’s on 13 October 2026, so neither gets fixes any more.
Frequently asked questions
Will a new Outlook profile delete my emails?
Not for Microsoft 365, Exchange, Outlook.com or IMAP: your mail stays on the server and downloads again. For POP, keep your .pst and attach it to the new profile, since it holds your only copy.
Where is my Outlook data file?
An .ost is in C:\Users\you\AppData\Local\Microsoft\Outlook, and a .pst is usually in Documents\Outlook Files. The Data Files tab under Account Settings shows the exact path.
Can SCANPST repair an .ost file?
No. Microsoft says to delete the .ost instead, and Outlook downloads a new one from the server.
Can OneDrive cause this error?
Yes, indirectly. If OneDrive’s folder backup moved your .pst, Outlook can keep looking in the old location. Move the file to a local folder and point Outlook at it.
How do I move my .ost file to another drive?
Outlook greys out the Browse button for existing profiles. Microsoft’s workaround is to copy the .ost to the new place, create a new profile, and choose the file under More Settings, Advanced, Outlook Data File Settings.
What to do now
Open Control Panel, Mail, Show Profiles, and check your account type in the Data Files tab. On Microsoft 365, Exchange or IMAP, go straight to step 3 and make a new profile. On POP, copy your .pst somewhere safe first, then do the same.
Sources
- Microsoft Learn: Error 0x8004010F when sending or receiving email and cannot change the location of an .ost file
- Microsoft Support: Repair Outlook data files, create an Outlook data file, open a .pst in Outlook and OneDrive restrictions and limitations
- Microsoft Learn on new Outlook: deploying new Outlook and stages of migration to new Outlook
- Microsoft Q&A threads from October 2025, December 2025, March 2026, May 2026 (.ost fix), May 2026 (two mailboxes), new Outlook’s cache and new Outlook and .pst files
- Microsoft lifecycle pages for Outlook 2019 and Office 2021
Changelog
24 Oct 2026: rewritten from Microsoft’s documentation and 2025 to 2026 Q&A threads, with the account-type check and a section on new Outlook. It replaces a guide first published on 9 March 2018.