Microsoft KB Archive/326762

= PRB: Incorrect Error Message When Empty Handle Is Passed to RemoveSpecSearchClause =

Article ID: 326762

Article Last Modified on 9/13/2002

-

APPLIES TO


 * Microsoft Commerce Server 2002 Standard Edition

-



This article was previously published under Q326762



SYMPTOMS
When you use the RemoveSpecSearchClause function in Commerce Server 2002, you may receive an incorrect error message that indicates that Input Parameter 2 is not valid.



CAUSE
The error message is generated when an empty handle is passed to the RemoveSpecSearchClause function.



RESOLUTION
For the RemoveSpecSearchClause function, there is only one parameter possible. To resolve the problem, correct the parameter that is passed to the function so that it is not empty.



MORE INFORMATION
See the ProductCatalog object section in the product documentation.

Steps to Reproduce the Behavior
To reproduce the problem, run the following sample code. Use your password for, and use your computer name for . On Error Resume Next

Dim oCatMan, oProdCat, oRS, tmp, strHandle, newClause

Set oCatMan = CreateObject(&quot;Commerce.CatalogManager&quot;) call oCatMan.Initialize(&quot;Provider=SQLOLEDB;Password= ;User ID=sa;Initial    Catalog=Comm;Data Source=&quot;, true) call oCatMan.ImportXML(&quot;samplecatalog.xml&quot;, true, true) wscript.echo err.number & &quot;; &quot; & err.description Err.Clear Set oProdCat = oCatMan.GetCatalog(&quot;Adventure Works Catalog&quot;) wscript.echo err.number & &quot;; &quot; & err.description Err.Clear newClause = oProdCat.RemoveSpecificationSearchClause(&quot;&quot;) wscript.echo err.number & &quot;; &quot; & err.description Err.Clear

Additional query words: plutonium

Keywords: kbfix kbnofix kbprb kbpending KB326762

-

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

© Microsoft Corporation. All rights reserved.