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

Export to excel from Report is failing



Post upgrade to Pega Platform 8.2.2, error occurs and unable to Export to Excel from a report.

Error Messages

(Log4j2-TF-7-AsyncLoggerConfig-1) [default task-55] [TABTHREAD1] [ ] [Loyalty:01.01.01] (e_Obj_Report_Definition.Stream) ERROR| vsaddala - Section 'pzRDExportWrapper' execution error on page 'pegaInternalReportTempPage' of  class 'Rule-Obj-Report-Definition'. (Log4j2-TF-7-AsyncLoggerConfig-1) org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : org.apache.xml.serializer.ToXMLSAXHandler cannot be cast to org.apache.xml.serializer.SerializationHandler

Steps to Reproduce

  1. Upgrade to Pega Platform 8.2.2 deployed on JBOSS EAP.
  2. Open any report.
  3. Export the data to an Excel sheet.

Root Cause

The known Apache POI bug is handled in the Pega Platform 8.2.2. However, on the user environment, the pr_engineclasses table still had entries from the earlier version of Apache POI (below Poi 4.0.1) after the upgrade. The issue is overcome with the Apache POI 4.0.1.


From the pr_engineclasses table, remove the POI entries which are below Apache POI 4.0.1.

For example:

DELETE FROM rulesschema.pr_engineclasses WHERE pzjar LIKE 'poi-3.15.jar'

DELETE FROM rulesschema.pr_engineclasses WHERE pzjar LIKE 'poi-3.17.jar'

DELETE FROM rulesschema.pr_engineclasses WHERE pzjar LIKE 'poi-4.0.0.jar'

Published October 18, 2019 - Updated December 2, 2021

Was this useful?

100% 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