Summary: | The maximum number of Cell Styles was exceeded. You can define up to 64000 style in a .xlsx Workbook Issue | ||
---|---|---|---|
Product: | POI | Reporter: | Ashok Mahendran <ashok.mahendran> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED INVALID | ||
Severity: | critical | CC: | ashok.mahendran |
Priority: | P2 | ||
Version: | 3.17-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Ashok Mahendran
2019-07-26 14:44:30 UTC
POI 3.15 is no longer maintained. Could you try POI 4.1.0? Could you provide a test case if this issue appears in POI 4.1.0 too? I think this is "as expected". Microsoft Excel limits the number of styles in Excel files and thus POI also limits them. The Exception tells you that you try to create more styles than possible. Usually this indicates incorrect usage of the API. You need to re-use styles and not create fresh ones for each and every cell, then also performance in both Apache POI and Excel itself may be better as much less styles need to be handled when opening/saving the file. |