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-premises 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 Microsoft 365, 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 are 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 server.
- 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 confirm that after updating the msExchArchiveStatus status to “1” on the affected mailbox, the archive became visible in Exchange 2016. Allow for a few hours 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 premises. 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 “Exchange Admin Center“
- Select “Recipients“ and select “Mailboxes“
- Search the mailbox and open it.
- Click “Others” and select “Manage mailbox archive“

- Toggle the button to “On” and click save.

- Wait for 15 minutes for replication.
Microsoft Purview compliance portal
We have another option to enable the archive in Microsoft 365 which is Microsoft Purview compliance portal. Similar to the Exchange Admin Center, this option does not require synchronization.
- Go to “Microsoft Purview compliance portal“
- In the left pane of the Microsoft Purview compliance portal, click Data lifecycle management, and then click the Archive tab
- In the list of mailboxes, select the user that you want to enable the archive mailbox for and select Enable 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.
Great explenation, thank you for sharing this!
Thank you. I’m so glad I could be of assistance.