Hi there--
I'm dealing with a two issues:
1) SQL Expression evaluation
My report has a number of SQL Expression Fields that CR XI is evaluating at design time. That is, when I save a SQL Expression, it immediately checks it for syntax errors AND runs it against the database.
However, because the SQL expression is working with an unfiltered set of data (i.e. not at run time where a user filters the data by using the dynamic params), it often returns an error stating that more than one record is being returned. That is, it isn't taking the Select Expert formula into account, which it obviously can't at design time.
Is there some sort of setting in CR XI that 'tells' it not to immediately evaluate this SQL expression at design time? If not, then there must be something wrong with how I have the filtering process set up. This brings me to my second point...
2) Select Expert formula
It looks like this:
{Complete.PatientLastName} = {?Patient Parameters - PatientLastName} and
{Complete.PatientFirstName} = {?Patient Parameters - PatientFirstName}
I'm pretty new to CR in general, nevertheless this formula doesn't appear to be a Crystal formula, i.e. it is something that SQL 2005 can understand. If that is indeed the case, what could be causing the same run time error ("Subquery returned more than 1 value...") AFTER the dynamic parameter choices are made? Based on those choices, only 1 record should be returned to CR.
Thanks
I'm dealing with a two issues:
1) SQL Expression evaluation
My report has a number of SQL Expression Fields that CR XI is evaluating at design time. That is, when I save a SQL Expression, it immediately checks it for syntax errors AND runs it against the database.
However, because the SQL expression is working with an unfiltered set of data (i.e. not at run time where a user filters the data by using the dynamic params), it often returns an error stating that more than one record is being returned. That is, it isn't taking the Select Expert formula into account, which it obviously can't at design time.
Is there some sort of setting in CR XI that 'tells' it not to immediately evaluate this SQL expression at design time? If not, then there must be something wrong with how I have the filtering process set up. This brings me to my second point...
2) Select Expert formula
It looks like this:
{Complete.PatientLastName} = {?Patient Parameters - PatientLastName} and
{Complete.PatientFirstName} = {?Patient Parameters - PatientFirstName}
I'm pretty new to CR in general, nevertheless this formula doesn't appear to be a Crystal formula, i.e. it is something that SQL 2005 can understand. If that is indeed the case, what could be causing the same run time error ("Subquery returned more than 1 value...") AFTER the dynamic parameter choices are made? Based on those choices, only 1 record should be returned to CR.
Thanks