Reading CSV Feed dynamically

Highlighted
Seven Stars

Reading CSV Feed dynamically

Hi
I have CSV feed like below.

I want to read that schema dynamically when columns having double quotes.

"empno","ename","sal","deptno","location"
100,Sam,500,10,Hyderabad
200,pras,600,20,mas.

Please someone provide me solution for this.i tried everything it didn't worked for me.
Four Stars

Re: Reading CSV Feed dynamically

Hello,

you have 2 solutions :

 

1- read the csv file without the header (if the header is the only line which have the double quotes)

2- Read all column of the csv file as String and remove the double quotes in tmap : varString.replace("\"","")

//varString is the fied name of your string.

 

let us know if you have issue anymore.

Regards

 

Seven Stars

Re: Reading CSV Feed dynamically

My scenario is I should read by using dynamic feature

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 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog