KNIME Reporting extension throws an exception in batch mode. Unable to generate reports

Hi community. It looks like the new KNIME reporting extension released in KNIME 5 does not work in batch mode. Here is a way to replicate the issue with the minimal viable example workflow

hub.knime.com

From a windows command prompt, run:

“C:\Program Files\KNIME\knime.exe” -consoleLog -reset -noexit -nosplash --launcher.suppressErrors -application org.knime.product.KNIMEBATCHAPPLICATION -workflowFile=“C:\Users\USER\Downloads\Reporting minimal example.knwf”

It gives this output:

INFO     main BatchExecutor      ===== Executing workflow C:\Users\USER\Downloads\Reporting minimal example.knwf =====
ERROR    KNIME-Worker-4-Component Output 3:3:0:4 ReportPortObject        java.util.concurrent.TimeoutException: Executing script failed with timeout. The script is: 'return (document.readyState == 'complete');'
ERROR    KNIME-Worker-4-Component Output 3:3:0:4 ReportPortObject        java.util.concurrent.TimeoutException: Executing script failed with timeout. The script is: 'return (document.readyState == 'complete');'
INFO     main BatchExecutor      Workflow execution done Finished in 33 secs (33990ms)
INFO     main BatchExecutor      Saved workflow availabe at: C:\Users\USER\Downloads\Reporting minimal example.knwf
INFO     main BatchExecutor      ============= Workflow executed sucessfully ===============

If you open the .knwf after the run you can see that the reporting node failed to generate the report.

We are seeing similar issues on other workflows but only in batch mode. Using the GUI they execute successfully. This is in 5.2.0. Can anyone assist?