The email address specified is not associated with an account
This error will prompt when you try Public folder to Shared mailbox migration but the migration line item is not configured with an appropriate target Email Address
Solution for 401 unauthorized error when admin account is deleted and recreated
If you ran into this problem when attempting to migrate data into a Microsoft 365 account:
Migration failed. http POST request to abcxxxx.domain.com failed - 401 Unauthorized.
The below actions may have been taken prior to migration:
- A fresh Microsoft 365 global admin account was registered
- Removed global admin account
- Recreated the user with the same UPN
Even though you can access this Microsoft 365 account with the required credentials and admin account is used for migration, there will be a chance that you experience the 401 error since it is a known issue from Microsoft 365.
You must handle Microsoft 365 with Windows PowerShell in order to fix this issue by executing the below commands.
- Execute 'Connect-MsolService' and enter Microsoft 365 admin account credentials.
- Execute 'Get-MsolUser -ReturnDeletedUsers –SearchString useralias | FL' to retrieve the user ObjectID.
- Execute 'Remove-MsolUser –ObjectId xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx -RemoveFromRecycleBin' to restore the old deleted user.
- Run 'Get-MsolUser –ReturnDeletedUsers' to check the deleted user account is restored.
Now, try to re-migrate.