cancel
Showing results for 
Search instead for 
Did you mean: 

The string is non-numeric error message

Former Member
0 Kudos

Hi All,

I'm getting the following error message whenever I try to refresh my report and scroll to the next page to view the report data.

"The string is non-numeric"

The formula is as below:

If

    (IsNull ({PRODUCTIVITY_LOG.PRODUCTIVE_HOURS})) Then 0

   Else

ToNumber({PRODUCTIVITY_LOG.PRODUCTIVE_HOURS})

I get the error on the "ToNumber({PRODUCTIVITY_LOG.PRODUCTIVE_HOURS})" part of the formula.

Please note that the field "PRODUCTIVITY_LOG.PRODUCTIVE_HOURS" is of the datatype nvarchar(100) in a SQL Server database.

Any ideas on how to avoid this will be much appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Nimish,

Modify the formula to:

If (IsNull ({PRODUCTIVITY_LOG.PRODUCTIVE_HOURS})) Then 0

     Else if isnumeric({PRODUCTIVITY_LOG.PRODUCTIVE_HOURS}) Then

     ToNumber({PRODUCTIVITY_LOG.PRODUCTIVE_HOURS})

     Else 0

-Abhilash

Former Member
0 Kudos

Thanks!

Answers (0)