Project: talenddataquality
Issue TDQ-4747: Get error when used overview template to generate a report
Used the embedded overview template 'report_03' to generate a report, I get an error and there is no document generated! !STACK 0 net.sf.jasperreports.engine.JRException: Error executing SQL statement for : report_03 at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:141) at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:671) at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:591) at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1212) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:842) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:791) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) at org.talend.dataquality.reporting.JasperReportBuilder.createSubReport(Unknown Source) at org.talend.dataquality.reporting.JasperReportBuilder.run(Unknown Source) at org.talend.dataprofiler.core.tdq.action.ReportDocGenerator.generateReport(Unknown Source) at org.talend.dataprofiler.core.tdq.action.ReportDocGenerator.generateDoc(Unknown Source) at org.talend.dataprofiler.core.tdq.action.ReportDocGenerator.generate(Unknown Source) at org.talend.dataprofiler.core.tdq.ui.action.GenerateReportFileAction$1.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'TDQ_OVERVIEW_INDVALUE.RUN_TIME' in 'where clause' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.mysql.jdbc.Util.handleNewInstance(Util.java:403) at com.mysql.jdbc.Util.getInstance(Util.java:378) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3378) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3310) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1853) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1976) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2503) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1888) at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:135) ... 14 more
Story points: 8