Query epoch date in SQL Server does not work from Jaspersoft Server


I have a report which takes as an input parameter a date using the date picker.  The date is stored as an Epoch date in SQL Server.

When I run the report in Jaspersoft Studio it works.  The relevant bit of query looks like this:  and cr.open_date + 7200 >= datediff(ss, '19700101', '$P!{Open Date from}' )

I publish the report to Jaspersoft Server and when I try to run it I get error below.  What am I doing wrong?  

The server has encountered an error. Please excuse the inconvenience.

Error Message

Error filling report

Error Message

net.sf.jasperreports.engine.JRException: Error executing SQL statement for: BCC Tickets created.

Error Message

java.sql.SQLDataException: [Tibcosoftware][SQLServer JDBC Driver][SQLServer]Conversion failed when converting date and/or time from character string.

heila.mckinley's picture
Joined: Jul 16 2019 - 2:50am
Last seen: 2 weeks 4 days ago

0 Answers:

No answers yet