Outlook error 0x8004060c typically appears when you try to send or receive email, and it points to a problem with your local data file (.pst or .ost). The error often reads: “Task ’email@example.com – Sending’ reported error (0x8004060c): ‘The file C:\Users\…\Outlook\Outlook.pst is in use and could not be accessed.'” This guide walks you through the most effective fixes, from simple restarts to repairing your data file and creating a new profile.
What You’ll Need
- Access to your Windows desktop or laptop (Outlook for Microsoft 365, Outlook 2019, 2016, 2013, or 2010).
- Administrator rights on the computer (to run repairs and modify files).
- Your email account password (in case you need to recreate your profile).
- About 15–30 minutes of time, depending on the size of your mailbox.
Step-by-Step
- Close Outlook completely and restart your computer. This clears any temporary file locks. After restarting, reopen Outlook and try sending a test email. If the error persists, continue to the next step.
- Run Outlook in Safe Mode. Press Windows + R, type
outlook.exe /safe, and press Enter. If Outlook opens without the error, a third-party add-in is likely the culprit. Go to File > Options > Add-ins, select COM Add-ins from the Manage dropdown, click Go, and uncheck all add-ins. Restart Outlook normally. If the error is gone, re-enable add-ins one by one to find the problem one. - Check if the Outlook data file is marked as read-only. Close Outlook. In File Explorer, navigate to
%localappdata%\Microsoft\Outlook(or%userprofile%\Documents\Outlook Filesfor older versions). Right-click your .pst or .ost file, select Properties, and under the General tab, ensure Read-only is unchecked. Click OK and restart Outlook. - Repair your data file with the Inbox Repair tool (SCANPST.EXE). Locate the tool in your Office installation folder. For 64-bit Office, it’s usually at
C:\Program Files\Microsoft Office\root\Office16\SCANPST.EXE(orOffice15for 2013). For 32-bit Office, it’s underC:\Program Files (x86)\Microsoft Office\.... Run the tool, click Browse to select your .pst file (the same path from Step 3), then click Start. If it finds errors, click Repair. After repair, reopen Outlook. - Recreate your Outlook profile. If repair doesn’t work, close Outlook. Go to Control Panel > Mail (search “Mail” in the Control Panel). Click Show Profiles, select your profile, and click Remove. Then click Add to create a new profile, enter your email address, and let Outlook set it up automatically. You’ll need your email password. After setup, your emails will re-download (or sync) from the server.
- Check for Windows and Office updates. Go to Settings > Update & Security > Windows Update and install any pending updates. Also open Outlook, go to File > Office Account > Update Options > Update Now. Restart Outlook after updates.
- Disable antivirus email scanning (temporarily). Some antivirus programs lock Outlook data files. Temporarily disable the email scanning feature (not the whole antivirus) and test. If the error disappears, add an exception for Outlook in your antivirus settings.
- Create a new Windows user profile. If nothing else works, the issue may be with your Windows user account. Create a new local administrator account, log into it, and set up Outlook there. If it works, you can migrate your data.
Common Mistakes
- Skipping the restart. Many users go straight to complex repairs, but a simple restart often resolves the file lock. Always try it first.
- Repairing the wrong file. Make sure you’re repairing the .pst file that Outlook is actually using. Check in Outlook: File > Account Settings > Account Settings > Data Files to see the path of your active data file.
- Not closing Outlook before running SCANPST. The repair tool cannot work if Outlook is still running. Always close Outlook completely (check the system tray for the Outlook icon).
- Deleting the .pst file. Never delete your data file to “fix” the error. You will lose all your emails, contacts, and calendar items permanently. Always repair or create a new profile first.
- Ignoring add-ins. Add-ins are a common cause but often overlooked. Running in Safe Mode is a quick diagnostic.
Tips
- Keep a backup. Regularly export your mailbox to a .pst file (File > Open & Export > Import/Export) and store it on an external drive or cloud storage.
- Use a new .pst file. If your current .pst is corrupted beyond repair, you can create a new one in Outlook (File > Account Settings > Data Files > Add) and then import your old data from the repaired .pst.
- Compact your mailbox. Over time, .pst files can become bloated. Go to File > Account Settings > Account Settings > Data Files, select your file, click Settings, then Compact Now to reduce its size and improve performance.
- Run SCANPST regularly. If you experience frequent errors, run the Inbox Repair tool every few months as preventive maintenance.
Troubleshooting
If the error persists after all steps:
- Check if you have multiple Outlook processes running. Open Task Manager (Ctrl+Shift+Esc), look for any Outlook processes, and end them all before trying again.
- Verify your email account settings. Go to File > Account Settings &strong> and ensure your incoming/outgoing server names and ports are correct. Contact your email provider for the exact settings.
- Try a different email protocol. If you’re using POP3, switch to IMAP (if your provider supports it). This can avoid file corruption issues.
- Use Microsoft Support and Recovery Assistant. Download and run the Microsoft Support and Recovery Assistant tool. It can diagnose and fix many Outlook issues automatically.
- If you have a large mailbox (over 50 GB), consider archiving old emails to reduce the size of your .pst file, which can prevent future errors.
- As a last resort, uninstall and reinstall Microsoft Office. This will not delete your data files, but you’ll need to reconfigure your email accounts.
Frequently Asked Questions
What does error 0x8004060c mean?
It means Outlook cannot access your local data file (.pst or .ost) because the file is locked by another process, is corrupted, or has incorrect permissions. The error typically appears when sending or receiving emails.
Will I lose my emails if I repair the .pst file?
No, the Inbox Repair tool (SCANPST) is designed to fix the file without deleting your emails. However, it’s always wise to back up your .pst file before running any repair.
How do I find my .pst file location?
In Outlook, go to File > Account Settings > Account Settings > Data Files. Select your account and click Open File Location. This opens the folder containing your .pst file.
Can I prevent this error from happening again?
Yes, regularly close Outlook properly, keep your Office updated, disable unnecessary add-ins, and avoid storing your .pst file on a network drive or cloud-synced folder (like OneDrive) as that can cause file locking issues.
Why does the error occur only when sending emails?
It often happens when the send/receive operation tries to write to the .pst file while it’s locked by another process, such as a backup, antivirus scan, or another Outlook instance.
Is this error related to my email server?
No, 0x8004060c is a local file access error. It’s not a server-side issue. However, if your mailbox is very large, the server might time out, but the error code itself is local.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Desktop Search Widget on Windows 11
- How to Build a Computer Stand (Saturday Workshop)
- Customize Touch Keyboard Themes in Windows 11
- Excel Pivot Table: Change Multiple Field Settings
- WhatsApp: How to Block Unknown Numbers
- How to Exit Vi in Linux: A Simple Guide