77
Views
8
Comments
[Ultimate PDF] An error occurred while generating the pdf  Waiting for selector `.active-screen`
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hello, can you help me with this??

I have thits problem 



Regards!

2026-03-12 10-32-06
Wahaj Adil

Hi @Luis Andrés Jara Vásquez , hope you're doing well.

This error typically indicates that the PDF generation process is being triggered before the screen has fully loaded or rendered.

  • Increase the Timeout in the Ultimate PDF Configuration.
    Within your Ultimate PDF logic, there is generally a Timeout Parameter named Server Request Timeout (specified in milliseconds). It is recommended to set this value to 5000 ms (5 seconds) or higher to allow sufficient time for the screen content to fully load before initiating the PDF generation.
  • Ensure the Screen Is Fully Loaded Before Generating the PDF.
    In Reactive Web Applications, content may load asynchronously. To ensure the screen is completely rendered before starting the PDF generation, consider using events such as OnAfterFetch or OnReady
    These can be leveraged to delay the PDF generation until all necessary data is loaded and the DOM is fully rendered.

    Hope this resolves your issue.

    Thanks and Regards!
2024-05-28 00-11-35
Luis Andrés Jara Vásquez

Hello!!!
i'm using in the test the management of the component to generate the demo pdf


and with the example URL "/UltimatePDF_Management/SamplePDF" Run success


But with the copy of the screen 

in other module has error
“/XXXXXX_Request_Form_EU/ApproversFlowLimitedV3”



X/



2026-03-12 10-32-06
Wahaj Adil
AI Generated

Hi @Luis Andrés Jara Vásquez ,
This is actually a common scenario when using Ultimate PDF across modules, and it usually comes down to URL accessibility, dependencies, or visibility issues.

Below are some ways to check and fix..

  • Is the Screen Public?
    If you're calling /XXXXXX_Request_Form_EU/ApproversFlowLimitedV3 from another module, the screen you're trying to render must be set as Public.

How to check:

  1. Go to the screen in the target module
  2. Select the screen in the Interface tab
  3. In the Properties panel, set "Public" = Yes (True)

If it’s not public, the PDF engine can’t access it and will fail silently or return an error.


  • Check if the Screen Requires Login
    If the screen you're trying to render requires authentication, and Ultimate PDF tries to render it without a valid session, it may break.

Some options are:

 – Allow Anonymous Access (for rendering only):

  1. In the screen properties, temporarily set (tick) "Anonymous" = 'Yes' (☑️)
  2. Or create a clone of the screen that renders the same layout, but allows "Anonymous" access and doesn’t require user session

 – Use Session Cookie (Advanced)

  1. Set the SessionId input when calling the GeneratePDF server action
  2. This ensures the PDF rendering engine has the same session context as the user

Security tip: Don’t expose sensitive data unless you’re handling session validation securely.


  • Is the Screen Rendering Properly in Browser?
    Test the URL in a private/incognito browser window. If it doesn’t load fully there (because of login or permissions), Ultimate PDF also won’t be able to render it.


  • Check Dependencies Between Modules
    If the new module doesn’t have Ultimate PDF properly referenced, or if the module structure was cloned or renamed, it can cause unexpected errors.
    Go to Manage Dependencies;
    -- Ensure UltimatePDF, UltimatePDF_Management, or any necessary components are correctly added.


Wrap your target screen with a fake layout and remove all logic to test if the rendering engine works. This helps isolate whether the issue is in the screen’s logic or in the PDF engine setup.



Hope this addresses the issue.

Thanks and Regards!

This answer was AI-generated. Please read it carefully and use the forums for clarifications
2025-04-14 11-22-14
Aditi Saraswat

Hi @Luis Andrés Jara Vásquez,

To configure Ultimate PDF, adjust the Server Request Timeout setting (typically in milliseconds) to at least 5000 ms (5 seconds) or more, depending on your screen's load time. This allows the application sufficient time to fully render all elements before generating the PDF.

Utilize lifecycle events such as OnAfterFetch, OnAfterRender, or OnReady to ensure all necessary data is fetched and the DOM is completely rendered. Initiate the PDF generation only after these events to prevent incomplete or blank PDFs.

Hope this helps

Thanks

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Luis.

You have the same error as described in here: https://www.outsystems.com/forums/discussion/102315/ultimate-pdf-download-pdf-ultimate-pdf-error/

You will need to upgrade your platform to fix this error.

2024-05-28 00-11-35
Luis Andrés Jara Vásquez

Hola Leonardo!!
We are using  the Versión 11.28.0 (Build 43201) from 03/06/2024. But the person in the link is using the version 11.24.0 from 13/11/2023.

I will try to update and i will write the result here!!!

Regards

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP


Please note that version 15.0.1 should fix this issue, so if you install Ultimate PDF 15.0.1, you no longer have to upgrade the platform.

2024-05-28 00-11-35
Luis Andrés Jara Vásquez


Hi Leonardo, i'm using the last version of the plugin (15.0.1) and i'm using the Ultimate PDF Management too.


The problem continue, some times runs ok, sometime has error.


y send a post and Inbox with the information
https://www.outsystems.com/forums/discussion/102315/ultimate-pdf-download-pdf-ultimate-pdf-error/#comment_Post448869 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.