One Star

How to Convert an excel file to a CSV file

Hi,
I am new to this group. I have a simple question. I just want to convert an excel file to csv file. Can anybody give any link or document about this..
Thanks
crazy_nithin
7 REPLIES
Community Manager

Re: How to Convert an excel file to a CSV file

Hello
Please download the user documentation and learn the basic usage of tFileInputExcel and tFileOutputDelimited component.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to Convert an excel file to a CSV file

Thanks Shong,
for your quick reply..
i tried and when i am running getting the error like this...

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
jxl cannot be resolved to a type
jxl cannot be resolved to a type
jxl cannot be resolved to a type
jxl cannot be resolved
jxl cannot be resolved to a type
jxl cannot be resolved to a type
jxl cannot be resolved to a type
jxl cannot be resolved to a type
jxl cannot be resolved to a type
jxl cannot be resolved to a type
at talenddemosjava.abc123_0_1.Abc123.tFileInputExcel_1Process(Abc123.java:330)
at talenddemosjava.abc123_0_1.Abc123.runJobInTOS(Abc123.java:598)
at talenddemosjava.abc123_0_1.Abc123.main(Abc123.java:511)
Job Abc123 ended at 11:19 21/11/2008.

any idea please...
Thanks
crazy_nithin
Community Manager

Re: How to Convert an excel file to a CSV file

Hello
Unresolved compilation problems:

Go to the 'code' tab, you will see the error message.
Which version of TOS are you using?
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to Convert an excel file to a CSV file

Shong,
I am using TOS v3.0.1 ... in code i am getting the error as,
java.util.List<jxl.Sheet> sheetList_tFileInputExcel_1 = new java.util.ArrayList<jxl.Sheet>();
jxl.Sheet sh_tFileInputExcel_1 = null;
Thanks
crazy_nithin
One Star

Re: How to Convert an excel file to a CSV file

also in designer showing
-no schema difined yet and
-parameter (sheet list) must have atleast one value
Thanks
Employee

Re: How to Convert an excel file to a CSV file

you have to define a schema for your tFileInputExcel component. You need as much columns in this schema as the number of columns you want to retrieve from the xls file.
You also have to define which sheet of your excel file you will retrieve the datas from ("Sheet List" option)
Connect the tFileInputExcel to tFileOutputDelimited and that should be ok.
Read the user documentation if you need further information.
One Star

Re: How to Convert an excel file to a CSV file

Thanks nhaumont,
for your detailed description...