Dynamics CRM in the Field

Information from the Microsoft Dynamics CRM PFE team working in the field

CRM 2011 Outlook Client Configuration - XML Configuration File Tip

CRM 2011 Outlook Client Configuration - XML Configuration File Tip

  • Comments 2

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:

<Deployments>
 <Deployment>
  <DiscoveryUrl>http://crmserver</DiscoveryUrl>
  <Organizations>
   <Organization IsPrimary='true'>JSorg</Organization>
  </Organizations>
 </Deployment>
</Deployments>

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

  • Related question, I tried to do a silent install of CRM 2011 Outlook Client and although the install ran successfully the rollup 2 client install was triggered at the end of the install and I was faced with a Rollup 2 install wizard demanding user intervention.  How am I meant to silently install the Outlook Client AND rollup 2?  

  • Gareth,

    I'm guessing that you're opting into Microsoft Update and that Update Rollup 2 is being spun up after the install.  It is possible to install Update Rollups silently.  To do so, first extract the contents of the update rollup:

    ex.  crm2011-client-kb2547347-enu-i386.exe /extract

    When installing silently, you'll use something similar to the following:

    crmupdatewrapper.exe  /quiet /l "C:\log\log.txt"

    Thanks,

    Jon

Page 1 of 1 (2 items)
Leave a Comment
  • Please add 5 and 8 and type the answer here:
  • Post