COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: scoebke on 08 May 2012 09:59:27 AM

Title: Testing Result only 1 row
Post by: scoebke on 08 May 2012 09:59:27 AM
For testing result of a querry item i only get one row back.
While the count rows gives back 13.

What I'm doing wrong?

Number of records retrieving is set to 100 or no restriction in options.
There are no filters or security set up.

We connect to mysql with ODBC connection?

Do I overlook something.

Kind regards
   Scoebke
Title: Re: Testing Result only 1 row
Post by: blom0344 on 08 May 2012 04:06:17 PM
Should depend on the query definition. If no measures (facts) are involved, then Cognos automatically adds a 'distinct' clause to ensure a unique combination of dataitems. Check the SQL that cognos proposes to use in the execution..
Title: Re: Testing Result only 1 row
Post by: scoebke on 09 May 2012 01:37:22 AM
Thxs for suggestion.

I've 13 different rows.
I also isolated the table is seperate project, same result.
I tested the odbc connection in excell i retrieve 13 rows.

It looks like FM only use the first row from the querry.

I will see if i can retrieve back in MYSQL database which querry he takes. (not my specialty but okay)
SQL in cognos FM is correct and gives result.

Kind Regards
  Scoebke

Title: Re: Testing Result only 1 row
Post by: blom0344 on 09 May 2012 02:42:47 AM
When you run the tabular query , do you get 1 row or 13?
Title: Re: Testing Result only 1 row
Post by: scoebke on 09 May 2012 03:37:45 AM
f.e. select `park_group`.`park_id` as "park_id" , `park_group`.`group_id` as "group_id" from `park_group` `park_group`

I got the 13 rows retrieved.

In report studio also one row retrieved.
Title: Re: Testing Result only 1 row
Post by: blom0344 on 09 May 2012 03:51:44 AM
Yes, but what are you testing?  The rows as collection of dataitems or a single dataitem? Are you testing from within FM or from within a report?
Title: Re: Testing Result only 1 row
Post by: scoebke on 09 May 2012 04:06:48 AM
I'm testing both now.

I'm testing in FM
and open the data item what refers to a complete table in MYSQL.
and then i want to test this item

Kind regards
  Scoebke
Title: Re: Testing Result only 1 row
Post by: scoebke on 09 May 2012 05:29:40 AM
Is solved now.

What was the problem.
The MYSQL ODBC i used ODBC  3.51 driver was not working.
Upgrade to ODBC 5.1 gives better result.

Thanks for looking.

Kind regards
   Scoebke