Thank you, and code looking good. I noticed that the code is writing exception details to console, but I missed last time when this happened. I will try to reproduce and see if I can capture the exception details from console log.
After resolving the above issue, now I see a timeout error on my server. My laptop is doing good with the same data, I ruled out data is not a problem. Will you be able to help? Or should I open new topic in this forum?
jsreport.Local.JsReportBinaryException: Error rendering report: A critical error occurred while trying to execute the render command: Timeout Error: pdf generation not completed after 30000ms (1). caused by error (1) -> meta = {"remoteStack":"Error: Timeout Error: pdf generation not completed after 30000ms at Timeout.setTimeout [as _onTimeout] (jsreportRuntime.js:133651:19)