JRRuntimeException: Error evaluating expression. Why my expression is wrong?

0

Hi,

I made a report and I'm getting this error:

net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: IF(AND($F{nombreDocumento}==null,$F{extensionDocumento}==null),"Sin documentación adjunta",$F{nombreDocumento} + "." + $F{extensionDocumento})

Why my expression is wrong? Jaspersoft accepts it without any warning/error.

Thanks.

Attachments: 
dgomezm's picture
15
Joined: Mar 11 2020 - 12:41am
Last seen: 2 months 4 weeks ago

1 Answer:

1

Solved!

I forgot this:

       <dependency>
            <groupId>net.sf.jasperreports</groupId>
            <artifactId>jasperreports-functions</artifactId>
            <version>6.2.2</version>
        </dependency>

dgomezm's picture
15
Joined: Mar 11 2020 - 12:41am
Last seen: 2 months 4 weeks ago
Feedback
randomness