Error: "List_price Must Be a Number Between 0 and 2147483648"

Last reviewed: February 9, 1998
Article ID: Q175951
The information in this article applies to:

- Microsoft Commerce Server, version 2.0

SYMPTOMS

When you use the Page.RequestMoneyAsNumber datafunction in Commerce Server, you may experience the following error message:

   list_price must be a number between 0 and 2147483648

CAUSE

One cause for this error message is that the RequestMoneyAsNumber function uses the Number settings, rather than the Currency settings, for a specific locale. This only happens in cases where the Number format and the Currency format are not identical, such as Local &H041D (Swedish). The Swedish locale uses the following formats:

   Number  :  1 234,56
   Currency:  1.234,56

Note the group separator of a space in the Number format and the dot in the Currency format.

WORKAROUND

To work around this problem, you can do any of the following:

  • Do not use any digit grouping symbol.
  • Use a space as the digit grouping symbol.
  • In the case of a Swedish locale, use the Danish locale in RequestMoneyAsNumber, as in the following example:

          File name: _UPDATE.ASP
    

          Change the following:
    

             list_price = mscsPage.RequestMoneyAsNumber("list_price", null, 0,
             2147483648)
    
          To:
    
             list_price = mscsPage.RequestMoneyAsNumber("list_price", null, 0,
             2147483648, 1030)
    
    

STATUS

Microsoft has confirmed this to be a problem in Microsoft Commerce Server version 2.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: siteserver data function local seperator separater
seperater
Keywords : kbenv CommMisc kbbug2.00
Version : WINNT:2.0
Platform : winnt
Issue type : kbbug
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.