I have a Query linked to a Report in Reports Server and I can see from the Tomcat logs that the SQL query is being run. However, the report doesn't display any results.
If I put the same query into a <queryString> element within the JRXML file, I do see results.
Why would the same query work differently when using a Query compared with using a <queryString>?
Robert
2 Answers:
Posted on September 30, 2015 at 11:51pm
Thanks hozawa but the only place I see in JSS where you can link a report to a Query held in a server's repository is when you publish it to the server and you are asked to choose a Datasource or a Query. But I don't see an option to preview it there. How do I link a report to a remote Query before publishing the report?
Robert
Hi,
I think that I'm facing the same problem. I've been blocked by that for 2 weeks now. I really think that there is a bug behind.
http://community.jaspersoft.com/questions/952406/error-jrjdbcqueryexecut...
I'm not getting quite the same thing. I don't have any warnings or errors, in fact I can see in the logs that the query is being run and seems to return the expected number of results:
2015-10-01 08:15:09,631 DEBUG ColumnDataCacheHandler,pool-4-thread-21:341 - Recorded cached data source of 2 records