Outlook client fails with error “the selected item could not be restored"

Problem

When using the Delete or Restore buttons in the Enterprise Vault (EV) Outlook Add-in to perform actions on EV shortcuts in bulk, a user may encounter an error message and the action may fail.

Error Message

The selected item could not be restored.

User-added image


A client trace will show each item being loaded until it finally stops with error:
 [7468][L]: OOMSelectionIter::GetNextValue: 0x0
 [7468][L]: MSO::ItemFactory::CreateItem: 0x0
 [7468][L]: AutoWrap: 0x0
 [7468][L]: ~AutoWrap: 0x0
 [7468][L]: ~MSO::ItemFactory::CreateItem: 0x80040305
 

Cause

Exchange has a limit on the number of messages that can be open in a single MAPI session. By default, the limit is 250 item objects per session. Because the EV Outlook Add-in must open each message to determine whether it is an EV item or a normal Outlook item, this limit is reached when the user selects and acts on more than 250 shortcuts, and Outlook throws the error 0x80040305 = MAPI_E_TOO_BIG.

Solution

A registry key MaxObjsPerMapiSession can be added on the Mailbox server to override the default behavior.

Create the MaxObjsPerMapiSession subkey under this location in the Registry:
\\HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem\

Inside the MaxObjPerMapiSession key, create a DWORD (32-bit) value with a name corresponding to the object type whose limit should be altered. In most scenarios related to Enterprise Vault messages, this name would be objtMessage. The value of this DWORD should be set to the new limit you want to enact.

For example, type 600 to allow Outlook to open 600 items in a session:
\\HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem\MaxObjsPerMapiSession
Dword: ObjtMessage
Value: 600 decimal

User-added image

Restart the Microsoft Exchange Information Store service.

Please see Manage Store limits article for more information:
https://technet.microsoft.com/en-us/library/mt741981(v=exchg.150).aspx

Warning: Incorrect settings of the registry values may prevent the operating system, or installed software applications, from functioning properly. This action should only be done by an experienced administrator. We recommend performing a backup of your data before continuing.

 

Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)