Move mailbox or restore mailbox fails with error -1056749110
The move mailbox or restore mailbox operation fails with an error -1056749110
Restore-Mailbox : Error was found for RSG, Test because: Error occurred in the step: Moving messages. This mailbox exceeded the maximum number of corrupted items specified for this move mailbox operation., error code: -1056749110
Well, the fix is pretty simple. In this example I have tried to restore a mailbox from RSG to a production mailbox using:
Restore-Mailbox -RSGMailbox “RSG, Test” -RSGDatabase Exch-Guru\RSG_DB\db11 -id “Recovery, Mailbox” -TargetFolder “Recovered Mails of RSG mailbox”
RSG, Test – The mailbox in the RSG database for which items should be recovered
Exch-Guru\RSG_DB\db11 – ServerName\Name of Recovery Storage Group\Name of Mailbox Database
Recovery, Mailbox – Display name of the mailbox to which the backup should be restored to
Recovered Mails of RSG mailbox – A folder in Recovery, Mailbox which will be created automatically into which the mailbox RSG, Test will be restored to.
The reason for this to fail is because of a property BadItemLimit.
You should run the cmdlet with the following switch:
Restore-Mailbox -RSGMailbox “RSG, Test” -RSGDatabase Exch-Guru\RSG_DB\db11 -id “Recovery, Mailbox” -TargetFolder “Recovered Mails of RSG mailbox” –BadItemLimit 1000
The BadItemLimit switch specifies the number of bad items to skip. Use 0 to not skip bad items. The valid input range for this parameter is 0 to 2,147,483,647. In this example 1000 is the number of corrupted items which will be skipped.