COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: vdimarco on 08 Oct 2013 09:42:36 AM

Title: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: vdimarco on 08 Oct 2013 09:42:36 AM
Hello, strange error I have repeatedly run into:

message severity="error"
title=OP-ERR-0110
The query='qPrompts' referenced in queryResultDefinition='qDashboard.22' does not exist in the querySet.
type="executionStats"

It happens when I attempt to reference a data item used in the prompt selection query within a different query, in this case 'qDashboard' in the form of '[qPrompts].[dataItem1]'.

Very frustrating error, any help diagnosing would be very appreciated!
Title: Re: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: vdimarco on 10 Oct 2013 04:21:35 PM
moved to correct forum
Title: Re: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: MFGF on 17 Oct 2013 05:26:53 AM
Hi,

So you're trying to reference an item defined in one query from within another query? Have I understood correctly?

If so, in order to do this you will need to join the queries and bring the desired items from each into a third query. You can then address all the relevant items from there.

Cheers!

MF.
Title: Re: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: vdimarco on 17 Oct 2013 09:53:40 AM
Hi MFGF, you have indeed understood correctly.

Thanks for the reply. It's odd to hear I need a join, because in a number of our reports (active and non-active) we have one query for prompt selections (date ranges, etc) named 'qPrompts'. Any Data Item (let's say 'Dates') in the qPrompts query are usually referenced in other queries with no issues by writing [qPrompts].[Dates].
Title: Re: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: MFGF on 17 Oct 2013 11:54:03 AM
The only way you would manage without a join is if you enabled Cross Products, which is generally not a good thing to do.

Cheers!

MF.
Title: Re: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: vdimarco on 17 Oct 2013 12:24:23 PM
Does it make a difference that the source is a power cube, using dimensional queries rather than relational?
Title: Re: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: MFGF on 18 Oct 2013 06:37:13 AM
Hi,

Yes - it does make a difference. Queries from dimensional sources can't be joined - joins are a relational rather than dimensional concept.

Cheers!

MF.
Title: Re: OP-ERR-0110: The query referenced does not exist in the querySet
Post by: vdimarco on 18 Oct 2013 02:42:22 PM
Okay thanks for the follow up!

Have a good weekend.