COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: bobj on 12 Aug 2009 07:34:22 AM

Title: RQP-DEF-0177 'sqlPrepareWithOptions' status='-9'
Post by: bobj on 12 Aug 2009 07:34:22 AM
Hi Friends,

I receive the following error when I run tabular data for a Union query in Cognos 8.3 on Oracle:

An error occurred while performing operation 'sqlPrepareWithOptions' status='-9'

Because it is a union join I naturally checked the data items in the queries which are exactly the same in terms of names and datatypes so there is no problem there.

I can run each query separately and returns data correctly.
The Union is referencing 2 queries which have been created by using outerjoins which also work fine.

The other issue is when I place the data items from the union into a crosstab and validate the report I receive errors:

RSV-VAL-0044 The member caption can only be used in the scope of crosstab or chart.
QE-DEF-0459 CCLException
RQP-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-9'.
UDA-SQL-0107 A general exception has occurred during the operation "sqlPrepareWithOptions".

When I remove the crosstab the report validates without any errors.

Can anybody help please?

Thanks.
Title: Re: RQP-DEF-0177 'sqlPrepareWithOptions' status='-9'
Post by: uttam.mistry on 12 Aug 2009 02:27:35 PM
most probably you are using layout expression, try using singleton
Title: Re: RQP-DEF-0177 'sqlPrepareWithOptions' status='-9'
Post by: bobj on 14 Aug 2009 05:56:02 AM
Thanks for the reply but I am not using any layout expressions.
Does this error refer to something in the report of framework/database?
Title: Re: RQP-DEF-0177 'sqlPrepareWithOptions' status='-9'
Post by: blom0344 on 14 Aug 2009 06:19:58 AM
Nope, it has to do with the aggregate setting of the measure in the crosstab. Even if it is a real aggregate in the individual queries, you still need to make sure it has an aggregate defined (like minimum) to be able to get a crosstab to work..