I am having a problem using a parameter in a report query. The query code is in the Code window below.. The issue is with the following bit of the query AND jobs.test = '$P!{TEST_PROD_TO_QUERY}' If I hardcode the select value for jobs.test in the query to 'PROD' i.e AND jobs.test = 'PROD' the report returns data. But If I replace the hard-coded value with a parameter which has the Default Value Expression set to "PROD", the report returns the error "document has no pages" Its driving me mad...any ideas? ireport version is 3.0.0 Code:select mailer_groups.description, mailers.mailer, mailers.mailer_group, mailers.make, mailers.model, mailers.specification_details, mailing_history.submitted_date, mailing_history.sequence, mailing_history.completed_date, mailing_history.submitted_operator, mailing_history.completed_operator, mailing_history.job_id, mailing_history.file_number, mailing_history.reprint_count, mailing_history.number_of_mailpieces, mailing_history.number_of_reprints, jobs.customer, jobs.department, jobs.document_type FROM mailers, mailer_groups, mailing_history, jobs WHERE mailing_history.mailer = mailers.mailer AND mailing_history.job_id = jobs.job_id AND mailer_groups.mailer_group = mailers.mailer_group AND (mailing_history.completed_date IS NOT NULL OR mailing_history.completed = 'Y') AND jobs.test = '$P!{TEST_PROD_TO_QUERY}' ORDER BY mailers.mailer_group asc, mailers.mailer asc, mailing_history.submitted_date asc, mailing_history.completed_date asc, mailing_history.job_id asc , mailing_history.file_number asc