COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: jagan.dish on 06 Aug 2013 02:06:27 PM

Title: error @ report running
Post by: jagan.dish on 06 Aug 2013 02:06:27 PM
Hi gurus,
                 could you help me out here when i run the report after populating the dataitems to the report page when i run the report i get the following errors....
An error occurred while performing operation 'sqlPrepareWithOptions' status='-201'
An error occurred while performing operation 'sqlPrepareWithOptions' status='-9'.

Thanks
Title: Re: error @ report running
Post by: MFGF on 06 Aug 2013 03:35:12 PM
Hi,

Do you have System Admin privileges for the Cognos instance? If so, go into the properties of the data source connection pointing to your data source (in the Admin console) and check the isolation level defined for the connection. My (wild) guess is that it's set too low - perhaps to "Read Uncommitted" when your database doesn't support this level?

MF.
Title: Re: error @ report running
Post by: MMcBride on 09 Aug 2013 02:09:26 PM
Look at your data items as well, I knew these errors looked a little familiar

So I took a report that worked perfectly fine and "Broke" it by putting in code I knew would not work.
When I run the report I get the following

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

In my case I took a relational report and used a Multidimensional function - one with a ! in front of it, Obviously you cannot use an MDX function in a SQL Based report. When you run a "Validate Report" on your report does it return without errors?
Title: Re: error @ report running
Post by: jagan.dish on 13 Aug 2013 02:19:47 AM
Hi MFGF & MMcBridge....thanks for the help it worked finally
Title: Re: error @ report running
Post by: MFGF on 13 Aug 2013 06:20:51 AM
What was causing the issue in the end? It might help others facing the same issue to know what fixed it :)

Cheers!

MF.
Title: Re: error @ report running
Post by: jagan.dish on 14 Aug 2013 12:45:22 AM
Hi MFGF,
               The cause was that I imported the cognos 8.4 version samples instead of cognos 10.1 version which I was using  currently.

Thanks,
Jag
Title: Re: error @ report running
Post by: MFGF on 14 Aug 2013 03:37:05 AM
Thanks for the update! Glad you found the solution :)

MF.