Error evaluating expression
Posted on May 4, 2017 at 9:34am
Hi, please help me
I have an expression like that:
IF($V{TOTFIN3}==0,0,($V{TOTTR3}/$V{TOTFIN3}))
And I have this error:

So, If this isdividing by zero why dont apply the condition.
Help me!!!
Joined: Apr 12 2017 - 3:22pm
Last seen: 4 years 5 months ago
Posted on May 4, 2017 at 10:56pm
This is a Java problem, you must use $V{TOTFIN3}'s methods for comparing value. Something like $V{TOTFIN3}.intValue() =0.
Mariano
Joined: Oct 21 2013 - 8:08am
Last seen: 2 days 5 hours ago
Posted on May 5, 2017 at 4:14am
$V{TOTTR3}/$V{TOTFIN3} is evaluated in expression because it is a function parameter.
Try this expression instead: $V{TOTFIN3}==0 ? 0 : $V{TOTTR3}/$V{TOTFIN3}
Joined: Sep 26 2006 - 8:06pm
Last seen: 2 months 3 weeks ago
Please post the expression you're using from the jrxml