How to Convert Csv file to Excel

Highlighted
Seven Stars

How to Convert Csv file to Excel

Hello,

 

I have a requirement wherein I have to convert CSV file to Excel (.xlsx). The file is getting converted but with incorrect data. 

 

Example, If in InputFile i.e CSV there is a row which contains a comma(,) then while loading the data in Excel file comma(,) is removed. 

 

I want data of csv as it is in excel file including all special characters/symbols.

 

I am using Talend Data Fabric 6.3.1 & Java 8 . Kindly check attached images of my job design. 

Job Design.jpgJob DesigntFileInputDelimited_basicsetings.jpgtFileInputBasicSettingstFileInputDelimited_Advsetings.jpgtFileInputAdvSettingstFileOutPutExcelSettings.jpgtFileOutPutExcelSettings

Source(CSV)FileData.jpgSourceFileDataOutPut(xlsx)FileData.jpgOutPut(xlsx)FileData


Accepted Solutions
Forteen Stars

Re: How to Convert Csv file to Excel

@Vikas,you should get data for each and every coulmn in " " then you will not face any issue.if you have same delimiter as part of column value,you will not extract as per your requirement.

i am just showing,this will be help to you to understand.

 

Input data:-

col1,col2
"Hello"|"ABC"
"aass"|"CDF|AC"

 

Untitled.pngUntitled.png

 
Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

View solution in original post


All Replies
Forteen Stars

Re: How to Convert Csv file to Excel

@Vikas,you should get data for each and every coulmn in " " then you will not face any issue.if you have same delimiter as part of column value,you will not extract as per your requirement.

i am just showing,this will be help to you to understand.

 

Input data:-

col1,col2
"Hello"|"ABC"
"aass"|"CDF|AC"

 

Untitled.pngUntitled.png

 
Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

View solution in original post

Forteen Stars

Re: How to Convert Csv file to Excel

@Vikas,still do you have the issue.

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Forteen Stars

Re: How to Convert Csv file to Excel

@Vikas,other way you can check Advanced sepaaUntitled.pngrtor.

 

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Seven Stars

Re: How to Convert Csv file to Excel

Thanks, @Manohar Escape char and Text enclosure settings solved the problem.

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