"There is a problem communicating with the Microsoft Dynamics CRM server..." when attempting to connect Microsoft Dynamics CRM for Outlook

You receive the following error when you attempt to connect to your Microsoft Dynamics CRM organization using Dynamics CRM for Outlook:

“There is a problem communicating with the Microsoft Dynamics CRM server.  The server might be unavailable. Try again later. If the problem persists, contact your system administrator.”

The details and log file will display the following error:

|NativeError:61b8 HResult 80040e2f Message: A duplicate value cannot be inserted into a unique index. [ Table name = MetadataSchema.EntityClientStatistics,Constraint name = PK__MetadataSchema.EntityClientStatistics__00000000000007A9 ]|    at Microsoft.Crm.Application.SMWrappers.CrmSqlCeCommand.ExecuteCommandWithRetry[TResult](Func`1 body, Int32 retryCount)

This error may occur if an earlier version of the Plugin Profiler solution is installed. A prior version of that solution has two attributes (mbs_typename and mbs_label) connected to the entity "mbs_pluginprofile" that both contain "PrimaryName" in the displaymask. Having multiple primary attributes for the same entity causes the configuration process to fail.
1. Sign-in to your Microsoft Dynamics CRM instance as a user with the System Administrator or System Customizer security role.

2. Navigate to Settings | Solutions.

3. Delete the Plugin Profiler solution.

4. Verify you can successfully configure Dynamics CRM for Outlook.

You can download the newest version of the Plugin Profiler solution. This solutions is contained in the Microsoft Dynamics CRM Software Development Kit (SDK) for CRM Online and on-premises CRM 2015. You can access this download from the following URL:

More information
If you are still encountering issues connecting CRM for Outlook to your CRM Online organization, a diagnostic tool is available to help diagnose the issue:

CRM for Outlook Configuration Diagnostic
Outlook Client, configure, SiteMap
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 3066115 - Last Review: 02/04/2016 03:05:00 - Revision: 3.0

  • kbmbsmigrate kbsurveynew KB3066115