DictionaryXMLTransform Object Returns "Object Required" Error (291391)



The information in this article applies to:

  • Microsoft Commerce Server 2000

This article was previously published under Q291391

SYMPTOMS

An application uses the DBStorage object to load Commerce.OrderFrom and supplies the OrderForm to the GenerateSampleXMLInstanceFromDictionary method as the Dictionary argument. However, if you call this method on the DBStorage object, you may receive the following error message:
Error "Object required"
The following object and method are utilized:

Object name: DictionaryXMLTransform
Method name: GenerateSampleXMLInstanceFromDictionary

CAUSE

When you parse the dictionary, if an object is found, you call the GetDataStructTypeFromListOrDict function. If the object is a dictionary, you cannot assume that it is a dictionary of dictionaries because, for example, you can have a dictionary of CStrings.

WORKAROUND

To work around this problem, you must use a dictionary of dictionaries.

RESOLUTION

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

297216 INFO: How to Obtain the Latest Commerce Server 2000 Service Pack

The English version of this fix should have the following file attributes or later:
   Date        Time    Version      Size    File name
   --------------------------------------------------------------------
   02/20/2001  05:48p  4.0.0.1658   77,935  DictionaryXMLTransforms.dll
				

STATUS

Microsoft has confirmed that this is a problem in Microsoft Commerce Server 2000. This problem was first corrected in Commerce Server 2000 Service Pack 1.

Modification Type:MinorLast Reviewed:9/23/2005
Keywords:kbHotfixServer kbQFE kbbug kbCommServ2000PreSP1fix kbCommServ2000SP1fix kbfix kbQFE KB291391