COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: MrPogle on 14 Sep 2017 05:23:33 PM

Title: Cross Join Error
Post by: MrPogle on 14 Sep 2017 05:23:33 PM
I have a query with one attribute and one measure but with a filter that uses a value from another table with no join hence I get the Cross Joins error.

If I set the query to allow cross joins I still get the error when I put the attribute and measure in a cross tab object but not when they are in a list object. I just get the warnings.

In both cases, the same query is used so the SQL that generates the error when I use a Crosstab is exactly the same as when I use the List.

What's going on here?

I am using Cognos 10.2
Title: Re: Cross Join Error
Post by: cognostechie on 14 Sep 2017 07:26:08 PM
Just so you know that allowing cross joins can make your query work but it does not ensure data integrity. It might and it might not give correct data so you will be delivering an unpredictable report.   
Title: Re: Cross Join Error
Post by: bus_pass_man on 15 Sep 2017 08:19:41 AM
In the long run, it might be best if you wander over to your modeler counterpart's cubicle and explain to him the problem that you have encountered.  He probably will be happy to know that you understand why you are getting the cross-join error.  It is possible that he will be amenable to altering the model so that a join path between the table from where you want to get your filter and the other tables has been defined, or he could be in a position to explain why no such join path could or should be created.  One would hope that the reason isn't some variant of he can't be bothered.

In general, I don't understand what value the allow cross-joins setting provides but that might just be me.
Title: Re: Cross Join Error
Post by: MrPogle on 02 Oct 2017 01:30:42 PM
Thanks everyone for your input. The problem disappeared when we upgraded to C11, so we'll never know the cause!