Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Read a list of CSV files in Talend with ; in field

I have a list of CSV files which i receive for ETL into database every month. Its in a folder. My data has ; in many columns as well. For example, in the location column values like New York; USA are present, which i want to appear in a single column instead of splitting into many columns. How do i specify delimiter then?

 

0683p000009MAEr.jpg

 

0683p000009MAEr.jpg

 

 Edit: My data is in a csv file and looking like below, it has 3 columns id, Introduction and Verical. I want to remove comma(,) appearing in the values of each column and then save results as a csv file with 3 distinct columns with their values.

id	Introduction	Vertical
Jinshan District, Shanghai, China	international saler at Shanghai Triowin Automation Machinery Co.,Ltd	Machinery, Transportation
Pudongxin District, Shanghai, China	Market Communication Specialist, Shanghai JiaoTong University - Kedge Business School	Education Management
Nanjing City, Jiangsu, China	System Tester at Jiangsu HopeRun Software Co., Ltd.	Computer Software

I want output in 3 separate columns without comma values like below.

 

 

id	Introduction	Vertical
Jinshan District Shanghai China	international saler at Shanghai Triowin Automation Machinery Co.Ltd	Machinery Transportation
Pudongxin District Shanghai China	Market Communication Specialist Shanghai JiaoTong University - Kedge Business School	Education Management
Nanjing City Jiangsu China	System Tester at Jiangsu HopeRun Software Co. Ltd.	Computer Software

 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Ok, this is what worked for me. A simple thing, all i did was changed Encoding to UTF-8 in the Advanced settings tab in iFileInputDelimited component..

View solution in original post

9 Replies
Anonymous
Not applicable
Author

Hi
Can you give us an example of your data to explain your requirement? What are your expected result?

Regards
Shong
TRF
Champion II
Champion II

Values with ";" must be enclosed between " or change the field delimiter.
Otherwise regex may help if you have a pattern to follow.
Anonymous
Not applicable
Author

My data is in a csv file and looking like below, it has 3 columns id, Introduction and Verical. I want to remove comma(,) appearing in the values of each column and then save results as a csv file with 3 distinct columns with their values.

id	Introduction	Vertical
Jinshan District, Shanghai, China	international saler at Shanghai Triowin Automation Machinery Co.,Ltd	Machinery, Transportation
Pudongxin District, Shanghai, China	Market Communication Specialist, Shanghai JiaoTong University - Kedge Business School	Education Management
Nanjing City, Jiangsu, China	System Tester at Jiangsu HopeRun Software Co., Ltd.	Computer Software

I want output in 3 separate columns without comma values like below.

 

id	Introduction	Vertical
Jinshan District Shanghai China	international saler at Shanghai Triowin Automation Machinery Co.Ltd	Machinery Transportation
Pudongxin District Shanghai China	Market Communication Specialist Shanghai JiaoTong University - Kedge Business School	Education Management
Nanjing City Jiangsu China	System Tester at Jiangsu HopeRun Software Co. Ltd.	Computer Software
cterenzi
Specialist
Specialist

I believe this is the same issue as your other topic? Set your Field Separator to "," and your Text Enclosure to "\"" and you should be good.
Anonymous
Not applicable
Author

Not working! Can you post a screenshot if in case it worked for you?

TRF
Champion II
Champion II

once you have " around fields, once you have not, it's difficult to give you the answer if the question change from a topic to another.

please, for people trying to help others, be constant and don't open multiple topics for the same question.

vharcq
Contributor III
Contributor III

Anonymous
Not applicable
Author

Ok, this is what worked for me. A simple thing, all i did was changed Encoding to UTF-8 in the Advanced settings tab in iFileInputDelimited component..

Anonymous
Not applicable
Author

I had tried same solution giving UTF -8 (using open source talend tool ) but it was reading only the half record

Ex : Engl,ish , Hin,di , then

Out put is Engl , Hin

 

Not sure how to read the complete value . please help