2013-07-29 106 views
0

我已经通过替换新的查询sql来编辑来自旧模板的查询。报告设计无效错误消息

错误消息当属:

Compiling to file... C:\ECLIPSE\workspace\EIS-HR\Web-inf\hradmin\HR_EIS1.jasper 
Active top component: null C:\ECLIPSE\workspace\EIS-HR\Web-inf\hradmin\HR_EIS1.jrxml 
net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :        
1. Field not found : DM_DEPT_DESC      2. Field not found : SM_GENDER 
at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:271) 
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:153) 
at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:512) 
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 
Compilation running time: 231 

现场没有发现,哪里是错我的XML文件。

回答

0

看起来您的报表模板正在查找在查询结果中找不到的两个字段(DM_DEPT_DESC和SM_GENDER)。