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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

EXCEPTION (value supplied cannot be converted to DECIMAL)

Hi All
-> I am getting exception during my transformation.
Exception in component tMSSqlInput_1
java.sql.SQLException: The value supplied cannot be converted to DECIMAL.
at net.sourceforge.jtds.jdbc.Support.convert(Support.java:653)
at net.sourceforge.jtds.jdbc.JtdsResultSet.getBigDecimal(JtdsResultSet.java:1024)
my input data is :
16179.96 161.80 16018.16
-2922.73 0.00 -2922.73
-6.00 0.00 -6.00
385.60 0.00 385.60
30131.38 0.00 30131.38

and my data type is BigDecimal for all the three columns in talend and my sql server database datatype is Numeric
Any help appreciated

____________________________________________________________________________________________
tHANKS
ANIL KUMAR
Labels (5)
4 Replies
Anonymous
Not applicable
Author

Hi,
Maybe a screenshot would help to determine where exactly something is going wrong.
Also line 3920 of the generated code can tell you a lot more about what column/value Talend is complaining about.
Regards,
Arno
Anonymous
Not applicable
Author

my input data contain 3 columns with value :

16179.96 161.80 16018.16
-2922.73 0.00 -2922.73
-6.00 0.00 -6.00
385.60 0.00 385.60
30131.38 0.00 30131.38
transformation from sqlserver to sqlserver in sqlserver DB schema is Numeric but during importing data while during transformation we are taking BigDecimal as data type in Type on tmysqlinput and DBType in Numeric
thanks
Anil
Anonymous
Not applicable
Author

Hi,
Yes, input data is clear, it's just that Talend complains about 1 value. This can be found on line 3920 of the generated code.
Also: a screenshot of the job would probably help 0683p000009MACn.png
Regards,
Arno
Anonymous
Not applicable
Author

Try changing "." by "," in data, in sql server that is defined by the database locale or a nonvisible character