Task Scheduler PDF Print with widget still loading

Issue #779 resolved
Rodrigo Mazziero created an issue

Describe the bug
Hi ,

A client is having issues on the print for the Task Scheduler in UX, where sometimes the PDF print has the widgets still loading, but at times it works.

The widgets are querying a heavy cube (dim with 1M elements), but it runs in a few seconds on the browser and always finishes successfully.

To Reproduce
create a task to print to PDF a Wizard report, and execute the task.

This particular wizard report has only 1 step with 4 sub-steps.

Expected behavior
The print should contain the Widgets all loaded with the results.

Screenshots

This is how 1 of the pages of the PDF print looks:

image1435×476 50.2 KB

It looks like a bug, or Is there any config to make the task wait longer for the widget to finish loading it?

UX version 2023.05 FP1

Thank you.

Rodrigo

Comments (4)

  1. Ada Trajer
    • changed status to open

    Hi Rodrigo,

    There are two options in the settings.json file that might help with this issue: "printerStartingPort": should be set to 0 "printerPauseBeforePrint": value should be increased in case the widgets are not loading

    If you could update them and check if the problem still occurs it would be great.

  2. Rodrigo Mazziero reporter

    Hi Ada,

    Thanks for the quick response!

    The “printerStartingPort” was already set to 0, But increasing the “printerPauseBeforePrint” seems to have solved, thanks!

    I tested increasing the time little by little, but I ended up having to increase to 22000, just for this particular report page that takes a while.

    The only downside to this is that now it takes way longer to run Tasks with multiple reports, as it is always waiting 22 seconds between each page regardless. Would be great if this could be customized only for specific pages. would it be possible to have such an Enhancement potentially?

    Thanks!

  3. Ada Trajer

    Hi Rodrigo, glad that it helped! I will add this enhancement proposition to our backlog to review it and will keep you posted.

  4. Log in to comment