Error opening default folder (MAPI-E-INVALID-ENTRYID)
Problem:
While using CodeTwo Migration software, you are encountering the following error, regarding processing default folders of particular mailboxes:
Error opening default folder. Invalid object entry id (MAPI_E_INVALID_ENTRYID) (0x80040107).
Solution:
This problem affects various configurations and appears to be a system specific issue. Probably the internal IDs of default folders in mailboxes (e.g. Journal or Notes) became corrupted. Therefore, when CodeTwo Exchange Migration uses MAPI libraries in order to access the data, the program is unable to access data located inside those folders.
At this point we have confirmed that running the following command on machines equipped with Microsoft Outlook solves this problem for a particular mailbox.
Outlook.exe /resetfolders
However, as this command has to be executed against each mailbox separately (one by one), it is a rather time-consuming and not very convenient solution if more mailboxes are affected. There are some alternatives that might be helpful, although we were not able to reproduce this problem in our labs so we cannot guarantee that those methods are completely safe and that they work for sure.
- If your source server is Exchange 2010 or newer, you may try using the New-MailboxRepairRequest cmdlet. The example below will repair all available types of corruption for all mailboxes located inside provided mailbox database:
New-MailboxRepairRequest -Database "<YOUR DATABASE>" -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,Folderview
You may list your mailbox databases by using the Get-MailboxDatabase cmdlet.
- If your source server is older than Exchange 2010 or you do not want to use the above method, you may consider using additional tools provided by Microsoft, namely Eseutil and Isinteg. For more information please consult this official Microsoft reference, as well as some third-party websites containing complete walkthrough of using those commands: