Microsoft Excel, Word & PowerPoint • 3 min read ✓ Verified November 2026

How do I fix Microsoft Office error 0x80070005 or CAA50021 ("Something went wrong" sign-in error)?

Emily Watson
Written & Audited by Microsoft Systems & Exchange Expert • AnswerDesk Vetted Expert • Updated
⚡ Quick Expert Answer • Microsoft Excel, Word & PowerPoint

Sign-in error CAA50021 / 0x80070005 happens when the Windows Web Account Manager (WAM) broker loses device registration. Go to Settings > Accounts > Access work or school, disconnect and reconnect your Microsoft 365 account (or toggle Accounts used by other apps), clear %localappdata%\Microsoft\TokenBroker\Cache, and restart Office.

Before You Start: Quick Pre-Check

  • Sign in with a Windows Administrator account so elevated Command Prompt, PowerShell, and Settings changes apply cleanly.
  • Save open documents and create a quick System Restore point before editing services, drivers, or registry keys.
  • Note the exact hexadecimal error code (e.g., 0x800xxxxx) or Event Viewer timestamp if the error repeats.

Why This Issue Happens

Sign-in error CAA50021 / 0x80070005 happens when the Windows Web Account Manager (WAM) broker loses device registration.

This issue falls under Microsoft Excel, Word & PowerPoint (Microsoft & Windows). Confirming the exact trigger before making changes prevents unnecessary resets and helps preserve your data and account standing.

Step-by-Step Resolution Protocol

Step 1
Primary Resolution Step

Go to Settings >.

%localappdata%\Microsoft\TokenBroker\Cache
Step 2
Action Step 2

Accounts >.

Step 3
Action Step 3

Access work or school, disconnect and reconnect your Microsoft 365 account (or toggle Accounts used by other apps), clear %localappdata%\Microsoft\TokenBroker\Cache.

Step 4
Secondary Recovery & Fallback

Restart Office.

How to Verify the Fix Worked

  1. Restart Windows fully (Start > Power > Restart — not Shut Down, which uses Fast Startup caching) and confirm the error no longer appears.
  2. Open Windows Update or Event Viewer (Windows Logs > System / Application) and verify there are no fresh red critical errors for the affected component.
  3. Confirm dependent apps, drivers, or Microsoft 365 services sign in and sync normally without prompts.

What if the issue still persists? If the same stop code or error persists after DISM/SFC repair and a full reboot, boot into Safe Mode with Networking or test under a new local Windows user profile to isolate profile corruption vs. failing storage/RAM hardware.

⚠️ Expert Safety & Verification Advisory: Always download Windows updates, ISOs, and Visual C++ redistributables strictly from official Microsoft portals (microsoft.com). Back up personal files and verify your 48-digit BitLocker Recovery Key at account.microsoft.com/devices/recoverykey before BIOS or partition changes.

Frequently Asked Questions

Will fixing "Microsoft Office error 0x80070005 or CAA50021 ("Something went wrong" sign-in error)" delete my personal files, data, or account history?

Standard Windows diagnostic fixes (DISM, SFC, cache resets, and service restarts) repair operating system files without deleting personal Documents, Desktop files, or photos. Only avoid selecting "Remove everything" during a Windows Reset unless you have an external backup.

How long does it normally take to resolve this Microsoft & Windows issue?

Most Windows service, network, and Microsoft 365 cache repairs take 5–15 minutes. Full DISM/SFC image scans or an in-place Windows repair upgrade typically take 20–45 minutes depending on SSD speed and download bandwidth.

What should I do if the problem returns after following these steps?

If the same stop code or error persists after DISM/SFC repair and a full reboot, boot into Safe Mode with Networking or test under a new local Windows user profile to isolate profile corruption vs. failing storage/RAM hardware. You can also connect directly with a certified Microsoft & Windows expert 24/7 on AnswerDesk for guided 1-on-1 troubleshooting.

Did this diagnostic guide solve your issue?

Let us know if your issue is resolved, or get connected to an active Microsoft & Windows expert in seconds.

Thank you for your feedback! We're glad this resolved your issue.