IBM Support

Type mismatch in method CoerStrToNum: STRING found, [DOUBLE/SHORT/LONG] expected

Technote (troubleshooting)


Problem

In Lotus Notes/Domino® conversion errors such as the following occur when in LotusScript code attempts to do arithmetic:

"Type mismatch in method CoerStrToNum: STRING found, DOUBLE expected"
"Type mismatch in method CoerStrToNum: STRING found, SHORT expected"
"Type mismatch in method CoerStrToNum: STRING found, LONG expected"


Cause

This issue is caused by an error during the execution of the LotusScript code that you are running.

A variable contains a string value, and the code tries to use that value as if it were a number.


Resolving the problem

As stated above, a variable contains a string value, and the code tries to use that value as if it were a number. This can work if the value of the string is a legal number (for example, "7.90"), but if it cannot be converted to a number (for example, "Sam"), the error will occur.


If you are not the developer of the custom application that the error is occurring within, please advise your developer of this error, so that the code can be corrected.

If this error is occurring in a database based on a standard template, such as a mail file, for example, then the errant data is likely within a document (such as a calendar entry or profile document). Please don't hesitate to engage Notes product support to investigate your specific situation further and to assist with pinpointing the source of the error.

Document information

More support for: IBM Domino Designer
LotusScript

Software version: 8.5, 9.0

Operating system(s): Windows

Software edition: Edition Independent

Reference #: 1303181

Modified date: 15 May 2008


Translate this page: