The other day during a mailbox migration of an on-prem Exchange 2013 mailbox to Exchange Online, I came across the following error:
Error: QuotaExceededException/MapiExceptionMessagePerFolderCountQuotaExceeded: Error: Cannot save changes made to an item to store. --> MapiExceptionMessagePerFolderCountQuotaExceeded: Unable to save changes.
The message was due to a folder in the user’s mailbox which had almost 1,500,000 items in it. The problem is that Exchange Online enforces a maximum number of 1M messages per mailbox folder limit (across all Exchange Online plans). New messages can’t be delivered or saved in a folder when this limit is reached.
There is also a warning for number of messages per mailbox folder. Once a folder in Exchange Online reaches 900,000 items, Exchange Online sends a warning message to the mailbox owner. When this quota is reached, warning messages are sent once a day.
To check which folder(s) in a user’s mailbox is causing this, you can use the Get-MailboxFolderStatistics cmdlet:
Get-MailboxFolderStatistics "user" | % {If ($_.ItemsInFolder -ge 1000000) {Write-Host "Folder with $("{0:N0}" -f $($_.ItemsInFolder)) items: '$($_.FolderPath)'" -ForegroundColor Red}}
It is also crucial to check other limits before starting to sync mailboxes, like mailbox size limit, folder limit, and so on.
Hope it helps!
Hope it helps!
Thank you so much! I searched for a while before finding your post, which is the only one that led me to the cause of the migration failure I was having. Much appreciated.
ReplyDeleteYou are most welcome! Thank you for the feedback! :)
Deletewhat is the folder limit for migration
ReplyDeleteHi Rajeev,
DeleteAs per the post, it's 1M (1 Million).
Regards,
Nuno
really great way to explain, i saw your artical in which you expalin Arbitration mailbox. and then came to know about your own blog..greate work to share.
ReplyDeleteThank you so much Chander! :)
Deletegreat post !!!
ReplyDeleteThank you Mhamed! :)
DeleteMuchas gracias, igual fue la única publicación que me llevo al verdadero problema!
ReplyDeleteGlad it helped! :)
DeleteThank you for this post...
ReplyDeleteI have a question though. how can I move some email content to another folder to reduce the inbox content
With over 2M contents in the inbox folder, I am unable to migrate to Exchange Online
Thanks
Yes, of course! As long as there is not a folder with over 1M items, that is fine. For example, you could have 3 folders, each with 900,000 items!
DeleteI want to know if there is a PowerShell cmdlet that can help me move some contents to another phone.
ReplyDeleteDrag and drop would do but it would take forever...
What do you mean by moving content to another phone?
DeleteExactly what In needed, helped me determine that a certain mailbox had over 6 million(!) emails in the inbox folder, thank you!
ReplyDeleteGlad it helped! :)
Delete