Our Blog

Exchange 2013 – TooManyMissingItems or TooManyBadItems

During Microsoft Exchange 2010 to Exchange 2013 Migration one of the steps is to migrated all mailboxes from old servers to new servers. Unfortunately with large number of mailboxes a lot of possible things can go wrong during New-MoveRequest.

Problem description

By moving lots of mailboxes from one server to another by using either ECP or EMS you're going to hit one o 2 potential problems:

TooManyBadItemsPermanentException

Exchange2013-TooManyBadItemsPermanentException

TooManyMissingItemsPermanentException

Exchange2013-TooManyMissingItemsPermanentException

While the messages are quite drastic there's no need to panic. Usually the errors mean there are corrupted items within the mailbox but most of the time those are some broken/outdated calendar entries or stuff that's long time gone and not needed but still somehow pending in the mailbox.

Solution

First we need to find out what mailboxes are affected. We can use very useful combination of PowerShell commands (Get-MoveRequest and Get-MoveRequestStatistics)

This little command gives total overview of all mailboxes that were committed for move, and their current status: Completed, InProgress or Failed. For our scenario most important columns are FailureType and BadItemsEncountered which shows us why our mailbox move has failed. After finding out the mailboxes having problems with move we need to asses if we should ignore errors and simply proceed straight to fix or should we verify the cause and try to find the solution. 

The choice is often a combination of both. Depending on time and circumstances it's often good approach to go thru couple of cases one by one and see what kind of problems are users having in their mailboxes. We can see issues within mailbox with command below:

The most important part of the command is IncludeReport switch. When run, command displays a whole log of what was happening during mailbox move. The most interesting part is left in the end where all errors are gathered for Administrator to see.

Followed by an error message:

Fatal error TooManyMissingItemsPermanentException has occurred.

In our case A missing item was encountered: Missing Item (IPM.Note) was pointing to folder which is Deleted Items. Probable scenario here was that Outlook client failed to properly notify mailbox about deleted items so those items got somehow in weird state and are no longer needed. In which case we simply can ignore the problem and let Exchange ignore those items by running following commands:

This commands essentially tell Exchange to simply skip the problematic items. If you're convinced there's no need to go one mailbox at a time you can use quicker solution:

This command sets -BadItemLimit of 10 for all Failed move requests and forces it to start where it failed. Of course keep in mind that you may end up with more BadItems and you should be careful what you set, but generally you shouldn't expect there will be much you can do with what you find.

Tags: , , , , , , , , , ,

This is a unique website which will require a more modern browser to work! Please upgrade today!