Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix "The Set of Folders Cannot Be Opened" Error

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If you see the error “The set of folders cannot be opened” in Microsoft Outlook, it usually means Outlook’s data files (PST/OST) are corrupted, locked by another process, or the profile is damaged. The quickest fix is to restart Outlook and your computer, then repair the data file using the built-in Inbox Repair Tool (Scanpst.exe). If that doesn’t work, you may need to recreate your Outlook profile. Below is a step-by-step guide to resolve this issue.

What You'll Need

  • Access to your computer with administrator rights (to run repair tools and make system changes).
  • Your Outlook email account credentials (password, server settings) if you need to recreate your profile.
  • Knowledge of where your Outlook data files are stored (usually in %LocalAppData%\Microsoft\Outlook for OST files, or %UserProfile%\Documents\Outlook Files for PST files).

Step-by-Step

  1. Close Outlook and restart your computer. This clears any temporary file locks that might be causing the error. After restarting, open Outlook again. If the error persists, continue.
  2. Run Outlook in Safe Mode. Press Windows + R, type outlook.exe /safe, and press Enter. If Outlook opens without the error, the issue is likely caused by an add-in. Go to File > Options > Add-ins, disable all COM add-ins, then restart Outlook normally. If Safe Mode doesn’t help, close Outlook and proceed.
  3. Locate your Outlook data file. In Outlook, go to File > Account Settings > Account Settings, select your email account, and click Change Folder (or More Settings > Advanced). Note the path to your .pst or .ost file. Close Outlook.
  4. Run the Inbox Repair Tool (Scanpst.exe). This tool repairs corrupted PST files. For PST files, navigate to the Outlook installation folder (usually C:\Program Files\Microsoft Office\root\Office16 for 64-bit Office, or C:\Program Files (x86)\Microsoft Office\root\Office16 for 32-bit). Find SCANPST.EXE, double-click it, browse to your PST file, and click Start. Follow the prompts to repair. For OST files (used with IMAP or Exchange accounts), you cannot directly repair them; you can delete the OST file and let Outlook recreate it (see step 6).
  5. If the PST repair doesn’t fix it, recreate your Outlook profile. Open Control Panel > Mail (search for “Mail” in the Control Panel). Click Show Profiles, select your profile, and click Remove (this doesn’t delete your email data, just the profile). Then click Add to create a new profile, enter your email account details, and set it as the default profile. Launch Outlook and see if the error is gone.
  6. For OST files, delete the file and let Outlook rebuild it. Close Outlook. In File Explorer, go to %LocalAppData%\Microsoft\Outlook and find the .ost file matching your email address. Rename it (e.g., add .old) or delete it (this only removes the offline cache, not your server data). Restart Outlook; it will recreate the OST file by syncing from the server. This often resolves corruption.
  7. Repair Office installation. If the above fails, repair Office itself. Go to Control Panel > Programs and Features, select Microsoft Office, and click Change. Choose Quick Repair first, and if that doesn’t work, try Online Repair. This will fix missing or corrupted Outlook components.

Common Mistakes

  • Running Scanpst on an OST file. Scanpst is only for PST files. Running it on an OST can cause further issues.
  • Deleting the PST file instead of repairing. Deleting a PST deletes all your emails, contacts, and calendar items permanently. Only delete an OST file, which is a cached copy.
  • Not closing Outlook before running repair tools. If Outlook is still running, the repair tool may fail because the file is locked.
  • Forgetting to back up your PST. Before running Scanpst, make a copy of the PST file to a safe location in case the repair fails.

Tips

  • Keep Outlook updated. Microsoft regularly releases fixes for known issues. Go to File > Office Account > Update Options > Update Now to ensure you have the latest updates.
  • Use a new profile as a test. If recreating the profile fixes the issue, you can migrate your old data by importing from the old PST (File > Open & Export > Import/Export).
  • Reduce PST file size. Large PST files (over 20 GB) are more prone to corruption. Archive old emails regularly via File > Tools > Mailbox Cleanup.
  • Enable automatic archiving. Go to File > Options > Advanced and set AutoArchive to run periodically to keep your mailbox lean.

Troubleshooting

If the error persists after all steps, try the following in order:

  1. Check if the error occurs in a different Windows user account. Create a new Windows user profile and try Outlook there. If it works, your original user profile may be corrupted.
  2. Disable antivirus or firewall temporarily. Some security software can lock Outlook data files. If disabling them fixes the issue, add Outlook to the exceptions list.
  3. Run Windows System File Checker. Open Command Prompt as administrator and run sfc /scannow. This repairs corrupted system files that might affect Outlook.
  4. Check for conflicting add-ins. Even after disabling add-ins, some may re-enable. Use the Add-in Manager in Outlook to permanently remove suspicious add-ins.
  5. If you use an Exchange or Microsoft 365 account, check the server status. Sometimes the error is due to server issues. Visit the Microsoft 365 Service Health Dashboard (if you have admin access) or contact your IT admin.
  6. If nothing works, consider creating a new data file and importing your old data. Create a new PST via File > New > Outlook Data File, then use File > Open & Export > Import/Export to import from the old PST. This is a last resort but often resolves stubborn corruption.

Frequently Asked Questions

Will deleting the OST file delete my emails?

No. The OST file is a cached copy of your mailbox stored on the server. Deleting it only removes the local cache; Outlook will re-download your emails from the server when you restart.

Can I run Scanpst on an OST file?

No. Scanpst is only for PST files. For OST files, the recommended fix is to delete the OST file and let Outlook recreate it.

What causes “The set of folders cannot be opened”?

Common causes include a corrupted PST/OST file, a damaged Outlook profile, a locked file due to a crash, or conflicts with add-ins or antivirus software.

Will recreating my Outlook profile delete my emails?

No, recreating the profile only resets the account configuration. Your emails remain in your PST file or on the server. You may need to re-enter your password and configure settings.

How long does the Inbox Repair Tool take?

It depends on the size of your PST file. A small file may take a few minutes, while a large one (10+ GB) can take 30 minutes or more. Be patient and don’t interrupt the process.

What if I don’t have a PST file, only an OST?

If you use an IMAP or Exchange account, you likely have an OST file. In that case, skip the Scanpst step and follow the steps to delete the OST file and recreate your profile.