clayshannon Posted September 27, 2011 Share Posted September 27, 2011 I added a data source to my report in iReport Designer 4.1.2 (an .xls file)I then dragged some "Text Field"s from the Report Elements palette to the Detail band.I then set each TextField in turn to a different column in the .xls file, so that they are in this format: "$F{field}$F{CITY_OR_TOWN}"I then tried to compile the report, but got: "Field not found: field" for all four of my TextFields.What step am I missing here? Link to comment Share on other sites More sharing options...
clayshannon Posted September 27, 2011 Author Share Posted September 27, 2011 I tried the same thing with the same data, but a .csv file replacing the .xls file. I got, I think, the same results. Here is some more specific feedback, from an iReportOutput pane: net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :      1. Field not found : field      2. Field not found : field      3. Field not found : field      4. Field not found : field     at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258)     at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140)     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:212)     at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:128)     at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:515)     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Compilation running time: 63 Link to comment Share on other sites More sharing options...
lknueve Posted September 28, 2011 Share Posted September 28, 2011 change your text field expression from "$F{field}$F{CITY_OR_TOWN}" to "$F{CITY_OR_TOWN}" Link to comment Share on other sites More sharing options...
clayshannon Posted September 28, 2011 Author Share Posted September 28, 2011 lknueveWrote: change your text field expression from "$F{field}$F{CITY_OR_TOWN}" to "$F{CITY_OR_TOWN}" Thanks, that did the trick.So the tool needs to be fixed, because that was what IT entered - I didn't enter the $F twice, etc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now