mbmorgan Posted April 25, 2014 Share Posted April 25, 2014 In Jaspersoft Studio Professional...My query looks like this:select count(field1), CASE field2WHEN '...' THEN '...'...ELSE 'Other'END as field2from tablewhere ...group by field2This query works fine when I run it in the actual database client, but when I copy it over to the query dialog box in Jasper and hit "read fields" I get an error:"Error converting SQL statement into byte array..." What am I doing wrong? Thanks, M.B.Morgan Link to comment Share on other sites More sharing options...
ybablyuk Posted April 28, 2014 Share Posted April 28, 2014 Hello, I think problem in "group by field2" part. Can you please run you sql in any sql client, I think you will have error. Link to comment Share on other sites More sharing options...
mbmorgan Posted April 28, 2014 Author Share Posted April 28, 2014 I tested it in the database client first; there was no error. Link to comment Share on other sites More sharing options...
gudrun.hannesardottir Posted May 4, 2017 Share Posted May 4, 2017 Hi, just curious :) Did you figure out how to get this to work? I have the same problem. Thanks 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