The POI code i downloaded from this site to load data from a given excel file into an external DB works just fine for a few excels.. but for few others it throws an exception as below org.apache.poi.hssf.record.RecordFormatException: Unhandled Continue Record at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:187) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:183) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:152) at com.saternos.database.utilities.ExternalTableGenerator.execute (ExternalTableGener ator.java:178) at com.saternos.database.utilities.ExternalTableGenerator.main (ExternalTableGenerato r.java:81) Am not very sure why am getting this "Unhandled Continue Record" exception ..
Created attachment 17310 [details] A sample file that causes said exception I've tried to create a minimal example that demonstrates this bug. The 'comments.xls' contains 61 identical comments; iFf any of the comments is removed, the file is loaded successfully.
Hi there, Apparently a ContinueRecord is not handled when the last record is a TextObjectRecord. I've created a patched version that simply ignores ContinueRecords in this case (so that I can access the rest of the file), but this seems to be a little dangerous .. .. unless, with the new RecordInputStream ( http://issues.apache.org/bugzilla/show_bug.cgi?id=31906 ), the continue records really should be ignored. I'd appreciate any insights. Thanks, Youval
Suggested change is not valid. Problem is more complex. The way that ContinueRecord work with TextObjects and Graphics is wierd. This coulod take some time to fully resolve. Sorry. Jason
Created attachment 19544 [details] Unhandled Continue Record
Comment on attachment 19544 [details] Unhandled Continue Record Hello all, I have encountered the same Unhandled Continue Record error, please view the attached Excel file. I still can't find the reason for the error. if any one can help, it would be a great help.
Works with POI 3.0.2 BETA2. Yegor