Microsoft KB Archive/940739

From BetaArchive Wiki

Article ID: 940739

Article Last Modified on 11/16/2007



APPLIES TO

  • Microsoft Dynamics CRM 3.0



The hotfix that is discussed in this article is not available for the Chinese version of Microsoft Dynamics CRM or for the Japanese version of Microsoft Dynamics CRM.

SYMPTOMS

When you try to run a Microsoft Dynamics CRM 3.0 workflow, you receive the following error message:

Exception from HRESULT: 0x80044150

This problem occurs if more than 2,097 business units exist.

CAUSE

This problem occurs because the query that is generated by the Workflow service in Microsoft Dynamics CRM exceeds the maximum number of SQL parameters that are allowed by Microsoft SQL Server.

Note The maximum number of SQL parameters is 2,100.

RESOLUTION

Hotfix information

A supported hotfix is now 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 Microsoft Dynamics CRM 3.0 update rollup that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

Note If additional issues occur or 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. To create a separate service request, visit the following Microsoft Web site:

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

File name File version File size Date Time
Workflow.dll 3.0.5300.1694 4,102,672 27-Oct-2007 01:31

Installation information

Install this hotfix on computers that are running the Microsoft Dynamics CRM 3.0 server.

Prerequisites

You must have Microsoft Dynamics CRM 3.0 installed to apply this hotfix. Additionally, you must have Update Rollup 2 for Microsoft Dynamics CRM 3.0 installed to apply this hotfix.
For more information about Update Rollup 2 for Microsoft Dynamics CRM 3.0, click the following article number to view the article in the Microsoft Knowledge Base:

927751 Update Rollup 2 for Microsoft Dynamics CRM 3.0 is available


Restart requirement

If you are prompted to restart the computer, you must 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%\$NTUninstallKB940739$\Spuninst folder. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

832475 Description of the new features in the package installer for Windows software updates


MORE INFORMATION

If you have enabled platform tracing, you receive an error message that resembles the following error message:

Call to COleRecordSet::Open() failed. Query = select wfprocess.Name as 'name',wfprocess.ProcessId as 'processid',wfprocess.ProcessTypeCode as 'processtypecode',wfprocess.BusinessUnitId as 'businessunitid' from WFProcess as wfprocess where wfprocess.DeletionStateCode in (0) and (wfprocess.EntityType = ? and wfprocess.StateCode = ? and wfprocess.ProcessTypeCode > ? and (wfprocess.BusinessUnitId in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,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?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?))) order by wfprocess.Name asc Error = 0x80040e14

[Date Time] Process:w3wp |Thread:2784 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | InternalCrmSetErrorInfoV File: c:\bt\224\src\platform\include\util\icrmerror.h Line: 250

><description>Generic SQL error.</description><details>The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100. SQL state - 42000, Native error - 8003</details><file>c:\bt\224\src\platform\include\omcommon\dataaccess.inl</file><line>445</line>

[Date Time] Process:w3wp |Thread:2784 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | COLEDataAccess::ExecuteQuery File: c:\bt\224\src\platform\include\omcommon\dataaccess.inl Line: 739

>hr = 0x80044150

[Date Time] Process:w3wp |Thread:2784 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | COLEDataAccess::ExecuteQuery File: c:\bt\224\src\platform\include\omcommon\dataaccess.inl Line: 611

>hr = 0x80044150

[Date Time] Process:w3wp |Thread:2784 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CProcessT<class CSecLib>::RetrieveByObject File: c:\bt\224\src\platform\include\om\crm\workflow.inl Line: 1106

>hr = 0x80044150

[Date Time] Process:w3wp |Thread:2784 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CCrmProcessController::RetrieveProcessesByObjectInternal File: c:\bt\224\src\platform\objectmodel\workflow\crmprocesscontroller.cpp Line: 257

>hr = 0x80044150

[Date Time] Process:w3wp |Thread:2784 |Category: Unmanaged.Platform |User: PlatformUser |Level: Verbose | CCrmProcessController::RetrieveProcessesByObject2 File: c:\bt\224\src\platform\objectmodel\workflow\crmprocesscontroller.cpp Line: 236

>Exiting Method

Additionally, this error message is also logged in the W3wp_Date.log trace log file. The folder that contains the W3wp_Date.log trace log file is listed in the following registry entry:

HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM\TraceDir


For more information about how to enable platform tracing in Microsoft Dynamics CRM 3.0, click the following article number to view the article in the Microsoft Knowledge Base:

907490 How to enable tracing in Microsoft Dynamics CRM


For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


887283 Microsoft Business Solutions CRM software hotfix and update package naming standards


Keywords: kberrmsg kbmbsworkflow kbhotfixserver kbqfe kbmbsmigrate kbpubtypekc KB940739