
2024-12-26 01:52:20.668-05:00 [HOST:xxx][SERVER:CastorServer][PID:8752][THR:7388][Export Engine][Error][UID:xxx][SID:xxx][OID:0][PDFExporter.cpp:2274] PDFExporter::hGenerateWholePDFJSON: JSON string length is 2045656694, greater than 419430400 and can't be handled by NEE 2024-12-26 01:52:20.668-05:00 [HOST:xxx][SERVER:CastorServer][PID:8752][THR:7388][Export Engine][Error][0x80042B83][UID:xxx][SID:xxx][OID:0][PDFExporter.cpp:2275] The dashboard content size exceeds the PDF Export Engine limit. Contact your administrator to update the exporter.content.limit in the application property file. 2024-12-26 01:52:20.669-05:00 [HOST:xxx][SERVER:CastorServer][PID:8752][THR:7388][Export Engine][Error][UID:xxx][SID:xxx][OID:0][DSSExporter.cpp:3302] CDSSExporter::ExportDocument3: Document name <Dashboard_name>, id <Dashboard_GUID>, format 2, FAILED hr = 0x80042B83.

2024-12-03 12:00:40.434 [HOST:xxx][SERVER:CastorServer][PID:41][THR:Thread-32][NewExportEngine][ERROR] Exception in method: List com.Strategy.nee.exporter.SubProcessController.exportToPDF(ExportProperties) with arguments: [Paper Size: 14.0in x 8.5in, Smart Orientation: false, Header: true, Footer: true, Overview: true, Individual Visualizations: false, Horizontal Pagination: false, Repeat Grid Header: 3, Grid Paging Mode: 0, From Show Data: false, Web Server: https://xxx/MicroStrategyLibrary/api/, Client Type: LIBRARY_WEB, Dashboard Shortcut Name: Export Test - 01, Filter Summary: 1, I-Server: xxx, Use Kafka: 0, Format: application/pdf]
com.Strategy.nee.exception.PDFGenerationException: Limitation of content length is hit, please refer to logs for detail.
at com.Strategy.nee.exporter.SubProcessController.exportToPDF_aroundBody0(SubProcessController.java:200) [classes!/:?]
at com.Strategy.nee.exporter.SubProcessController$AjcClosure1.run(SubProcessController.java:1) [classes!/:?]
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:171) [aspectjweaver-1.9.22.jar!/:?]
at com.Strategy.nee.logging.LoggingAdvice$LogAroundMethod.aroundMethod(LoggingAdvice.java:88) [classes!/:?]
at com.Strategy.nee.logging.LoggingAdvice.myPerformaceTrace(LoggingAdvice.java:80) [classes!/:?]
at com.Strategy.nee.exporter.SubProcessController.exportToPDF(SubProcessController.java:178) [classes!/:?]
at com.Strategy.nee.exporter.PDFExportTask.getPDFPages(PDFExportTask.java:371) [classes!/:?]
at com.Strategy.nee.exporter.PDFExportTask.runImpl_aroundBody0(PDFExportTask.java:294) [classes!/:?]
at com.Strategy.nee.exporter.PDFExportTask$AjcClosure1.run(PDFExportTask.java:1) [classes!/:?]
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:171) [aspectjweaver-1.9.22.jar!/:?]
at com.Strategy.nee.logging.LoggingAdvice$LogAroundMethod.aroundMethod(LoggingAdvice.java:88) [classes!/:?]
at com.Strategy.nee.logging.LoggingAdvice.myPerformaceTrace(LoggingAdvice.java:80) [classes!/:?]
at com.Strategy.nee.exporter.PDFExportTask.runImpl(PDFExportTask.java:262) [classes!/:?]
at com.Strategy.nee.exporter.PDFExportTask.run(PDFExportTask.java:253) [classes!/:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.base/java.lang.Thread.run(Unknown Source) [?:?]
at com.Strategy.nee.exporter.SubProcessThread.run(SubProcessThread.java:51) [classes!/:?]
We have 2 limitations for content size when exporting dashboard to PDF. One is for entire dashboard exporting, which was controlled by setting "exporter.content.limit" in the application.property file. The other is for single page exporting, which was hardcoded, the size is 400MB.
Before exporting the entire dashboard, please adjust the setting "exporter.content.limit" in the application.property file. The Maximum value for this setting is 2048. If a value greater than 2048 is set, then 2048 will be used as the actual property value.
If you met error when exporting single page of a dashboard, as the limitation is hardcoded, we are not able to adjust it for now. Please filter your data to smaller size.