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

Download file from Sharepoint (OOXML error)

Hi,

 

I have downloaded .xlsx file from SharePoint but if I am trying to read it through tFileInputExcel it throws below error-

 

Exception in component tFileInputExcel_2 (test11)
org.apache.poi.openxml4j.exceptions.NotOfficeXmlFileException: No valid entries or contents found, this is not a valid OOXML (Office Open XML) file
at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:286)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:758)
at org.apache.poi.POIXMLDocument.openPackage(POIXMLDocument.java:90)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:336)
at local_project.test11_0_1.test11.tFileInputExcel_2Process(test11.java:1254)

0683p000009M8wL.jpg

 

To get URI in tFileFetch from SharePoint I have right-clicked on file and did "copy link". Let me know if more info is required.

Please note, I am also unable to open that Excel file manually by double-clicking, it says file format/extension is not valid or file is corrupted.

 

Regards,

Ravi

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi Ravi
It seems the file has been corrupted during downloading with tfileFetch if you can't open it manually. Can you try to download the file manually and see if you are able to open it?

Regards
Shong
Anonymous
Not applicable
Author

Hi Shong,

Yes, I am able to download it manually and it opened fine.

The problem comes only while downloading with Talend.

Sharing further details with you of tFileFetch and Excel components:

 

0683p000009M9Zq.jpg

 

Excel:

 

0683p000009M9XR.jpg

 

Please note- I am not able to attach Talend downloaded excel herewith post as it throws an error- "The contents of the attachment doesn't match its file type".

 

Regards,

Ravi

Anonymous
Not applicable
Author

Hi Shong,

 

Any idea on this, I am stuck.

Trying with trestclient as well but no luck.

 

Regards,

Ravi