Is there any built-in error handling features available in Zen report

Primary tabs


Is there any default exception handling feature available in Zen report? I am working on a report that comprises of several different composites report (%ZEN.Report.Display.composite). I am incorporating several composites into the main Zen report, If any composite fails or encounters an issue such as issue with the sql statement or class method which i am using to fetch the data, the report (pdf) fails and shows a Zen error. It is very hard to find an exact composite or code that causes the error as Zen report displaying a generic Zen Error without any details.

So, I am adding try-catch block in the class method for each composite and recording errors in the log file (persistence class for storing errors) but I would like to know if there is any better exception handling feature available in Zen reports.

Any thoughts or solution would be really appreciated.

  • 0
  • 0
  • 148
  • 2
  • 1


By default Zen Reports only supports the basic error details. Even when running the report using $LOG=1 troubleshooting feature, you will see the failure but it may not identify what composite may have actually caused the problem. The best way to identify exactly where the error is occurring is via the try-catch within each individual composite.



Is there a way  I can get the exact error message which we can see from System operation->system logs->Application Error logs?
We can also see this error message through the URL by adding $LOG=1 followed by the Zen report URL.

Actually the goal is to get the system error log information, stored in ^SysLog, related to Zen report and store in the user defined log classes. I believe this error log has well defined error messages that can help tracking the exact  problem area either Zen Composite or Zen page level for Zen reports

Please share your thoughts!!

Thanks in advance