COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: EArumugam on 18 Dec 2012 11:59:06 PM

Title: UDA-SQL-0184
Post by: EArumugam on 18 Dec 2012 11:59:06 PM
RQP-DEF-0177 An error occurred while performing operation
'sqlPrepareWithOptions' status='-203'. UDA-SQL-0184 The column "DUMMY"
was not found.

wat would be cause for the above error.
I am getting this error after new version of the package published , the scheduled report got failed.

thanks,
eas
Title: Re: UDA-SQL-0184
Post by: MFGF on 19 Dec 2012 02:56:42 AM
Sounds like someone has made some changes in FM which do not match up to the database. Adding a column called "DUMMY" to a SQL select statement, for test purposes maybe?

If you go back to FM and search for DUMMY, does it return anything?

MF.
Title: Re: UDA-SQL-0184
Post by: Bark on 19 Dec 2012 02:57:57 AM
That's probably because you are trying to call a column called DUMMY in your select statement. Do you have any macro function embedded? something like #prompt('parameter','token','DUMMY')#? it could be either in the report or in the model.

If this is the case, it will fail in the validation and if you don't set any value for the parameter when running it.

Regards,

Bark
Title: Re: UDA-SQL-0184
Post by: EArumugam on 20 Dec 2012 06:12:22 AM
Thanks for your reply bark and MFGF.

Bark,

We have used the macro function as you said below and that prompt macro parameter we have not used in some reports. we are getting error for the report we have not used. Please advice how can we resolve this.

thank you once again,
eas
Title: Re: UDA-SQL-0184
Post by: Bark on 20 Dec 2012 10:08:00 AM
The thing is that the macro function as I wrote it, will use 'DUMMY' as a default so, if you don't set the parameter, it will try to call a column called 'DUMMY'. To solve it, either set as default an existing column in your table or remove the last parameter (this latter will make the parameter to be required):

1. #prompt('parameter','token','EXISTING COLUMN NAME')#
2. #prompt('parameter','token')#

Regards,

Bark