Today, I’m going to show you on how to solve Office 365 Online Archive Pending issue.
We’re in running an Exchange 2016 On-prem solution as well as an Microsoft 365 solution, and have AADConnect fully configured and working. We want to use Exchange Archiving to archive older mailbox content in Microsoft365, so I have setup up and completed the Exchange Hybrid setup wizard. I then made sure that my own user account and a few test users had the appropriate Microsoft 365 license required for archiving and then enabled the “online archive” mailbox for a few users using the below command in Exchange 2016 PowerShell.
Enable-RemoteMailbox “User123” -Archive
However, after almost a week of waiting, they’re stuck in the same state where the Archive is not visible. Running a “get-mailbox” on one of the mailboxes reveals that the ArchiveStatus and ArchiveState are “None” in cloud.
Looking at the mailbox archive settings from the Exchange 2016, shows the ArchiveState as “Hosted pending” and ArchiveStatus as None.
So my question is how do I troubleshoot this issue?
- Go to Active Directory Administrative Center in Windows 2016
- Search the user and double click at the account to open
- Next, click extensions and select attribute editor
- Check the value of msExchArchiveStatus value
- The msExchArchiveStatus for the mailboxes were “<Not set>”. It should be 1 so change it and see if it makes a difference.
I can confirm that setting the msExchArchiveStatus status to “1” for the mailboxes, the archive became visible in Exchange 2016 and the allow sometime for this changes to reflect in Microsoft 365.
Now, Microsoft 365 shows the ArchiveStatus Active and ArchiveState Local
The issue could be caused by AADConnect. I would like to confirm if you select hybrid mode when setting up AADConnect wizard as the attribute msExchArchiveStatus should be synced back to on premise. If the sync fails, it may be caused by many factors such as network. Moreover, please remember running full sync. If the issue persists, the quick solution is to set the msExchArchiveStatus to 1. For a single mailbox, you can use Enable-RemoteMailbox “User123” -Archive
In addition, ArchiveGUID in on-premise and Microsoft 365 should match. To check, get-remotemailbox “user123” | fl archiveg*
Just replace the remotemailbox with mailbox and execute the cmdlet in Microsoft 365 PowerShell
If they don’t match, then you need set the on-prem to match the cloud one.
Set-RemoteMailbox “User123” -ArchiveGUID “CloudArchiveGuid”
If above steps don’t work for whatever reason, enable the online archive using the security and compliance center or Exchange admin center
Exchange Admin Center
You can use the Exchange admin center in Microsoft 365 admin center to enable the online archive on user mailboxes. There is no need to wait for a sync.
- Go to “Microsoft 365 Admin Center“
- Select “Exchange” from Admin Centers
- Select “Recipients“
- Select “Mailboxes“
- Search the mailbox
- On the right, click “Enable” in-place archive
Security and Compliance Center
Of course, we have another option to enable archive in Microsoft 365 which is security and compliance center. Similar to the Exchange Admin Center, no sync is required.
- Go to “Microsoft 365 Admin Center“
- Select “Security” from Admin Centers
- Select “Information governance“ then select “Archive“
- Search the user and click Enable on the right.
For more information about cloud-based online archiving, check the Microsoft website.
That’s how I solved the Office 365 Online Archive Pending issue.
Now I’d like to hear from you:
Did I Miss Anything? Or maybe you have a question about something that I covered.
Either way, I’d like to hear from you. So go ahead and leave a comment below.