Microsoft KB Archive/908509

= A &quot;The statement has been terminated&quot; error message is logged when a program calls the CRMArticle.Create method on a computer that is running the server version of Microsoft CRM 1.2 =

Article ID: 908509

Article Last Modified on 11/19/2007

-

APPLIES TO


 * Microsoft CRM 1.2
 * Microsoft CRM Software Development Kit, when used with:
 * Microsoft CRM 1.2

-



SYMPTOMS
When a program calls the CRMArticle.Create method repeatedly on multiple threads, the following error message is logged in the Application log:

SOAP Server Application Faulted

Error code: 80040e2f

Description: The statement has been terminated.

Source: System.Web.ServicesThread

Name: Worker

This problem occurs when you run a program that calls the CRMArticle.Create method on a computer that is running the server version of Microsoft CRM 1.2.



CAUSE
This problem may occur when the CRMArticle.Create method runs several other methods at the same time that the CRMArticle.Create method creates an article record in the corresponding database tables. One of these methods generates a random number. When this method is put under stress, the random number generator may produce a duplicate number.

This kind of stress occurs when a program calls the CRMArticle.Create method repeatedly on multiple threads. The program quits when the program tries to insert the duplicate article number into the kbArticleBase table, and the error message is logged.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: crm crm12 crm1.2

Keywords: kbmbscrm40no kbmbscustomization kbmbsmigrate kbpubtypekc KB908509

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.