Fix Office 365 E5 Phone Authentication Error Code 40301
Question details
The user is encountering an authentication error preventing the setup of an Office 365 E5 subscription.

- Product
- Office 365 E5
- Device & OS
- not provided
- Scenario
- Setting up a new Microsoft Office 365 E5 developer or enterprise subscription that requires phone verification.
- Observed behavior
- The setup process fails during the phone verification stage, returning an undefined authentication error with a correlation ID and error code 40301.
Before proceeding, ensure you have a secondary mobile phone number available that has not been heavily used for other Microsoft accounts, and keep the correlation ID displayed on the error screen handy.
Use an Alternate Mobile Phone Number
The most common reason for error code 40301 is that the phone number you entered is already linked to another Microsoft account or flagged by the system. Using a fresh number often resolves the block.
Microsoft's security systems restrict the number of times a single phone number can be used to verify new developer or enterprise accounts. If your current number is tied to existing Outlook, Azure, or Office 365 accounts, the verification may fail silently or throw error 40301.
Open a new Incognito or Private browsing window to ensure no cached Microsoft account credentials interfere with the setup process.
Go back to the Office 365 E5 subscription or developer program portal and begin the registration process again.
When prompted for the phone verification step, input a completely different, valid mobile phone number. Do not use VoIP or virtual numbers as they are often blocked.
Enter the SMS verification code sent to the new number to bypass the authentication block and complete your subscription setup.

Contact Microsoft Support with Your Correlation ID
If changing the phone number does not work, the issue may stem from a backend service outage or glitch that requires manual intervention by Microsoft Support.
Skip the Setup Hassles with WPS Office
Tired of dealing with complex subscription setups, authentication blocks, and error codes like 40301? WPS Office offers a free, lightweight, and powerful alternative to Microsoft Office. It requires no complicated verification processes to start creating and editing documents immediately. Enjoy a familiar interface and seamless compatibility with your favorite file formats.
- 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the lightweight installation file and follow the quick on-screen prompts to set up the software.
- 3. Start working instantly: Open WPS Office and instantly create, edit, or save your documents without encountering phone authentication roadblocks.

Frequently Asked Questions
What exactly does error code 40301 mean in Office 365?
Error code 40301 is an undefined phone authentication failure that occurs during the Office 365 setup or Microsoft 365 Developer Program registration. It usually indicates that the phone number provided is already associated with other Microsoft accounts, has been flagged by the security system, or that the authentication server is temporarily down.
Can I use a virtual phone number (VoIP) to bypass this verification error?
No. Microsoft's security systems generally detect and block virtual phone numbers (like Google Voice or Skype numbers) and VoIP services during the enterprise or developer setup process. You must use a standard mobile carrier number to successfully receive the SMS code.
Will clearing my browser cache fix the 40301 error?
Sometimes. If the error is caused by conflicting cached session data from a previously logged-in Microsoft account, clearing your browser cache and cookies—or using an Incognito/Private window—can resolve the issue. However, if the phone number itself is blocked, you will still need to use a different number.




