Troubleshooting Guide
Common errors and how to resolve them. For issues not listed here, check the Migration Log in your project or contact Aatrex support.
Connection and Authentication Errors
"Test Connection failed — AADSTS700016: Application not found"
The App ID entered does not exist in the tenant. Verify:
- The App ID matches the app registration in Azure AD → App registrations
- You are entering the Application (client) ID, not the Object ID
- The app is registered in the correct tenant (source vs destination)
"Test Connection failed — AADSTS700082: The refresh token has expired"
The Client Secret has expired. Generate a new secret:
- Go to Azure AD → App registrations → your app → Certificates & secrets
- Click New client secret, copy the new value immediately
- Update the secret in your Aatrex project credentials and re-test
"Test Connection failed — Insufficient privileges"
Admin consent has not been granted, or was granted with the wrong permissions. Verify:
- In Azure AD → App registrations → your app → API permissions
- All required permissions show status Granted for [tenant] (not "Not granted")
- If any show "Not granted", click Grant admin consent for [tenant] and confirm
Permission check reports a Graph mailbox permission missing
Mail, calendar, contacts, inbox rules, shared mailbox and archive migrations read and write through the Microsoft Graph mailbox API, which needs its own permissions on top of Mail.Read / Mail.ReadWrite:
- Source app:
MailboxItem.Export.All,MailboxItem.Read.All,MailboxFolder.Read.All - Destination app:
MailboxItem.ImportExport.All,MailboxFolder.ReadWrite.All
- In the app → API permissions → Add a permission → Microsoft Graph → Application permissions
- Add the missing permission
- Click Grant admin consent for [tenant]
Exchange Online's full_access_as_app is no longer used. If an older setup granted it, you can remove it.
"Test Connection failed — EWS endpoint not reachable" (Exchange Server on-premises)
The Aatrex host cannot connect to your Exchange EWS URL. Check:
- The EWS URL is correct (browse to it in a browser — you should see XML)
- Port 443 is open from the Aatrex host IP to your Exchange server
- If behind a firewall, the Aatrex service IP is allowlisted
Discovery Errors
"Discovery returned 0 users"
Possible causes:
- The app registration lacks
User.Read.Allpermission or consent - For Google Workspace: the Admin SDK Directory API is not enabled in the Google Cloud project
- For Exchange EWS: the impersonation account does not have ApplicationImpersonation rights at the organisation level (not scoped to a specific OU)
"Discovery returned fewer users than expected"
- The source directory contains disabled, blocked, or unlicensed accounts that are excluded by default — toggle Show all accounts in the filter to confirm they are present
- For Exchange on-premises: impersonation may be scoped to specific databases; apply it at the organisation level
Mapping Errors
"Destination user not found"
The destination email address does not match any user in the destination tenant. Check:
- The user has been created in the destination M365 tenant
- The UPN is spelled correctly (including the domain)
- The user is not blocked or soft-deleted
Auto Map matches wrong users
If usernames are not unique across tenants, auto-map can produce incorrect matches. Review all auto-mapped pairs before migration — click Export Mapping to get a CSV for stakeholder review.
Migration Errors
"Migration failed — QuotaExceeded"
The destination mailbox or OneDrive site has reached its storage quota. Actions:
- For mailboxes: assign an Exchange Online Plan 2 licence (50 GB → 100 GB) or enable the archive mailbox
- For OneDrive: purchase additional storage or free up space
"Migration failed — ItemNotFound"
The source item (email, file, or calendar event) was deleted between discovery and migration. This is normal for items deleted by users during a long migration run. The item is logged as skipped and migration continues.
"Migration stalled — no progress for 30 minutes"
Microsoft Graph API throttling is the most common cause. Aatrex automatically retries throttled requests with exponential back-off. Check:
- The Activity log in your project for
429 Too Many Requestsentries — this confirms throttling - If throttling is persistent, reduce the concurrency in Settings → Migration Settings → Concurrent threads
"Gmail labels not appearing as Outlook folders"
Gmail labels with / or \ characters are renamed during migration to comply with Exchange folder naming rules. The original label name is stored in the folder description. Check the Migration Log for the renamed folder paths.
"Google Drive files failing to convert"
Google Docs over 10 MB cannot be converted via the Drive export API (Google's limit). These files are logged as skipped with the reason "Export size exceeded". Download them locally and convert manually using Google Docs before cutover.
Post-Migration Issues
"Outlook desktop client not connecting after cutover"
The Autodiscover DNS record still points to on-premises Exchange. Update the Autodiscover CNAME to autodiscover.outlook.com and flush the DNS cache on client machines:
ipconfig /flushdns
On Mac: sudo dscacheutil -flushcache
"Calendar events missing after migration"
Run a verification pass — open the project, click the user row, and check the Calendar workload status. If it shows "Completed" but events are missing, check the migration log for EventNotFound or ConversionError entries.
"Migrated files show the Aatrex app as Created By / Modified By"
The destination app can't sign in to the SharePoint API, so original authors weren't written. Add Office 365 SharePoint Online → Sites.ReadWrite.All (application) to the destination app, grant consent, and upload the Aatrex certificate (setup guide → Download certificate) under Certificates & secrets → Certificates. The run log shows "upload the Aatrex certificate to the destination app" when the certificate is missing, or "check the certificate" when the uploaded one doesn't match.
"Teams messages appear under service account name"
This is expected behaviour. The Microsoft Teams import API attributes all imported messages to the migrating app. The original sender's name appears in the message body. This cannot be changed via the Microsoft Teams API.
Log Analysis
For detailed investigation, download the full migration log:
- Open your project and click a user row.
- Click Download Log in the user detail panel.
- The log is a JSON file with one entry per operation: timestamp, operation type, source item ID, result (success/failure), and error message.
Share this log with Aatrex support when opening a support case.