2002 JI Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: mike w - mwans ')' Expected Error 2003-04-30 14:46 Hello, I am creating a dynamic query and I am getting the following compilation error: C:ECPSourcewwwreportsTBL_02_EVENT_TOTAL.java:104: ')' expected value = (java.lang.String)("SELECT SUM(COUNT(VW_TBL_02_EVENTS.YEAR)) AS EVENTS_TOTAL FROM VW_TBL_02_EVENTS " + ((java.lang.String)parameter_yearExpression.getValue()) " " + " " + ((java.lang.String)parameter_agencyCodeExpression.getValue()) " " + " " + ((java.lang.String)parameter_countyExpression.getValue()) + " GROUP BY VW_TBL_02_EVENTS.SHORT_DESCRIPTION")); Here is the code I believe it is referring to: <parameter name="theQuery" class="java.lang.String"> <defaultValueExpression><![CDATA["SELECT SUM(COUNT(VW_TBL_02_EVENTS.YEAR)) AS EVENTS_TOTAL FROM VW_TBL_02_EVENTS " + $P{yearExpression} " " + " " + $P{agencyCodeExpression} " " + " " + $P{countyExpression} + " GROUP BY VW_TBL_02_EVENTS.SHORT_DESCRIPTION")]]></defaultValueExpression> </parameter> I have checked the other parameter expressions and they are Ok. It is when I combine all of them into this one statement that I get a problem. Please help. Thanks, Mike By: mike w - mwans RE: ')' Expected Error 2003-04-30 15:02 I figured it out, missed a '+' symbol. 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