问题
When I am trying to run my BIRT viewer, the following error is displayed:
Can not load the report query: 163. Errors occurred when generating the report document for the report element with ID 163. (Element ID:163)
But the same module is successfully giving result in report design in Eclipse. I am using JDBC connection. How do I solve this?
回答1:
Verify that your jdbc driver to the plugins/org.eclipse.birt.report.data.oda.jdbc/driver folder. That's usually what causes this.
It could also be a parameter that not getting set when you load the report.
回答2:
I had the same error message and my problem was in the query:
My Scripted DataSet was returning a String value mapped to a Integer column.
回答3:
If you want to log the SQL query text, set logging on the org.eclipse.birt.report.data.oda.jdbc.Statement , which is responsible for preparing the SQL queries.
回答4:
In my case, the datasource for BIRT was not configured correctly. I needed to make sure the JNDI name matched what was in the config for my container.
来源:https://stackoverflow.com/questions/6693310/birt-viewer-cannot-load-the-report-query