If you're attempting a command line CRM 2011 Outlook client installation using an XML configuration file, you may run into the following error:

12:12:46|   Info| Client Configuration Wizard Running Mode : Silent
12:12:47|  Error| Exception : Sequence contains no matching element    at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at Microsoft.Crm.Application.Outlook.Config.ClientConfig.AddDeployment(DeploymentsDeployment[] deployments, AuthUIMode uiMode)
   at Microsoft.Crm.Application.Outlook.Config.ClientConfig.Run(Boolean runInsideOutlook)
   at Microsoft.Crm.Application.Outlook.Config.ClientConfig.Start(String[] args, Boolean runInsideOutlook)
12:12:47|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Terminate
12:12:47|   Info| Exit code: Failure
12:12:47|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Terminate

This error message most likely indicates that a portion of your configuration file is not set correctly.  The most common cause of this error message is because the syntax of your organization is not exactly correct.  You either have the wrong organization name listed, or the case sensitivity is off.  I've listed an example of an XML configuration file below:

   <Organization IsPrimary='true'>JSorg</Organization>

The line in question would be:

<Organization IsPrimary='true'>JSorg</Organization>

Technically, this line is asking for the following:

<Organization IsPrimary='true'>OrganizationUniqueName</Organization>

To obtain your OrganizationUniqueName, navigate to the following area within your CRM 2011 application:

  • Settings - Customizations - Developer Resources

Once here, you'll find your Organization Unique Name value.  This value is case sensitive!  Once you use the correct OrganizationUniqueName within your XML configuration file, you should be good to go.

- Jon