Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Status

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

↑ Back to the top


More information

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

↑ Back to the top


Keywords: KB838465, kbprb

↑ Back to the top

Article Info
Article ID : 838465
Revision : 3
Created on : 6/1/2004
Published on : 6/1/2004
Exists online : False
Views : 314