Adding columns being read to list object or hashmap

Five Stars

Adding columns being read to list object or hashmap

Hi there Talend Community 

 

Im new to Talend . Im reading .csv file using a tFileInputDelimited_1 . What i would like to do is add the columns being read from a file to a java.util.list or java.util.map while having the regular flow data remain the same . My objective is to validate the length of each column read .I've tried using a tSchemaComplianceCheck but no matter how i configure it each row is being sent through the reject row .I've attached an image showing what my job looks like. My last resort would be to hard code the validation check in the tJavaRow_1 by manually going if(row1.name >20){row1.name.subString(0,20);}etc .

Any input would be highly appreciatedScreenshot at 2018-10-23 14-45-54.png 

Moderator

Re: Adding columns being read to list object or hashmap

Hello,

Could you please post your tFilterRow component setting screenshot on forum?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

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

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog