NumberFormat Exception

Highlighted
Seven Stars

NumberFormat Exception

I am loading a csv into Snowflake and using tMap. I am getting following error (even though data is loaded and I dont have any NULLs for the column in question):

 

Couldn't parse value for column 'Prob' in 'row1', value is 'Prob'. Details: java.lang.NumberFormatException: For input string: "Prob"
[ERROR]: talend71.load_level_info_0_1.Load_Level_Info - tFileInputDelimited_1 - Couldn't parse value for column 'Prob' in 'row1', value is 'Prob'. Details: java.lang.NumberFormatException: For input string: "Prob"

 

Here is what my tmap looks like:

rowrowschema editorschema editor

 

The source data in .csv looks like this:

0.2368809416209197

 

in destination it looks like this:

0.24

 

so I am not sure where the error is coming from.

 

thoughts?

 

thanks


Accepted Solutions
Highlighted
Sixteen Stars
Sixteen Stars

Re: NumberFormat Exception

The error is from tFileInputDelimited, not tMap nor Snowflake itself.
The reason is you have the value "Prob" in that field or this is the field label and you just have omitted to set the header line to 1 into tFileInputDelimited settings.

TRF

View solution in original post


All Replies
Highlighted
Sixteen Stars
Sixteen Stars

Re: NumberFormat Exception

The error is from tFileInputDelimited, not tMap nor Snowflake itself.
The reason is you have the value "Prob" in that field or this is the field label and you just have omitted to set the header line to 1 into tFileInputDelimited settings.

TRF

View solution in original post

Highlighted
Seven Stars

Re: NumberFormat Exception

that was it. you are a champ!!!

 

thanks

Highlighted
Sixteen Stars
Sixteen Stars

Re: NumberFormat Exception

You're welcome

TRF

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog