Yet another "For input string" problem -_-'

Four Stars

Yet another "For input string" problem -_-'

So, I have an .txt file that contains data separated by "|".

 

I have this file:

A010_file.jpg

 

And this job:

A010_test_job.jpg

 

 

And this schema:

A010_schema.jpg

 

 

So, the problem is that I can't get the field "CNPJ" because talend throws this "for input string" error. If I change the schema from "int" to "string" it works. But I want it as integer. So why it isn't working? The first fields are integers too and they are working properly.

 

What I tried:
- I have searched throws this page and the forum, but didn't find a similar problem.

- I tried to change the type of the file from ".txt" to ".csv".

- I checked the field separator and it is right ("|").

 

Please help Smiley Sad


Accepted Solutions
Fifteen Stars TRF
Fifteen Stars

Re: Yet another "For input string" problem -_-'

2147483647 is the max value for an interview variable. So the datatype is not compatible with your data.
Try to change the datatype to Long. Max value will be 9223372036854775807L.

TRF

All Replies
Fifteen Stars TRF
Fifteen Stars

Re: Yet another "For input string" problem -_-'

2147483647 is the max value for an interview variable. So the datatype is not compatible with your data.
Try to change the datatype to Long. Max value will be 9223372036854775807L.

TRF
Highlighted
Four Stars

Re: Yet another "For input string" problem -_-'

Oh..my...god. I can't believe it was just wrong numeric type choice. Thank you so much!!!

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch 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