Exchange MAPI Errors: MAPI_E_NOT_ENOUGH_MEMORY and MAPI_E_TOO_BIG

Article ID: 633
Last updated: 03 Sep, 2015

Examples found in Riva's crmex-log files

2012-04-19 10:54:54,868 ERROR [CTP-pxq #677] [1880457535] Error occurred synchronizing attachments for Name of email item
Omni.Sync.ItemSyncException: Error occurred synchronizing attachments for Name of email item ---> System.Runtime.InteropServices.COMException (0x80040305): Error in IMAPISession.OpenEntry: MAPI_E_TOO_BIG
.
.
.
2012-04-19 13:31:32,211 ERROR [CTP-pxq #676] [1711750086] Error in IMsgServiceAdmin::ConfigureMsgService: MAPI_E_NOT_ENOUGH_MEMORY
Omni.Connection.Exchange.x2a1ea22867edfe3f: Error in IMsgServiceAdmin::ConfigureMsgService: MAPI_E_NOT_ENOUGH_MEMORY ---> System.OutOfMemoryException: Error in IMsgServiceAdmin::ConfigureMsgService: MAPI_E_NOT_ENOUGH_MEMORY

Cause of Exchange Connection or Sync Errors

MAPI_E_TOO_BIG and MAPI_E_NOT_ENOUGH_MEMORY errors usually indicate that the Riva connection to Exchange cannot process the sync requests because MAPI cannot allocate any more memory to the requests.  This generally occurs when Riva is trying to sync too many users at too frequent a sync interval, for example six target users with a 5-minute sync cycle interval executing six threads concurrently.  In that example, Riva is in effect trying to sync all of the target users at the same time.

Recommended Resolution

The goal is to reduce the amount of system memory that MAPI tries to assign to data syncing at any moment. This is accomplished by

Also ensure that the CRM Agent Service for Exchange service is properly configured.

To reduce the number of users that Riva tries to sync at the same time:

  1. Launch the Riva Manager application, and select the Policies tab.

  2. Double-click the sync policy to edit it.

  3. Select the Connection Options tab.

  4. Under Execution Threads, set the Maximum number of concurrent execution threads value to either 2 or 3.

    This means that Riva will attempt to sync only two or three users at the same time, which is less memory-intensive than the six threads in our example.

    For more information, see Configuring a Riva Sync Policy - Connection Options. If there are more than two active sync policies, see Controlling Concurrent Riva Synchronization Threads.

To reduce how frequently Riva attempts to sync each user:

  1. In the Riva Manager application, select the Policies tab.

  2. Double-click the sync policy to edit it.

  3. Select the Scheduling tab.

  4. On the During peak times, sync drop down list, select a larger interval.

    In our example, we would try Every 10 mins.  For more information, see Configuring a Riva Sync Policy - Scheduling.

Ensure that the CRM Agent Service Logon Identity is Configured Correctly

Ensure that the CRM Agent Service for Exchange service is properly configured to log, based on the type of MAPI connection:

Applies to

  • Riva for Exchange 2007 and 2010 using Direct MAPI or Outlook Profile MAPI connections
  • Riva for Exchange 2003


Article ID: 633
Last updated: 03 Sep, 2015
Revision: 3
Views: 10471
Also listed in
folder Riva On-Premise - CRM Sync -> Manage Riva On-Premise (Admin Guides) -> Troubleshooting (Includes Monitoring) -> Resolving Exchange Connection Issues

Prev     Next
Solutions for: CRM Agent Service Keeps Stopping       Sync Error: Unable to access shared mailbox of target user


Back to Top