The query dialog box in Jaspersoft Studio will not let me "read fields" with my query. Let me show what I have: A Query_Input_Control parameter, Integer class, set for prompting, to accept 1, 2, 3, etc. A Query_Controller parameter, String class, NOT set for prompting, with default value expression like: $P{Query_Input_Control} == 1 ? $P{Query_1} : $P{Query_Input_Control} == 2 ? $P{Query_2} : "select * from table where column = 'value'" The Query_1 and Query_2 are themselves parameters, String class, and NOT set for prompting, with default value expressions as the queries I want to run based on the input control. As for the actual query for the report, I have simply: $P!{Query_Controller} Upon clicking "Read Fields" in the dialog box, I get an error: "Expected lexical element not found: CREATE, DROP, SELECT, INSERT..." which I find odd, since my conditional queries are vanilla SELECT statements. What am I doing wrong? Any assistance is appreciated. Thanks, MBM.