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 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( >20){,20);}etc .

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


Re: Adding columns being read to list object or hashmap


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

Best regards


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

What’s New for Talend Spring ’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


Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables