How to Fix CAA50021 Error Code in Microsoft 365 Apps?
The Error CAA50021, Number of Retry Attempts Exceeds Expectations, occurs when attempting to log into Microsoft 365 applications. This error can appear in almost all Microsoft 365 applications and often occurs when a device fails to register in the Azure AD Admin Center during a user sign-in attempt.
This issue mainly arises when one of the services, Mobile Device Management for Microsoft 365 or Microsoft Intune, is not enabled from the Azure AD Admin Center. However, this may not always be the case, as other factors such as corrupted cache files and account problems could also trigger this error. Stay with us until the end to resolve error code CAA50021.
Before making any changes to your PC, ensure you are not connected to any VPN, as this could prevent logging into office applications. Additionally, consider restarting your system before proceeding with the solutions outlined below.
1. Link Your Device With Azure AD
If your device is not properly linked with Azure AD, follow these steps to check and ensure it is properly connected:
- Open Settings using the Win + I keys simultaneously.
- Navigate to Accounts from the left pane.
- Select Access Work or School.
- If you are already connected, click Disconnect and then reconnect. If not, click Connect and follow the instructions to link your account with Azure AD.
- If the problem persists, disconnect your account from the Access Work or School Settings, delete your device from the Azure AD Admin Center, and try again.
2. Allow Users to Register Their Devices with Azure AD
This step requires admin access. If you are not an admin, contact your admin to proceed. Users can usually register their devices with Azure AD if Mobile Device Management for Microsoft 365 or Microsoft Intune is enabled.
- Log in to the Azure AD Admin Center.
- Go to Devices > Device settings.
- Enable the option for users to register their devices with Azure AD and verify if the issue is resolved.
3. Re-register Your Device
If your device registration has expired, it needs to be re-registered. This action must be performed by an admin. If you are not an admin, please contact your admin.
- Press the Win + R keys simultaneously.
- Type cmd and press Enter to open the Command Prompt.
- Paste the following commands one by one, pressing Enter after each.
dsregcmd /leave dsregcmd /status
- Close the command prompt.
- Open the Start Menu and type Task Scheduler. Press Enter to open it.
- Expand Task Scheduler Library > Microsoft > Windows.
- Find and select Workplace Join. Then, click Enable, followed by Run.
- Restart your computer to see if the error has been resolved.
4. Repair the Office App
Repairing the application files of your Office application can resolve issues caused by corrupted files.
- Press the Win key and type Add or Remove Program.
- Press Enter to access the Apps & Features Settings.
- Locate the Office App, click the three dots, and select Advanced Options.
- Scroll to Reset and click Repair.
- If the error still occurs, consider resetting the app.
5. Clear the Microsoft Teams Cache
- Ensure Microsoft Teams is not running in the background.
- Press the Win + R keys and type %appdata%\Microsoft\Teams in the Run Window.
- Delete all files within the Microsoft\Teams folder to fix the error.
6. Reinstall the Office App
If the issue persists, consider reinstalling the Office app. This removes corrupted files that might cause the error.
- Press the Win + I keys to open Windows Settings.
- Go to Apps > Installed Apps.
- Find the Office App, click the Three Dots, and select Uninstall > Uninstall.
- After uninstallation, reinstall the app and check if the problem is resolved.
If the error continues, it may be necessary to contact Microsoft Office Support for further assistance.