COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: ry1633 on 25 Sep 2015 01:57:19 PM

Title: model error - ORA-01427: single-row subquery returns more than one row
Post by: ry1633 on 25 Sep 2015 01:57:19 PM
Hi all,

I'm testing out my model with some reports in Query Studio, and whenever I use this particular query subject from a particular data view it returns an error "ORA-01427: single-row subquery returns more than one row".  Going back into Framework Manager and looking at that particular Query Subject I see nothing wrong with it per se.  When I run a Test Sample in Framework Manager, it returns data that looks just fine, and the validation doesn't return any errors.

Is there something wrong somewhere between the model, the package, and Query Studio's use of the package?

thanks, ryan
Title: Re: model error - ORA-01427: single-row subquery returns more than one row
Post by: ry1633 on 25 Sep 2015 03:51:47 PM
in further testing,  I'm finding that the error doesn't happen in my Dev environment, only in Test.  I will have to do so more digging and check in with my admin guy, and then report back.
Title: Re: model error - ORA-01427: single-row subquery returns more than one row
Post by: ry1633 on 30 Sep 2015 11:05:30 AM
turns out the issue was that somehow the data view was wanting to return more than one row in my test environment.  Re-wrote part of the script to fix and remove some dupes, all seems ok now.