Knowledge Base

Public folders are not visible in CodeTwo Exchange Sync


When browsing source folders in CodeTwo Exchange Sync Admin, you are unable to select public folders – they are not listed at all in the program (Fig. 1.).

Fig. 1. Public folders are missing when browsing for folders to be synchronized.


This problem is known to occur in multi-server Exchange 2016 environments. The latest versions of Exchange Server no longer support the installation of MAPI CDO, which means the only way to use CodeTwo Exchange Sync in such environments is to install the program together with a specific version of Microsoft Outlook to be able to connect to Exchange via MAPI over HTTP. Because of that limitation, the service account created by the program may not be able to access public folders in Exchange, even though they are showing in Outlook.

To fix this problem, instead of using this service account, you can get the program to use an Outlook profile which can access public folders. Use the links below to learn how to:

Verifying which Outlook profile can access public folders

The easiest way to check if you can access public folders using your Outlook profile is by using Outlook itself – just switch to the Folders view (Fig. 2.) and public folders should be visible in the navigation pane on the left.

Fig. 2. Accessing public folders in Outlook.

However, if there are multiple Outlook profiles set up and you are not sure which one is currently used by Outlook, go to Windows Control Panel > Mail (or Control Panel > User Accounts > Mail when using the Category view) and click Show Profiles. In the window that opens you can either check or change which profile is currently used (Fig. 3.).

Fig. 3. Checking which profile is used in Outlook by default.

Another way to check if a given Outlook profile can access public folders is by using the MFCMAPI tool. Refer to this article for more information.


If you haven’t created an Outlook profile yet, once you open Outlook for the first time, a wizard will appear that will guide you through the entire creation process. You can also create a new profile directly in the Mail window (see Fig. 3. above) by clicking the Add button.

Deleting the profiles created by CodeTwo Exchange Sync

If you have already configured a connection to your Exchange server in CodeTwo Exchange Sync, it is a good idea to delete all MAPI profiles created by the program. To do so:

  1. In CodeTwo Exchange Sync, click Settings on the ribbon and uninstall the synchronization service (Fig. 4.).

Fig. 4. Uninstalling the synchronization service in CodeTwo Exchange Sync.

  1. Close the program.
  2. Go to Windows Control Panel > Mail (or Control Panel > User Accounts > Mail when using the Category view).
  3. Click Show Profiles.
  4. Select the profile that starts with C2ExchangeSync and click Remove (Fig. 5.). Repeat this step for all similar profiles.

Fig. 5. The MAPI profiles created by CodeTwo Exchange Sync.

  1. Click OK to close the window.

Setting an Outlook profile to be used with CodeTwo Exchange Sync

Follow the steps below to get the program to use a specific Outlook profile to connect to your Exchange server:

  1. Open the Registry Editor (regedit.exe).
  2. Navigate to
  3. Right-click ExchangeSync and select New > String Value.
  4. Type MAPIProfileName and press Enter.
  5. Double-click the newly-created string and type the name of your Outlook profile in the Value data field.
  6. Click OK.

You should now have the following value (Fig. 6.) under the ExchangeSync key:

Fig. 6. Creating a new string under the ExchangeSync key.

Once you open CodeTwo Exchange Sync, the program will automatically connect to your Exchange server using the specified Outlook profile.

You should now be able to view public folders in CodeTwo Exchange Sync (Fig. 7.).

Fig. 7. Public folders listed in CodeTwo Exchange Sync.


Even if you run the Exchange Server connection wizard and configure a new synchronization service, as long as the MAPIProfileName entry exists in the registry, the program will keep using the defined Outlook profile. However, once you create a synchronization task for public folders in the program, you can delete this entry from the registry and use another synchronization service (MAPI profile) to connect to your Exchange server. Public folders will continue to be synchronized.

Was this information useful?