Excel datasource in JasperReports/iReport: Unable to get value for field 'Date' of class 'java.sql.Date'
I've used an Excel file as datasource for building report with iReport . The xls file contains dates yyyy-MM-dd format. I've set the Date field class to java.sql.Date and I click on preview in iReport . There is an error: Unable to get value for field 'Date' of class 'java.sql.Date'. I have tried with java.util.Date too. Do you have any ideas? It is quite simple. I've xls file ( birhdays.xls ) like this: The datasource definition (in iReport ) is: As you can see from the image above I've set yyyy-MM-dd format for date field in DS definition. The date field definition in jrxml file: <field name