Page 1 of 1

DB2 UDB look up Error

Posted: Wed Mar 23, 2011 2:03 am
by tanaya.deshpande@tieto.co
HI

I am using DB2UDB as a look up (Not the enterprise but the plain one)
in that I am using Enter custom sql statement as a query option ..and Iam getting following error..

D_Product,0: Fatal Error: Fatal: [IBM][CLI Driver] CLI0100E Wrong number of parameters. SQLSTATE=07001
DSTAGE-DB2CLI-0027`:`SQLExecDirect: Error executing statement 'SELECT D_Product.Product_ID,D_Product.ProductName,D_Product.ProductCategory,D_Product.ManufacturingUnit,D_Product.Vendor FROM D_Product WHERE D_Product.Product_ID=?'. See following DB2 message for details.

but there are no following errors ..those are for other stages ...the previous error is

D_Product,0: Failure during execution of operator logic.

can any one explain..

Posted: Wed Mar 23, 2011 2:04 am
by tanaya.deshpande@tieto.co
I am getting this error for any query type...

Posted: Wed Mar 23, 2011 3:03 am
by abhilashnair
tanaya.deshpande@tieto.co wrote:I am getting this error for any query type...
Check the query inside the stage. The WHERE condition seems to be incomplete. Try running the query directly on database and verify that rows are being returned. Then run the DS job

Posted: Wed Mar 23, 2011 3:43 am
by antonyraj.deva
DB2 will throw a fatal error if you specify unsigned type for Integer or Bigint or Tinyint datatypes. Also it is worth checking if the column names, data types and length are correctly mentioned.

Post the complete query which resulted in this error.

Posted: Wed Mar 23, 2011 5:03 am
by tanaya.deshpande@tieto.co
Yes my problem is solved the query was wrong ...