Knowledge Base

Increase the number of attempts for opening message store


At the system startup, CodeTwo Exchange Sync Service fails to open the Message Store with default number of attempts. As a result, the synchronization service does not work and needs to be manually started.


By default, CodeTwo Exchange Sync service attempts to open the Message Store for 30 times. This is done automatically at system startup. Each attempt is delayed by one second from previous and if none is successful, the service is automatically stopped, so your data is no longer synchronized.

Certain environments, especially running various demanding software, require more time before the message store can be opened. Therefore, to avoid this issue, you may increase the number of attempts. To do so, please follow steps below:

  1. Log in as the user under which CodeTwo Exchange Sync Service is running.
  2. Hit Windows + R and type in regedit. Confirm using Enter key.
  3. Navigate to the following registry key:
  4. Right click CodeTwo key and create a new key: CodeTwo Exchange Sync Service
  5. On the right pane, right click on the empty space and from the context menu choose New and then DWORD (32-bit) Value.
  6. Name it OpenMsgStoreDelayedAttempts.
  7. Change the Base to Decimal and enter the number of desired attempts (the default setting assumes 30 attempts).
  8. Click OK.
  9. Restart CodeTwo Exchange Sync service.

    To open Services management window, simply run services.msc command.

Exchange Sync - attempts of service starting
Fig. 1. Editing the registry key.

Was this information useful?