PRB: Error Message: Wrong Number of Arguments or Invalid Property Assignment (328062)



The information in this article applies to:

  • Microsoft Commerce Server 2002

This article was previously published under Q328062

SYMPTOMS

When you try to change a Product, and then save the changes through BizDesk, you may receive the following error message:
Number: 0x1c2
Description: Wrong number of arguments or invalid property assignment
Source: Microsoft VBScript runtime error
HelpFile:
HelpContext: 0

WORKAROUND

To work around this problem, open /Retail2002BizDesk/Catalogs/Editor/edit_Product.asp, and then change line 2142 as follows:
  • Original Code
    if not bDeny (g_dPermissions, sItem) then oFields(sItem) = variantValue(g_oDict(sItem), sItem)
    					
  • New Code
    if not bDeny (g_dPermissions, sItem) then oFields(sItem).Value = variantValue(g_oDict(sItem), sItem)
    					

MORE INFORMATION

If the following code is commented out on line 2128 of Edit_Product.asp
On Error Resume Next
				
the following error should appear as a Microsoft Internet Information Services (IIS) error:
Error Type:
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment: 'oFields'
/Retail2002BizDesk/Catalogs/Editor/edit_Product.asp, line 2142

Modification Type:MajorLast Reviewed:10/24/2002
Keywords:kberrmsg kbprb KB328062