You receive a "VBScript runtime" error message when you browse a product variant in a Commerce Server 2002 Web site (838465)



The information in this article applies to:

  • Microsoft Commerce Server 2002

SYMPTOMS

When you try to display a product variant in a Microsoft Commerce Server 2002 Web site, you may receive the following error:

Error Type: Microsoft VBScript runtime (0x800A01A8) Object required:
'MSCSCatalogAttribs.Value(...)' /retail/product.asp, line 358

CAUSE

This problem may occur if your Microsoft Commerce Server 2000 Web site contains a product catalog and then you upgrade Commerce Server 2000 to Commerce Server 2002.

RESOLUTION

To resolve this issue for a Web site that is based on a Commerce Server solution site, modify the Product.asp file. After you complete these changes, you can browse the product variants on your Commerce Server 2002 site.

To update the Product.asp file, follow these steps:
  1. Locate the Product.asp file in the following folder:

    Drive :\Inetpub\wwwroot\SiteName

  2. Right-click Product.asp, point to Open With, and then click Choose Program.
  3. In the Program list, click Notepad, and then click OK.
  4. In Notepad locate the following code:
    listGetVariantPropertiesToShow(ByVal fldsProps)
    If (fldProp.Name <> "TimeStamp") And (fldProp.Name <> "cy_list_price") Then 
  5. Replace the original code with the following code:
    listGetVariantPropertiesToShow(ByVal fldsProps)
    If (fldProp.Name <> "TimeStamp") And (fldProp.Name <> "cy_list_price")
    And (fldProp.Name <> "VariantID") Then  
  6. Save your changes in Notepad.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about Commerce Server 2002, visit the following Microsoft Web site.

Modification Type:MajorLast Reviewed:6/1/2004
Keywords:kbprb KB838465 kbAudDeveloper