cannot convert from byte to Integer

Highlighted
Five Stars

cannot convert from byte to Integer

Sql input to postgresql output

 

How  I convert the value from Byte to Integer on tMap? 

 

I found out that from String to Integer on tMap I can use "Integer.parseInt(row1.nda)" 

 

Thanks in advance for your help. 

 


Accepted Solutions
Employee

Re: cannot convert from byte to Integer

Hi,

 

   You can use tConvertType component to do all data conversion tasks. For example, the below flow has byte input and integer output.

image.png

 

You will have to make the change inside tConvertType as shown below.

image.png

 

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: cannot convert from byte to Integer

Hi,

 

   You can use tConvertType component to do all data conversion tasks. For example, the below flow has byte input and integer output.

image.png

 

You will have to make the change inside tConvertType as shown below.

image.png

 

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: cannot convert from byte to Integer

Thank you for your help. Highly appreciated! Problem solved.

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 3

Read about some useful Context Variable ideas

Blog

Talend Studio Improvements for API Services

Take a look at the Talend Studio improvements for API Services

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch