Support Article
Export to excel from Report is failing
SA-82117
Summary
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 127.0.0.1|127.0.0.1 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
- Upgrade to Pega Platform 8.2.2 deployed on JBOSS EAP.
- Open any report.
- 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.
Resolution
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.