outlook Code PST Access Error

How to Fix Outlook PST Access Error

Diagnostic Procedures

  • 1 Understand the cause of Outlook PST Access Errors
  • 2 Adjust NTFS File Permissions for the PST file
  • 3 Relocate PST files off Network Shares and Cloud Drives
  • 4 Run the Inbox Repair Tool (SCANPST.exe)
  • 5 Rebuild PST associations on macOS
  • 6 Summary checklist for PST access errors

How to Fix Outlook PST Access Error

When launching Outlook or expanding a personal folder archive, you may receive the following error: “Outlook data file cannot be accessed (0x8004010f)” or “An unexpected error is preventing access to this file. Use a disk utility to check the disk for errors.”

This error indicates that Outlook cannot read from or write to the Outlook Data File (.pst). Unlike server-synced OST caches, PST files store archive and POP3 messages locally. If access is lost, local email history is locked.


1. What Causes Outlook PST Access Errors?

PST access is blocked by three main factors:

  • Insufficient File System Permissions: The current Windows user account does not possess read/write permissions for the folder containing the .pst file (often after system migrations).
  • PST on OneDrive or Network Share: Storing PST files on network paths, NAS drives, or real-time cloud-synced folders (OneDrive, Dropbox) is unsupported by Microsoft. It creates file locks, sync conflicts, and eventual database corruption.
  • Internal File Structure Damage: Database corruption within the PST file table of contents or header sectors.

2. Adjust NTFS File Permissions for the PST file

If the PST file has restricted permissions, Outlook will crash or fail to launch. You must grant your current Windows user profile Full Control over the target folders.

Step 1: Force Close Outlook

Run the following command in Command Prompt to release active file handles:

taskkill /f /im outlook.exe

Step 2: Grant Permissions via Icacls

Open Command Prompt as Administrator and navigate to your Outlook files folder (typically under Documents), then reset ownership:

cd /d "%userprofile%\Documents\Outlook Files"
icacls * /grant %username%:F /t

This grants the active Windows user full read, write, and execute permissions over all local archive databases.


3. Relocate PST files off Network Shares and Cloud Drives

If your PST file is located in a OneDrive folder or a network path, move it to a local folder to prevent synchronization collisions.

  1. Close Outlook.
  2. Cut the .pst file from your OneDrive folder (e.g., C:\Users\<username>\OneDrive\Documents\Outlook Files) and paste it into a local, non-sync directory (e.g., C:\Users\<username>\Documents\Outlook Files).
  3. Open Control PanelMailData Files….
  4. Double-click your account, select the new path, and click OK to relink the database.

4. Run the Inbox Repair Tool (SCANPST.exe)

If permissions are correct but Outlook still cannot access the database, scan the file structure for errors using Microsoft’s native repair tool.

Step 1: Open the Microsoft Office Folder

The Inbox Repair Tool location depends on your Office installation. Open Command Prompt and launch it using the standard Office 365 / Office 2019 Click-to-Run path:

start "" "C:\Program Files\Microsoft Office\root\Office16\SCANPST.EXE"

[!NOTE] If you are using a 32-bit version of Office on a 64-bit OS, run: start "" "C:\Program Files (x86)\Microsoft Office\root\Office16\SCANPST.EXE"

Step 2: Run the Scan and Repair

  1. In the Microsoft Outlook Inbox Repair Tool, click Browse and select your .pst file.
  2. Click Start to run a diagnostic analysis.
  3. If errors are found, check the box for “Make backup of scanned file before repairing” and click Repair.

5. Rebuild PST Associations on macOS

Outlook for Mac does not use PST files for active folders. However, users can import PST archives. Permission blocks on macOS will halt this process.

Step 1: Grant POSIX Permissions on Mac

If you copied a PST file from a Windows computer, grant the file read/write permissions via the Terminal:

sudo chmod 777 ~/Downloads/archive.pst
sudo chown $(whoami) ~/Downloads/archive.pst

Step 2: Import the PST File

  1. Open Microsoft Outlook for Mac.
  2. Click FileImport….
  3. Select Outlook for Windows archive file (.pst) and click Continue.
  4. Browse to the local path of your permission-corrected .pst file, select it, and click Import.
  5. Once imported, the emails will appear under the On My Computer folder structure.

6. Summary Diagnostics Checklist

Diagnostics StepAction / PathExpected Outcome
Kill Lock HandlesRun taskkill /f /im outlook.exeUnlocks system resources associated with the PST.
Apply Permissions (Win)Run icacls * /grant %username%:F /tRestores standard Windows Read/Write NTFS privileges.
Relocate DatabasesMove PST out of OneDrive/Network shares to local driveEliminates locking issues caused by cloud background sync.
Run Inbox RepairStart SCANPST.EXE and run database verificationResolves page table errors and header file corruption.
Apply Permissions (Mac)Run chmod 777 on the import fileEnables the Mac import wizard to parse raw data streams.