COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: svj on 08 Nov 2013 09:45:40 AM

Title: Error 'sqlPrepareWithOptions' status='-9' when I insert data item.
Post by: svj on 08 Nov 2013 09:45:40 AM
I have two data items :

1)

sum(If ([DEV].[STATUS] IN ('Success','Failure'))
THEN ([DEV.[AMT])
ELSE (0))

2)

sum(If ([DEV].[STATUS] IN ('Success','Failure'))
THEN (1)
ELSE (0))

When I try to use the first item in a list cell I get an error 'sqlPrepareWithOptions' status='-9' / group function is not allowed here


Thanks!
Title: Re: Error 'sqlPrepareWithOptions' status='-9' when I insert data item.
Post by: Lynn on 11 Nov 2013 09:39:15 AM
I don't think you need the sum function. Try removing it and then setting the aggregate property for the data item to total.