"Cannot start Microsoft Outlook. Cannot open the Outlook window"
Outlook fails at launch with a dialog and never draws a window. In most cases the mailbox is fine and the damage is to the small local files that describe the layout — which are disposable.
What you see
A dialog appears within a second or two of launching: "Cannot start Microsoft Outlook. Cannot open the Outlook window. The set of folders cannot be opened." Sometimes the message names an invalid XML file instead. Outlook on the web works normally for the same account.
What is actually wrong
Outlook keeps the navigation pane layout in a small XML file beside the profile. A crash or a full disk can leave it half written, and Outlook will not start rather than ignore it. Behind that, the same message is produced by a damaged profile, an OST that cannot be opened, or an add-in that fails during startup.
Codes and articles
Start here — find out which fix applies
A script that runs the 3 inspection commands from the write-up below and prints what each one returned. It reads the machine and changes nothing — every command that could write, delete, start or stop is excluded from it by construction. Run this first, then pick the fix its output points at.
Fixes (3)
Reset the navigation pane
Always try this first. It takes a minute and it is the cause most of the time.
Close Outlook completely, including any process left running.
Get-Process OUTLOOK -ErrorAction SilentlyContinue | Stop-Process -ForceLook at the navigation pane file before deleting it, so you know whether it is the problem.
Get-ChildItem "$env:APPDATA\Microsoft\Outlook" -Filter '*.xml' | Select-Object Name, Length, LastWriteTimeA zero-length or truncated profilename.xml is the signature of this fault. If the file is a sensible size and dated before the problem started, the navigation pane is probably not the cause and you should move on rather than deleting it.
Start Outlook with the reset switch.
outlook.exe /resetnavpaneIf that does not help, reset the views as well — a damaged view definition produces the same dialog.
outlook.exe /cleanviews
Find the add-in that is failing at startup
Outlook starts in safe mode but not normally. Safe mode loads no add-ins, so this narrows it to one of them.
Start Outlook in safe mode to get a working window.
outlook.exe /safeList what is registered to load, so you know what you are bisecting.
Get-ChildItem 'HKCU:\Software\Microsoft\Office\Outlook\Addins','HKLM:\SOFTWARE\Microsoft\Office\Outlook\Addins' -ErrorAction SilentlyContinue | ForEach-Object { [pscustomobject]@{ Addin = $_.PSChildName; LoadBehavior = (Get-ItemProperty $_.PSPath).LoadBehavior } }LoadBehavior 3 means load at startup, 2 means loaded once and disabled after a failure, and 0 means off. An add-in sitting at 2 has already crashed Outlook at least once and is a strong suspect.
In safe mode, go to File → Options → Add-ins → Go, and clear every COM add-in. Restart normally to confirm Outlook now opens.
Re-enable them one at a time, restarting between each, until the failure returns. The last one enabled is the culprit.
Leave the culprit disabled and take it up with whoever supplies it. Update it before assuming it must stay off — this is usually fixed in a later build.
Build a new mail profile
The pane reset did not help and safe mode fails too, or the mailbox has been moved between servers or tenants.
Record the account details and the path of any PST files in use before you start.
Get-ChildItem 'HKCU:\Software\Microsoft\Office\16.0\Outlook\Profiles' | Select-Object PSChildNameLocal PST archives are not carried into a new profile, and their absence afterwards is the thing most often reported as data loss. Note the paths now and re-attaching them later is two clicks.
Open the Mail control panel and create a new profile rather than repairing the existing one.
control mlcfg32.cplSet Outlook to prompt for a profile, so you can switch back to the old one if the new one is worse.
Add the account and let autodiscover configure it. Do not enter server settings by hand for a Microsoft 365 mailbox.
Re-attach any PST files via File → Open & Export → Open Outlook Data File.
Once the new profile is proven over a day or so, set it as default and remove the old one.
Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.