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
Highlighted
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 :-)

View solution in original post


All Replies
Highlighted
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 :-)

View solution in original post

Highlighted
Five Stars

Re: cannot convert from byte to Integer

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

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

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog