Article ID: 960079 - Last Review: February 25, 2009 - Revision: 1.0

The FetchXml query does not return a valid count when you try to count distinct entities that are linked in Microsoft Dynamics CRM 3.0

Hotfix download is availableHotfix Download Available
View and request hotfix downloads
System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

On This Page

Expand all | Collapse all

SYMPTOMS

When you try to count distinct entities that are linked by using the FetchXml query from the Microsoft Dynamics CRM 3.0 Software Development Kit (SDK), the FetchXml query uses the link-entity element to traverse a many-to-many relationship. Additionally, the FetchXml query tries to count the distinct entities. However, the FetchXml query does not return a valid count.

CAUSE

This problem occurs because the DISTINCT keyword is applied after the aggregate result is returned from the FetchXml query.

RESOLUTION

Hotfix information for Microsoft Dynamics CRM 3.0

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Microsoft Dynamics CRM 3.0 server

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Setup.exe3.0.5300.1630474,98430-Jun-200700:43x86
Articleseditcontent.xslNot applicable5,52702-Dec-200723:23Not applicable
Crmbulkmailservice.exe3.0.5300.18732,831,70424-Dec-200812:39x86
Crmcache.dll3.0.5300.1873299,35224-Dec-200811:33x86
Crmmsg.dll1.2.3297.12316,08808-Dec-200622:06x86
Crmnativeinteropproxy.dll3.0.5300.18733,402,07223-Dec-200819:33x86
Crmobjectmodel.dll3.0.5300.18736,741,33624-Dec-200811:33x86
Crmsecurity.dll3.0.5300.1873768,34424-Dec-200812:39x86
Crmworkflowservice.exe3.0.5300.18733,888,47224-Dec-200812:39x86
Edit_article.aspxNot applicable6,92723-Dec-200805:18Not applicable
Find.aspxNot applicable3,19213-May-200820:06Not applicable
Grid.htcNot applicable17,56013-May-200820:06Not applicable
Help.cssNot applicable1,13713-May-200820:06Not applicable
Help.jsNot applicable4,04213-May-200820:06Not applicable
Help_toc.xslNot applicable3,83713-May-200820:06Not applicable
Kbtemplateeditor.jsNot applicable5,66613-May-200820:06Not applicable
Listaction.jsNot applicable9,10213-May-200820:06Not applicable
Microsoft.crm.application.components.application.dll3.0.5300.1873686,93624-Dec-200810:14x86
Microsoft.crm.application.components.core.dll3.0.5300.1873289,62424-Dec-200810:34x86
Microsoft.crm.application.components.platform.dll3.0.5300.1873367,44824-Dec-200810:43x86
Microsoft.crm.application.components.strings.dll3.0.5300.1873723,80023-Dec-200818:34x86
Microsoft.crm.application.components.ui.dll3.0.5300.1873219,99224-Dec-200810:14x86
Microsoft.crm.application.pages.dll3.0.5300.1873969,56024-Dec-200810:14x86
Microsoft.crm.dll3.0.5300.1873383,83224-Dec-200810:34x86
Microsoft.crm.managedinterop.dll3.0.5300.187380,72824-Dec-200810:34x86
Microsoft.crm.metadatahelper.dll3.0.5300.187380,72824-Dec-200810:43x86
Microsoft.crm.objectmodel.dll3.0.5300.1873322,39224-Dec-200810:34x86
Microsoft.crm.platform.bulkoperationcontrolassembly.dll3.0.5300.187335,67223-Dec-200823:25x86
Microsoft.crm.platform.server.dll3.0.5300.1873244,56824-Dec-200810:43x86
Microsoft.crm.reports.reportschedule.dll3.0.5300.187397,11223-Dec-200823:25x86
Microsoft.crm.tools.workflowlibrary.dll3.0.5300.1873273,24023-Dec-200823:26x86
Mscrmcustom.dll3.0.5300.1873187,73624-Dec-200810:03x86
Msvcr71.dll7.10.3052.4355,03208-Dec-200622:06x86
Pkgutil.cmdNot applicable11308-Dec-200606:06Not applicable
Pkgutil.exe1.2.3297.10188,79208-Dec-200622:06x86
Print_dlg.aspxNot applicable8,82213-May-200820:06Not applicable
Toc.aspxNot applicable4,46613-May-200820:06Not applicable
Crmsecurity.dll3.0.5300.1873768,34424-Dec-200812:43x86
Microsoft.crm.dll3.0.5300.1375,56017-Nov-200504:39x86
Microsoft.crm.managedinterop.dll3.0.5300.180,64817-Nov-200504:38x86
Microsoft.crm.metadatahelper.dll3.0.5300.180,64817-Nov-200504:38x86
Microsoft.crm.objectmodel.dll3.0.5300.1318,21617-Nov-200504:39x86
Microsoft.crm.platform.server.dll3.0.5300.1244,48817-Nov-200504:39x86
Crmdbhotfix.dll3.0.5300.1873103,25624-Dec-200809:39x86
Crmhotfix.cdfNot applicable16,23016-Jan-200906:22Not applicable
Kb927207_client.dll3.0.5300.187366,90424-Dec-200811:27x86
Kb930604_client.dll3.0.5300.187370,48824-Dec-200811:27x86
Kb930610_client.dll3.0.5300.1873114,52024-Dec-200811:27x86
Kb931627_client.dll3.0.5300.1873157,52824-Dec-200811:27x86
Kb932205_client.dll3.0.5300.187368,95224-Dec-200811:27x86
Kb933214_client.dll3.0.5300.187376,12024-Dec-200811:27x86
Kb933423_client.dll3.0.5300.187396,08824-Dec-200811:27x86
Kb933658_client.dll3.0.5300.187372,53624-Dec-200811:27x86
Kb935529_client.dll3.0.5300.187376,63224-Dec-200811:27x86
Kb935844_client.dll3.0.5300.1873120,66424-Dec-200811:27x86
Kb936019_client.dll3.0.5300.187367,41624-Dec-200811:27x86
Kb936204_client.dll3.0.5300.187397,62424-Dec-200811:27x86
Kb938125_client.dll3.0.5300.187367,41624-Dec-200811:27x86
Kb938238_client.dll3.0.5300.187375,60824-Dec-200811:27x86
Kb940496_client.dll3.0.5300.187377,14424-Dec-200811:27x86
Kb940761_client.dll3.0.5300.187397,11224-Dec-200811:27x86
Kb944256_client.dll3.0.5300.187385,84824-Dec-200811:27x86
Kb952151_client.dll3.0.5300.1873132,95223-Dec-200819:27x86
Mscrmcustom.dll3.0.5300.1873187,73624-Dec-200810:03x86

Microsoft Dynamics CRM 3.0 client for Microsoft Office Outlook Compatibility Release

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Setup.xmlNot applicable3,94416-Jan-200906:36Not applicable
V3cclientpatch30.mspNot applicable3,044,35216-Jan-200907:20Not applicable
Articleseditcontent.xslNot applicable5,52702-Dec-200723:23Not applicable
Crmcache.dll3.0.5300.1873299,35224-Dec-200811:32x86
Crmnativeinteropproxy.dll3.0.5300.18733,402,07223-Dec-200819:32x86
Crmobjectmodel.dll3.0.5300.18736,741,33624-Dec-200811:32x86
Crmsecurity.dll3.0.5300.1873768,34424-Dec-200811:41x86
Edit_article.aspxNot applicable6,92723-Dec-200805:19Not applicable
Find.aspxNot applicable3,19213-May-200820:06Not applicable
Grid.htcNot applicable17,56013-May-200820:06Not applicable
Help.cssNot applicable1,13713-May-200820:06Not applicable
Help.jsNot applicable4,04213-May-200820:06Not applicable
Help_toc.xslNot applicable3,83713-May-200820:06Not applicable
Listaction.jsNot applicable9,10213-May-200820:06Not applicable
Microsoft.crm.application.components.application.dll3.0.5300.1873596,82424-Dec-200810:14x86
Microsoft.crm.application.components.core.dll3.0.5300.1873293,72024-Dec-200810:34x86
Microsoft.crm.application.components.platform.dll3.0.5300.1873408,40824-Dec-200810:34x86
Microsoft.crm.application.components.strings.dll3.0.5300.1873723,80023-Dec-200818:34x86
Microsoft.crm.application.components.ui.dll3.0.5300.1873219,99224-Dec-200810:13x86
Microsoft.crm.application.pages.dll3.0.5300.1873736,08824-Dec-200810:14x86
Microsoft.crm.dll3.0.5300.1873383,83224-Dec-200810:43x86
Microsoft.crm.managedinterop.dll3.0.5300.187380,72824-Dec-200810:35x86
Microsoft.crm.metadatahelper.dll3.0.5300.187380,72824-Dec-200810:43x86
Microsoft.crm.objectmodel.dll3.0.5300.1873322,39224-Dec-200810:35x86
Microsoft.crm.platform.server.dll3.0.5300.1873244,56824-Dec-200810:43x86
Print_dlg.aspxNot applicable8,82213-May-200820:06Not applicable
Toc.aspxNot applicable4,46613-May-200820:06Not applicable
Setup.xmlNot applicable1,76016-Jan-200906:36Not applicable
V3clightclientpatch30.mspNot applicable579,07216-Jan-200907:20Not applicable
Microsoft.crm.application.components.core.dll3.0.5300.1873293,72024-Dec-200810:34x86
Microsoft.crm.application.components.platform.dll3.0.5300.1873408,40824-Dec-200810:34x86
Microsoft.crm.application.components.strings.dll3.0.5300.1873723,80023-Dec-200818:34x86
Microsoft.crm.dll3.0.5300.1873383,83224-Dec-200810:43x86
Microsoft.crm.platform.server.dll3.0.5300.1873244,56824-Dec-200810:43x86

Microsoft Dynamics CRM 3.0 client for Microsoft Office Outlook

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Articleseditcontent.xslNot applicable5,52702-Dec-200723:23Not applicable
Crmcache.dll3.0.5300.1873299,35224-Dec-200811:33x86
Crmmsg.dll1.2.3297.12316,08808-Dec-200622:06x86
Crmnativeinteropproxy.dll3.0.5300.18733,402,07224-Dec-200811:33x86
Crmobjectmodel.dll3.0.5300.18736,741,33624-Dec-200811:33x86
Crmsecurity.dll3.0.5300.1873768,34424-Dec-200812:43x86
Edit_article.aspxNot applicable6,92723-Dec-200805:19Not applicable
Find.aspxNot applicable3,19213-May-200820:06Not applicable
Grid.htcNot applicable17,56013-May-200820:06Not applicable
Help.cssNot applicable1,13713-May-200820:06Not applicable
Help.jsNot applicable4,04213-May-200820:06Not applicable
Help_toc.xslNot applicable3,83713-May-200820:06Not applicable
Listaction.jsNot applicable9,10213-May-200820:06Not applicable
Microsoft.crm.application.components.application.dll3.0.5300.1873596,82424-Dec-200810:43x86
Microsoft.crm.application.components.core.dll3.0.5300.1873293,72024-Dec-200810:34x86
Microsoft.crm.application.components.platform.dll3.0.5300.1873408,40824-Dec-200810:34x86
Microsoft.crm.application.components.strings.dll3.0.5300.1873723,80024-Dec-200810:34x86
Microsoft.crm.application.components.ui.dll3.0.5300.1873219,99224-Dec-200810:43x86
Microsoft.crm.application.pages.dll3.0.5300.1873736,08824-Dec-200810:43x86
Microsoft.crm.dll3.0.5300.1873383,83224-Dec-200810:43x86
Microsoft.crm.managedinterop.dll3.0.5300.187380,72824-Dec-200810:34x86
Microsoft.crm.metadatahelper.dll3.0.5300.187380,72824-Dec-200810:43x86
Microsoft.crm.objectmodel.dll3.0.5300.1873322,39224-Dec-200810:35x86
Microsoft.crm.platform.server.dll3.0.5300.1873244,56824-Dec-200810:43x86
Mscrmcustom.dll3.0.5300.1873187,73624-Dec-200810:03x86
Msvcr71.dll7.10.3052.4355,03208-Dec-200622:06x86
Pkgutil.cmdNot applicable11308-Dec-200606:06Not applicable
Pkgutil.exe1.2.3297.10188,79208-Dec-200622:06x86
Print_dlg.aspxNot applicable8,82213-May-200820:06Not applicable
Toc.aspxNot applicable4,46613-May-200820:06Not applicable
Microsoft.crm.dll3.0.5300.1375,57617-Nov-200504:42x86
Microsoft.crm.managedinterop.dll3.0.5300.180,66417-Nov-200504:42x86
Microsoft.crm.metadatahelper.dll3.0.5300.180,66417-Nov-200504:42x86
Microsoft.crm.objectmodel.dll3.0.5300.1318,23217-Nov-200504:42x86
Microsoft.crm.platform.server.dll3.0.5300.1244,50417-Nov-200504:42x86
Crmhotfix.cdfNot applicable9,19616-Jan-200906:21Not applicable
Mscrmcustom.dll3.0.5300.1873187,73624-Dec-200810:03x86

Installation information

Install this hotfix on computers that are running the Microsoft Dynamics CRM 3.0 server and the Microsoft Dynamics CRM 3.0 client for Outlook.

Prerequisites

You must have the Microsoft Dynamics CRM 3.0 server and the Microsoft Dynamics CRM 3.0 client for Outlook installed to apply this hotfix.

Restart requirement

If you are prompted, restart the computer after you apply this hotfix.

Removal information

To remove this hotfix from a computer that is running Windows Server 2003, Windows XP, or Windows 2000, use Add or Remove Programs in Control Panel.

System administrators can use the Spuninst.exe tool to remove this hotfix from a computer that is running Windows Server 2003, Windows XP, or Windows 2000.

The Spuninst.exe tool is located in the %Windir%\$NTUninstallKB960079$\Spuninst folder.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates
For more information about Microsoft Dynamics CRM software hotfix and update package terminology, click the following article number to view the article in the Microsoft Knowledge Base:
887283  (http://support.microsoft.com/kb/887283/ ) Microsoft Business Solutions CRM software hotfix and update package naming standards

APPLIES TO
  • Microsoft CRM 3.0
  • Microsoft Business Solutions CRM Software Development Kit (SDK)
Keywords: 
kbautohotfix kbexpertiseinter kbfix kbsurveynew kbmbsmigrate kbqfe kbhotfixserver KB960079