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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
lcupito
Contributor
Contributor

Problem to manage excel file

Hi,

i have a .xls with 2 sheets and 2 different schemas. How can i manage them and create two different entities?

i created 2 tfileinputexcel with 2 same routines. I'm searching for a dynamic solution because i will have to add other sheets when they will be available.

0695b00000chwkAAAQ.jpg 

thank you

Labels (3)
2 Replies
jlolling
Creator III
Creator III

It is not quite clear for me what do you want?

You need a generic way to read the files and sheets? The enterprise edition contains Dynamic data type which means the components detects itself the fields.

lcupito
Contributor
Contributor
Author

i tried to do that but it doesn't work. i have a file xls with multiple sheets with different schemas. so i tried to handle them dinamically.

0695b00000dakqBAAQ.png0695b00000dakqaAAA.png0695b00000dakrTAAQ.pngi thought i could handle in this way and in the end i would save in a csv file. where am i wrong?

the part below is still to be implemented: I filter the columns and rows and only get the distinct Files and Sheet names.

 i receive this error:

 tFileInputExcel_1 org.apache.poi.hssf.usermodel.HSSFWorkbook cannot be cast to org.apache.poi.xssf.usermodel.XSSFWorkbook