logo
search
MFA & Verification Issues

Fix Office 365 E5 Phone Authentication Error Code 40301

Huda QurayshiHuda Qurayshi Oct 9, 2026 868 views

Question details

The user is encountering an authentication error preventing the setup of an Office 365 E5 subscription.

How to Fix Office 365 E5 Phone Authentication Error Code 40301
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 you start

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.

Solution 1Recommended

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.

1
Clear browser data

Open a new Incognito or Private browsing window to ensure no cached Microsoft account credentials interfere with the setup process.

2
Restart the setup process

Go back to the Office 365 E5 subscription or developer program portal and begin the registration process again.

3
Enter a different phone number

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.

4
Verify the code

Enter the SMS verification code sent to the new number to bypass the authentication block and complete your subscription setup.

Use an Alternate Mobile Phone Number
Verification Tip: Once the account is successfully created, you can often go into the Microsoft 365 Admin Center and change your recovery or multifactor authentication (MFA) number back to your preferred device.
Free Microsoft Office alternative

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. 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the lightweight installation file and follow the quick on-screen prompts to set up the software.
  3. 3. Start working instantly: Open WPS Office and instantly create, edit, or save your documents without encountering phone authentication roadblocks.
No complex subscription setup or mandatory phone verification required to start editing documents.Fully compatible with Microsoft Office file formats, including .docx, .xlsx, and .pptx.Lightweight installation that runs smoothly on Windows, Mac, Linux, iOS, and Android.Completely free to use with a highly familiar, user-friendly interface that minimizes the learning curve.
microsoft office alternative - wps office

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.