简体   繁体   中英

Convert XLS file to XLSX in talend

When I am loading an excel file from a remote server, I am facing an error in talend : “Unable to recognize OLE stream”. Can I convert this file from xls to xlsx in talend? I tried by renaming the extension to xlsx in the tFileInputconvert but it doesn't read then. I can convert to xlsx by saving it as xlsx but the file is on some server through which the data is being loaded into the postgresql tables. Is it possible to convert this file to xlsx or write some java code in talend to make it "Save as" xlsx ?

To convert from XLS to XLSX in Talend

Use a tFileInputExcel to read the XLS file, leaving the option for xlsx unchecked . Define the tabs to read, schema, etc.

Send the output to the component below, or add a tLogRow in the middle to see the rows retrieved from the first step.

Use a tFileOutoutExcel to write those rows of data to a new file, with extension XLSX and having the XLSX option selected .

I tried as stated above. Here is the screen and its error :

在此处输入图片说明

Error :

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM