Error on report validation

Hi

I have created report with date filter and I tried to apply validation on date but it is not working.

It shows below error:

Error applying field validation Groovy script.
org.springframework.scripting.ScriptCompilationException: Could not compile static script; nested exception is groovy.lang.MissingPropertyException: No such property: params for class: Script1

Screenshot from 2023-09-18 12-32-26

Hello,

This error is due to a problem in the groovy script. Please send an example of a report or your groovy script.

Regards,
Nikita

Hi

Here’s the example of groovy script.

image

There is an error in your script, to get the parameter value you need to use the value variable.

image

Regards,
Nikita