Problem with using tFileInputDelimited for csv file

Highlighted
Seven Stars

Problem with using tFileInputDelimited for csv file

Hi,

 

I'm using TDI open studio where I'm trying to read csv file from local machine using tFileInputDelimited. 

Below is the screenshot of the csv :

Screen Shot 2017-06-12 at 5.07.08 PM.png

 

In properties of tFileInputDelimited:

 

Screen Shot 2017-06-12 at 5.21.53 PM.png

 

Output for field separator = ";"

 

Screen Shot 2017-06-12 at 5.23.00 PM.png

 

Output for field separator = ","

Screen Shot 2017-06-12 at 5.23.28 PM.png

 

2 Problems:

1.Why each value is enclosed in double quote (")

2. Field separator = "," just working fine, but what in case of value like "Fife, WA" in column NAME ?

 

So, what could be done in order to read data from csv file in an efficient way ?

Thanks !

 

 

 

 

 

 

 

 

 

 

 

 


Accepted Solutions
Forteen Stars TRF
Forteen Stars

Re: Problem with using tFileInputDelimited

Field separator must not appear in the content, that's the problem you have, field separator is "," and it appears in content (LWNAME = fife,WA).

You must change the separator in the source file, or enclose field values between quotation marks ("fife,WA") and tick "CSV options" field.


TRF

All Replies
Forteen Stars TRF
Forteen Stars

Re: Problem with using tFileInputDelimited

Field separator must not appear in the content, that's the problem you have, field separator is "," and it appears in content (LWNAME = fife,WA).

You must change the separator in the source file, or enclose field values between quotation marks ("fife,WA") and tick "CSV options" field.


TRF
Seven Stars

Re: Problem with using tFileInputDelimited

Checking CSV options worked. I tried this earlier but don't know why it didn't get to work, might be missed something.
Thanks @TRF Smiley Happy

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

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