I was successfully able to use the format $X{IN, column_name, list_parameter_name}[/code]in a simple report query with java.util.collection parameter: Select * from table where $X{IN, column_name, list_parameter_name}[/code]However when I try to use $X{IN, column_name, list_parameter_name}[/code]inside the quotes of a dynamic query I get an error message: declare @sql_query nvarchar(4000)set @sql_query = 'select * from wo_hdr where $X{IN, wg_name, wg_name_list} ' EXEC sp_executesql @sql_query"Error preparing statement for executing the report query: Caused by: java.sql.SQLException: Invalid parameter index 1. "[/code]I tried putting the parameter inside an SQL variable but it says the parameter type is not supposed in a query. I tried using $P!{wg_name_list}[/code]instead but then the list is concatenated with [] brackets instead of () so the query gets a syntax error. Does anyone know how to get this done? Thanks, Chris