COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Sunchaser on 18 Mar 2009 05:25:13 PM

Title: Avoid UDA-SQL-0220 error while using native SQL
Post by: Sunchaser on 18 Mar 2009 05:25:13 PM
error: UDA-SQL-0220 A database key or unique index is required to access blob data.

Hi,

I would like to avoid an error to appear in the cogserver.log, but (strange thing) in the same time the report is running fine.
I'm working with CLOB fields, native SQL, and the datas are retrieved by a function table (oracle).
The table containing  the CLOB fields has a primary key, so when I try and use the "classical way" in Cognos to get my datas by selecting the fields in the insertable object of the model, there are no errors in the log.

I don't see what I can do to get rid of this error.

Thanks.
Title: Re: Avoid UDA-SQL-0220 error while using native SQL
Post by: Md37 on 08 Feb 2012 02:58:07 PM
This might be really late, but if someone else runs into this, maybe this will help:

I was having the same problem using pass-through SQL, getting the same error. I added one column at a time, and finally it came to a column that in the database was set as a VARCHAR(MAX).  I talked to another guy here at work and he thought he saw something to the effect that Cognos will interpret a VARCHAR(MAX) as a blob.  I cast it as VARCHAR(4000) and the error went away.  Hope that helps.

Title: Re: Avoid UDA-SQL-0220 error while using native SQL
Post by: venkiatmaruthi on 09 Feb 2012 06:07:55 AM
Yes, I too experienced this error.

I too did the same thing like adding one column by column so that I have feedback description column where it is having CLOB as a data type at database side. Later DB team changed to Varchar(5000)  then it was set.


Thanks.