Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pentaho Kettle conversion from String to Integer/Number error

I am new to Pentaho Kettle and I am trying to build a simple data transformation (filter, data conversion, etc). But I keep getting errors when reading my CSV data file (whether using CSV File Input or Text File Input).

The error is:

... couldn't convert String to number : non-numeric character found at position 1 for value [ ]

What does this mean exactly and how do I handle it?

Thank you in advance

like image 303
user2552108 Avatar asked Jun 10 '26 11:06

user2552108


1 Answers

I have solved it. The idea is similar to what @nsousa suggested, but I didn't use the Trim option because I tried it and it didn't work on my case.

What I did is specify that if the value is a single space, it is set to null. In the Fields tab of the Text File Input, set the Null if column to space .

enter image description here

like image 74
user2552108 Avatar answered Jun 16 '26 10:06

user2552108



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!