Created attachment 35989 [details] PoiBug.java minimal example The attached code creates an XLSX file which can't be opened by Excel 2016 (Excel reports error 101648 when pressing Ctrl+Shift+I in the error dialog) The problem occurs if I use the column 16383: Cell c = row.createCell(16383); Tested with Excel 2016 (16.0.4705.1000).
This bug was introduced with POI 3.16. With 3.15 everything works fine.
Maybe this is related to [1] - does it work with a nightly? [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=61798
I just made a test with the nightly version. Using nightly the created xlsx file does not show any error when opened in Excel. *** This bug has been marked as a duplicate of bug 61798 ***