java.lang.RuntimeException: Couldn't parse value for column 'id'

Five Stars

java.lang.RuntimeException: Couldn't parse value for column 'id'

Hi i am getting error

java.lang.NumberFormatException.forInputString "id" column

i am trying to insert string value in integer column i.e

source having 100,101,102 treated as string,now i have to convert to integer.

i have done like Integer.parseInt(row4.id) but i am getting error. there is no inverted commas,there is no null values,there is no empty string etc.please help me out


Accepted Solutions
Employee

Re: java.lang.RuntimeException: Couldn't parse value for column 'id'

Hi,

 

    Please use tConvertType component to convert a numeric string to Integer. In the output schema of the component, select Integer as the data type for the column and it should work fine. Please refer the help document for sample scenarios for this component.

 

    If the error persists, please share the screenshot of the job and tCOnvertType component details in your job and we will take it from there.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)


All Replies
Employee

Re: java.lang.RuntimeException: Couldn't parse value for column 'id'

Hi,

 

    Please use tConvertType component to convert a numeric string to Integer. In the output schema of the component, select Integer as the data type for the column and it should work fine. Please refer the help document for sample scenarios for this component.

 

    If the error persists, please share the screenshot of the job and tCOnvertType component details in your job and we will take it from there.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Five Stars

Re: java.lang.RuntimeException: Couldn't parse value for column 'id'

Hi nikhil thampi thanks for your solution.i need help from your side regarding incremental loading.can you please send the job for attaching image what you added before in our talend community.

Employee

Re: java.lang.RuntimeException: Couldn't parse value for column 'id'

@adityapv 

 

I don't have that job handy right now. But you know the steps to recreate the job now, right?

 

If you are facing any issue, feel free to post the query in community and we all are here to support you.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch