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

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download