Short answer: this error often means the same mailbox has been loaded into your Outlook profile twice, once as its own account and again automatically through delegate or Full Access permissions. Remove the duplicate, turn off automapping for that mailbox, and rebuild the Outlook profile so each mailbox is added only once.
A director who runs two related businesses contacted us when classic Outlook on her remote desktop stopped opening. Every time she clicked the icon, Outlook showed “Cannot start Microsoft Outlook. Cannot open the Outlook window. The set of folders cannot be opened” and closed again. A few weeks earlier the same profile had left emails stuck in the Outbox with an “Outlook data file cannot be accessed” error. Both problems had one cause: her two work mailboxes were each added to Outlook directly, while one mailbox also gave the other delegate access, so Outlook was trying to open the same mailbox twice. Here is what we found and how to fix it.
Fixed by Ryan Colombo, Head of Operations at GCIT, with earlier work by Brendan Ramstadius and Dan Redman. Written up by Elliot Munro, CISO.
Symptoms
When you open classic Outlook for Windows, a dialog titled Microsoft Outlook appears instead of your inbox:
Cannot start Microsoft Outlook. Cannot open the Outlook window. The set of folders cannot be opened. The operation failed.

Clicking OK closes Outlook. Starting it again gives the same message. Outlook on the web usually works normally, which tells you the mailbox itself is fine and the problem is in the Outlook profile on that computer.
The same underlying fault can show up in other ways before Outlook stops opening completely:
- Emails sit in the Outbox and the Outlook Send/Receive Progress window shows Task ‘name@domain - Sending’ reported error (0x8004010F) : ‘Outlook data file cannot be accessed.’
- The Send/Receive or refresh button shows an error for one of the accounts.
- “Cannot expand the folder. The set of folders cannot be opened” when you click a second mailbox in the folder pane.
- Sent items or signatures behave differently depending on which copy of the mailbox you send from.

Affected Software
- Application: Classic Outlook for Windows (Microsoft 365 Apps, Outlook 2016, 2019 and 2021)
- Platform: Windows 10 and 11, Remote Desktop Services and Azure Virtual Desktop
- Related Services: Exchange Online mailbox permissions (Full Access, delegate access) and Autodiscover
Cause
When someone has Full Access to another mailbox, Exchange Online tells Outlook about it through Autodiscover and Outlook opens that mailbox automatically. This is called automapping. It is on by default whenever Full Access is granted, including when a mailbox owner adds a delegate through Outlook in some setups.
Problems start when the same mailbox is also added to the profile as a separate account through File > Add Account. In the case we fixed, the director’s profile contained both of her mailboxes as full accounts, plus a shared mailbox. One of her mailboxes also gave the other delegate access with automapping on, so Outlook loaded that mailbox a second time underneath the first. Two copies of one mailbox in one profile compete for the same data, and Outlook eventually fails to open its folder set at startup.

Other causes of the same message exist, such as a damaged profile, an Outlook data file that is locked by another process, or a profile pointing at an old mailbox. If none of your mailboxes are added twice, skip to the profile rebuild in step 4.
A new profile on its own does not always last. In two other cases where classic Outlook would not open (one of them with this exact message), a fresh Outlook profile got it working, but the problem came back within a day or two. One settled after a second profile rebuild, and we never found the underlying cause. The other user moved to the new Outlook for Windows, which avoided the classic Outlook error but did not repair classic Outlook. If the message keeps returning after a rebuild, check again for a mailbox that is added twice before you rebuild a third time.
Resolution
Step 1: Check whether a mailbox is loaded twice
- Close Outlook. Open Control Panel, search for Mail, open Mail (Microsoft Outlook) and select Email Accounts.
- Note every mailbox listed on the Email tab.
- Ask your administrator which mailboxes you hold Full Access or delegate permissions to. Any mailbox that appears in this list and is also granted to you with automapping will be opened twice.
Step 2: Decide how each extra mailbox should appear
Pick one method per mailbox, not both:
- Automapped (simplest): leave Full Access with automapping on, and do not add the mailbox as an account. It appears under your own mailbox in the folder pane.
- Separate account: useful for a second business’s mailbox that you send from all day and want its own Sent Items and signature for. Add it with File > Add Account, and have your administrator remove automapping so it is not loaded twice.
Step 3: Turn off automapping (administrators)
In Exchange Online PowerShell, remove the Full Access permission and add it back with automapping disabled. This keeps the access but stops Outlook adding the mailbox automatically:
Remove-MailboxPermission -Identity second.mailbox@yourbusiness.com.au -User user@yourbusiness.com.au -AccessRights FullAccess -Confirm:$false
Add-MailboxPermission -Identity second.mailbox@yourbusiness.com.au -User user@yourbusiness.com.au -AccessRights FullAccess -AutoMapping $false
If the access came from Outlook’s delegate settings, remove the delegate in File > Account Settings > Delegate Access on the mailbox owner’s Outlook and grant the permission again from the admin side with automapping off. Allow up to an hour for Autodiscover to stop offering the mailbox.
Step 4: Create a new Outlook profile
- Back in Mail (Microsoft Outlook), select Show Profiles, then Add, and give the new profile a name.
- Sign in with your primary mailbox first so it becomes the default account.
- Open Outlook with the new profile and let it finish syncing.
- Add any second mailbox you chose to keep as a separate account through File > Add Account.
- Back in Show Profiles, set Always use this profile to the new profile. Remove the old profile once you are happy everything is there.
Step 5: Put your settings back
- Re-create or re-select your signatures in File > Options > Mail > Signatures, and set the default signature for each account.
- Send a test email from each mailbox and confirm it leaves the Outbox and lands in the right Sent Items folder.
- Close and reopen Outlook to confirm it starts cleanly.
Important Notes
- Your email is not lost. The mailbox lives in Exchange Online. A new profile downloads a fresh copy, which can take a while for large mailboxes.
- On remote desktop and AVD, delete the old cache. Old .ost files in the user’s profile container take up space. Remove them after the new profile is working.
- Sent items for shared mailboxes. When you send as a mailbox that is automapped, the sent copy goes to your own Sent Items by default. Your administrator can change this per mailbox with
Set-Mailbox -MessageCopyForSendOnBehalfEnabled $true -MessageCopyForSentAsEnabled $true. - Safe mode is only a test. If
outlook.exe /safealso fails with the same message, add-ins are not the cause and the profile is the place to look.
Related Resources
- Microsoft Learn: Remove automapping for a shared mailbox
- Microsoft Support: Create an Outlook profile
- Microsoft Learn: Add-MailboxPermission
- How to Connect to Exchange Online PowerShell
- Fix: Microsoft Teams Meeting Add-in Causing Outlook to Crash
- Fix: “Your Mailbox Is Almost Full” in Microsoft 365 Outlook
- Microsoft 365 support and management from GCIT
- Fix: Delegate Can’t Send on Behalf or Send As in Outlook
If Outlook will not open, or you need help setting up mailboxes and permissions across more than one business, get in touch with our team.