Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when creating a spreadsheet with many date cells. #13

Open
bwilson opened this issue Feb 18, 2015 · 0 comments
Open

Exception when creating a spreadsheet with many date cells. #13

bwilson opened this issue Feb 18, 2015 · 0 comments

Comments

@bwilson
Copy link

bwilson commented Feb 18, 2015

java.lang.IllegalStateException: The maximum number of cell styles was exceeded. You can define up to 4000 styles in a .xls workbook.
at org.apache.poi.hssf.usermodel.HSSFWorkbook.createCellStyle(HSSFWorkbook.java:1158)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.createCellStyle(HSSFWorkbook.java:76)
at org.grails.plugins.excelimport.ExcelImportService.setCellValue(ExcelImportService.groovy:591)

The ExcelImportService is creating a new CellStyle for each date cell, and thus exceeds the limit of 4,000 styles. I am about to check in a proposed fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant