Sunday, September 15, 2019

MapiExceptionMessagePerFolderCountQuotaExceeded

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!

16 comments:

  1. 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.

    ReplyDelete
    Replies
    1. You are most welcome! Thank you for the feedback! :)

      Delete
  2. what is the folder limit for migration

    ReplyDelete
    Replies
    1. Hi Rajeev,

      As per the post, it's 1M (1 Million).

      Regards,
      Nuno

      Delete
  3. 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.

    ReplyDelete
  4. Muchas gracias, igual fue la única publicación que me llevo al verdadero problema!

    ReplyDelete
  5. Thank you for this post...

    I 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

    ReplyDelete
    Replies
    1. 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!

      Delete
  6. I want to know if there is a PowerShell cmdlet that can help me move some contents to another phone.

    Drag and drop would do but it would take forever...

    ReplyDelete
    Replies
    1. What do you mean by moving content to another phone?

      Delete
  7. Exactly what In needed, helped me determine that a certain mailbox had over 6 million(!) emails in the inbox folder, thank you!

    ReplyDelete