Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

IllegalStateException occurs when exporting large decision table



IllegalStateException occurs when exporting a large decision table.

Error Messages

Caused by: java.lang.IllegalStateException: The maximum number of Cell Styles was exceeded. You can define up to 64000 style in a .xlsx Workbook
org.apache.poi.xssf.model.StylesTable.createCellStyle( ~[poi-ooxml-3.15.jar:?]

org.apache.poi.xssf.usermodel.XSSFWorkbook.createCellStyle( ~[poi-ooxml-3.15.jar:?]

at com.pega.pegarules.session.internal.document.workbook.PRWorkbookAPOI.createCellStyle( ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.document.workbook.PRCellStyleFactory.getClonedOldStyle( ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.document.workbook.PRCellStyleFactory.getFormatCellStyle( ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.document.converter.AbstractWorkbookConverter.addDataFormat( ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.document.converter.AbstractWorkbookConverter.generateWorkBook( ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.document.converter.DecisionTableWorkbookConverter.generateWorkBook( ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.document.converter.AbstractWorkbookConverter.exportDocument( ~[prprivate.jar:?]
at com.pegarules.generated.activity.ra_action_pzexportdecisiontable_b56405dda7cf4c267e00f41e0adad242.step2_circum0( ~[?:?]
at com.pegarules.generated.activity.ra_action_pzexportdecisiontable_b56405dda7cf4c267e00f41e0adad242.perform( ~[?:?]
com.pega.pegarules.session.internal.mgmt.Executable.doActivity( ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt( ~[prprivate.jar:?]
... 50 more

Steps to Reproduce

  1. Open a decision table with multiple rows.
  2. Click Export on the decision table rule.
  3. Repeat Steps 1 and 2, while tracing the export.

Root Cause

A defect in Pegasystems’ code or rules.


Apply HFix-40835.

Published March 20, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us