Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Bad format for number tmysqlInput.

Hi folks,
I am trying to run a query in tmysqlInput which pulls a field OracleID from DB .
Sample value for OracleID- 250000736H.00.09
It throws an error - "Bad format for number '250000736H.00.09' in column 45" when I run the job.
Field type in DB- varchar
Field type in talend schema- String.
P.S the query runs fine in the MySQL client but throws the error when run in talend.
Any suggestions??
Thanks in adv,
Baddy
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks Janhess,
I rechecked the query . It missed one one column and hence was not matching the query,
Thanks for your help. You guys rock!

View solution in original post

9 Replies
Anonymous
Not applicable
Author

Hi Baddy
Are you sure the data type of this column is String(varchar)?
Please paste the entire error log.
Regards,
Pedro
Anonymous
Not applicable
Author

Hey Pedro ,
here you go.
Exception in component tMysqlInput_5
java.sql.SQLException: Bad format for number '250000736H.00.09' in column 45.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929)
at com.mysql.jdbc.ResultSetImpl.getDoubleInternal(ResultSetImpl.java:2522)
at com.mysql.jdbc.ResultSetImpl.getDoubleInternal(ResultSetImpl.java:2461)
at com.mysql.jdbc.ResultSetImpl.getDouble(ResultSetImpl.java:2422)
at entf.webdb_bhe_orders_feed_0_1.WebDB_BHE_Orders_Feed.tMysqlInput_2Process(WebDB_BHE_Orders_Feed.java:6682)
at entf.webdb_bhe_orders_feed_0_1.WebDB_BHE_Orders_Feed.runJobInTOS(WebDB_BHE_Orders_Feed.java:12360)
at entf.webdb_bhe_orders_feed_0_1.WebDB_BHE_Orders_Feed.main(WebDB_BHE_Orders_Feed.java:12164)
2012-05-24 15:19:03|VIUYlA|VIUYlA|VIUYlA|ENTF|WebDB_BHE_Orders_Feed|DEV|6|Java Exception|tMysqlInput_5|java.sql.SQLException:Bad format for number '250000736H.00.09' in column 45.|1
2012-05-24 15:19:10|VIUYlA|VIUYlA|VIUYlA|3972|ENTF|WebDB_BHE_Orders_Feed|_YnQssJofEeGSCfB9ZSjSYg|0.1|DEV||end|success|18438
disconnected
Anonymous
Not applicable
Author

Hi Pedro,
Waiting for your suggestion! Kinda urgent!
thanks,
Baddy
janhess
Creator II
Creator II

Can you post an image of your schema.
Anonymous
Not applicable
Author

Hi Janhess,
Here is the tmysqlinput schema.
The last row is the OracleID field which is errorneous!
janhess
Creator II
Creator II

Are you sure your schema matches your query? Did you create it using guess schema?
Anonymous
Not applicable
Author

No I wrote the query manually and tested on the MySQL client.
Also, if I give '000000000000000' as the default value in query to OracleID field , it runs fine.
janhess
Creator II
Creator II

I don't think your schema matches the query. I think the data is mapping to one of the doubles. Thr selecting guess query. It should work then.
Anonymous
Not applicable
Author

Thanks Janhess,
I rechecked the query . It missed one one column and hence was not matching the query,
Thanks for your help. You guys rock!