# 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-MoveReque...

blog

21 Sep 2015 en

![Exchange 2013 – TooManyMissingItems or TooManyBadItems](/wp-content/uploads/2015/09/MicrosoftExchangeLogo.png)

[View images (2)](#pf-content-image-1-0)

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\](/wp-content/uploads/2015/09/Exchange2013-TooManyBadItemsPermanentException.png)](/wp-content/uploads/2015/09/Exchange2013-TooManyBadItemsPermanentException.png)

TooManyMissingItemsPermanentException

[!\[Exchange2013-TooManyMissingItemsPermanentException\](/wp-content/uploads/2015/09/Exchange2013-TooManyMissingItemsPermanentException.png)](/wp-content/uploads/2015/09/Exchange2013-TooManyMissingItemsPermanentException.png)

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)

```plain
Get-MoveRequest | Get-MoveRequestStatistics | sort StatusDetail, PercentComplete,TargetDatabase | ft -a DisplayName, Alias, BatchName, SourceDatabase, TargetDatabase, Status, StatusDetail, TotalMailboxSize, BytesTransferedPerMinute, PercentComplete, Failure*,Message,PercentComplete,largeitemsencountered,baditemsencountered
```

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:

```plain
Get-MoveRequest  | Get-MoveRequestStatistics -IncludeReport | fl
```

The most important part of the command is **I****ncludeReport** 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.

```plain
2015-09-21 22:16:40 [MAIL2] A missing item was encountered: Missing Item (IPM.Note) Subject:"Jeszcze dziś - Czeka na Ciebie prezent o wartości 179 zł", Folder:"Elementy usunięte"
2015-09-21 22:16:40 [MAIL2] A missing item was encountered: Missing Item (IPM.Note) Subject:"artykuł: Tu 17zł, tam 17zł, tylko po co", Folder:"Elementy usunięte"
```

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:

```plain
get-moverequest  | set-moverequest -baditemlimit 10
get-moverequest  | Resume-MoveRequest
```

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:

```plain
get-moverequest -movestatus Failed | set-moverequest -baditemlimit 10
get-moverequest -movestatus Failed | Resume-MoveRequest
```

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.

## Related Projects

Projects that align with this post's tags, categories, and content.

[All projects](/projects/)

Matching projects...

[Back to Blog](/blog)

## Related posts

- [Exchange 2013 – Exchange Management Shell (EMS) loading very slow](/blog/exchange-exchange-management-shell-loading-very-slow/)
- [Exchange 2013 integration with SharePoint doesn’t work](/blog/exchange-2013-integration-with-sharepoint-doesnt-work/)
- [Microsoft Exchange – OU picker is empty when creating new user](/blog/microsoft-exchange-ou-picker-empty-creating-new-user/)

<!-- PowerForge markdown artifact sha256:893CBB36A8478519503EDB3FB1FEB77F7F7FC27624BF3775A96BA169C93F832E -->
