I have problem to create solution to read excel files. I saw a lot of solutions but I have problem with first step of my service.
In first step i create Java class with all imports POI.
I declare:
XSSFWorkbook wb = null;
wb = new XSSFWorkbook(new File("C:/...../test.xlsx"));
And I have error:
Could not run ‘MSExcelWorkSheetToRecord’
com.wm.app.b2b.server.ServiceException: InputStream of class class org.apache.commons.compress.archivers.zip.ZipFile$1 is not implementing InputStreamStatistics.
I wast many time for that problem and I can’t find solution.
Since it’s been a while the original code was written i thought i will take a stab with the latest POI jars.
Using latest POI jars… this should handle records from multiple sheets within single Excel doc. The output will be a string list with “||” delimited records from all sheets.