Home / Troubleshooting / The request failed. The remote server returned an error: (401) Unauthorized.
You are watching: The remote server returned an error: (401) unauthorized.
The request failed. The remote server returned an error: (401) Unauthorized.
During a migration to or from Exchange or Office 365, you’re getting the following error:
Fatal error during migration process: The request failed. The remote server returned an error: (401) Unauthorized.
Cause 1: during mail migration
1- The username and passwords entered in the connector are incorrect.
2- The account is using MFA (Multi-Factor Authentication) to log in.
3- You’re using an SSO (Single Sign-On) System to log in.
4- Your migration account is unlicensed or does not have a valid license.
5- Your Legacy authentication is disabled.
Connect to http://portal.office.com and try to login with the administrator and password account defined in the connector.1- If it doesn’t work, correct the credentials.
2- If it’s asking for a code or a phone number, then please deactivate the MFA.
3- If you’re using an SSO system, please deactivate it.
4- If the migration account is unlicensed, assign a valid Exchange License.
5- Enable Legacy authentication on your tenant. To do that, Go to O365 Admin Center => Settings => Org settings => Modern Authentication. Activate Basic Authentication.
Cause 2: during File migration
1- Incorrect username/password in your connector.2- The migration account does not have access to the OneDrive of the user
Connect to http://portal.office.com and try to login with the administrator and password account defined in the connector.If it doesn’t work, correct the credentials.
If your credentials are correct, try to access the OneDrive of the user. If you are hitting an error, please run the Preprocessing to give the Migration Account access to the User’s OneDrive
Cause 3: during site migration – credentials
The administrator and password entered in the source or target connector do not have enough permissions to access the particular SharePoint site collection you want to access.
Connect to SharePoint central administration (eg: https://company-admin.sharepoint.com) and select the site collection. Then click on Owners -> Manage Administrators : Add your administrator in the field Site Collection Administrators.
Cause 4: during site migration – collection creation
The target site collection is not created in the SharePoint central administration.Please note : the site collection must be created prior the site migration.
Create the SharePoint site collection in the SharePoint central administration following these steps:
– Connect to SharePoint central administration (eg: https://company-admin.sharepoint.com)
– Under site collections, click on New -> Private Site Collection. Here you can create your site collection.
Once the site is created, you can relaunch the site migration using the newly-created site settings and information.