Home
Analytics
Failed to prepare the query execution for the data set
Joe Morgan
Again, new to BIRT... just upgraded to the absolute latest copy of Eclipse Helios with BIRT 2.6.1.
Have a report with 4 parameters, something like this:
select *
from customeranalysis
where clientID = ? and guideID = ?
and date(answerdate) between ? and ?
I therefore have 4 parameters, all mapped to report parameters. The last two are simple dates for begin and end date. The first two are mapped to parameters from other data sets that work just fine, and the values used within the dynamic settings cannot be null, and that restriction is defined within the DB.
So, I use the ID field from the client data set, and display the name. Same with the guide table.
I mapped the parameters named, in order, ClientID (maps to client list report parameter), GuideID (maps to guide list report parameter), BeginDate (maps to beginDate report parameter), and EndDate (maps to endDate report parameter).
When I save the data set for the report, I get the attached error, and, I cannot expand the data set within the Outline View of the report design (also attached).
Find more posts tagged with
Comments
Joe Morgan
Follow up note: I removed parameters one by one, and it continued to give the error. Once I removed ALL parameters, it no longer gave the error.
Joe Morgan
Problem Solved! It appears that if you change the data set parameter name from the BIRT provided default, such as "param_1", to something meaningful, such as "ClientID", it breaks. <br />
<br />
What is the purpose of the parameter name of the data set parameters , then, if it must be named something very particular?<br />
<br />
I do take note that when I change the name of the data set parameter, it issues a warning:<br />
<br />
<blockquote class='ipsBlockquote' ><p>Are you sure you want to update the report parameter's value with the data set parameter's value?</p></blockquote>
<br />
So, the name of a data set parameter doesn't seem to be so trivial... what it is really saying there?
mcremer
<blockquote class='ipsBlockquote' data-author="'Joe Morgan'" data-cid="71493" data-time="1292597306" data-date="17 December 2010 - 07:48 AM"><p>
Problem Solved! It appears that if you change the data set parameter name from the BIRT provided default, such as "param_1", to something meaningful, such as "ClientID", it breaks. <br />
<br />
What is the purpose of the parameter name of the data set parameters , then, if it must be named something very particular?<br />
<br />
I do take note that when I change the name of the data set parameter, it issues a warning:<br />
<br />
<br />
<br />
So, the name of a data set parameter doesn't seem to be so trivial... what it is really saying there?<br /></p></blockquote>
<br />
That message is becouse your overinding a Default value its nothing to worry about.
Virgil Dodson
Moving to Designing BIRT Reports Forum