DbStorage Call Causes Access Violation During Call to MSCSCache (326622)



The information in this article applies to:

  • Microsoft Commerce Server 2002

This article was previously published under Q326622

SYMPTOMS

When an application performs a DbStorageGetData application programming interface (API) call, the operation may be unsuccessful, and you may receive an access violation. This occurs after you use GetData to get the Orderform XML data from the OrderGroup table. If you try to execute the application again, the application may stop responding (hang).

CAUSE

When you use DbStorage (which uses IPersistXML) to save data, the data that is stored may be incomplete. An exception occurs with GetData during the XML load operation, and GetData is not handled.

RESOLUTION

To resolve this problem, obtain the latest service pack for Commerce Server 2002. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

328814 INF: How to Obtain the Latest Commerce Server 2002 Service Pack

The English version of this fix has the file attributes (or later) 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 tool in Control Panel.
   Date         Time   Version     Size    File name     Platform
   --------------------------------------------------------------
   26-Jul-2002  12:03  4.5.2207.0  180,496 Mscscache.dll x86

				

STATUS

Microsoft has confirmed that this is a problem in Commerce Server 2002. This problem was first corrected in Commerce Server 2002 Service Pack 1 (SP1).

MORE INFORMATION

The following is an example of the missing XML data. The missing part is the Data element of the CONTENTENTLISTFACTORY tag:
	<DATA></DATA>
</CONTENTLISTFACTORY><BR/>
				
The hotfix provides the following event log entry if this condition is identified when this exception is handled:
Event Type: Error
Event Source: Commerce Server 2002
Event Category: None
Event ID: 4097

Description:
ContentListFactory::IPersistXML::LoadXML: Missing <DATA> element in the XML representation of a ContentListFactory. The ContentListFactory will be recreated without any data.
NOTE: The order form information is not available to the Commerce component at this point. However, the application that performs the operations can check the content list. If the content list is empty, this order form can be identified.

Modification Type:MinorLast Reviewed:9/27/2005
Keywords:kbHotfixServer kbQFE kbbug kbCommServ2002preSP1fix kbCommServ2002SP1fix kbfix KB326622