Reading CSV Feed dynamically

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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download