376
Views
10
Comments
Solved
[Ultimate PDF] UltimatePDF is causing an error "The operation has timed out"
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Traditional Web
Service Studio Version
11.11.15 (Build 48647)
Platform Version
11.12.2 (Build 31091)

When we generate pdf documents on our application there is a timeout issue followed by an error message saying "An error occurred while generating the PDF". The issue we are experiencing is intermittent. It started last week when it happened only sometimes on our production environment and since yesterday afternoon it has been happening frequently in our development environment. Generating a pdf forms a crucial part of the functionality of our application and we are negatively impacted by this error.

In experiencing the issue, looking at our log in the service center, it appears that the issue is caused by the UltimatePDF component, please see the images below.

After investigating the issue with OutSystems Support, they recommended that I update the forge component to its latest release and I did that. We have our timeout on the action set as infinite. None of these helped to resolve the problem. Furthermore, it was noticed that the timeout appears due to high CPU usage at between 60% to 100%.

Please could you advise me on the following: 

1. Is the UltimatePDF action I am using limited to scale? (Do generating larger documents cause the timeout to occur? Can UltimatePDF handle generating 50+ page pdfs easily?)

2. How can I eliminate this timeout issue?

Kind regards
Janine





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

Please increase the Server Request Timeout to prevent these errors.

2023-08-28 07-00-10
Paulo Torres
Champion

Hi Leonardo,

Yes, I did this as a workaround.

Thanks

2024-12-18 12-24-52
Kang

Hi @Leonardo Fernandes,
So what would be an appropriate request time limit? For example, what should I do if I need to download a PDF file that is over 20MB? 

2024-09-14 05-42-00
Ozan Can Çalı
Champion

Hi Janine,

Indeed, if there are many pages to render while generating PDF, it's quite possible to get timeouts. Depends on what's being rendered as well, but 50+ pages caused me timeouts in the past.

Have you tried fiddling with the Server Request Timeout property, where you call the PDF generator server action?

2020-05-07 13-04-48
Janine Steyl

My Server Request Timeout property is set to infinity (-1).
This still is not resolving my problem.

Do you have a suggestion for a method or plugin that is able to handle generating large documents?

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

Please upgrade to 4.0.5 and let me know if it fixes the timeout issues.

Thanks.

UserImage.jpg
Maria da Graça Monteiro de Azevedo

Hi, I had the same problem before, but the problem keeps coming back again. The PDF is not even that big. Already installed the last version, with not result.

In a later version you had a server request timeout variable, but now its gone.  

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

@Janine Steyl were you able to fix your issue with timeouts?

2024-02-14 09-44-45
Omar Abd elkefi

Im having the same issue, in the first few days pdf were generated smoothly, then the app started giving random timeouts, any help will be much appreciated.

2023-08-28 07-00-10
Paulo Torres
Champion

Same problem when is used PrintToPDF, if use the redirect is take time but don't return TimeOut. It happens with very small PDF.

Someone knows how to solve the issue?

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

Please increase the Server Request Timeout to prevent these errors.

2023-08-28 07-00-10
Paulo Torres
Champion

Hi Leonardo,

Yes, I did this as a workaround.

Thanks

2024-12-18 12-24-52
Kang

Hi @Leonardo Fernandes,
So what would be an appropriate request time limit? For example, what should I do if I need to download a PDF file that is over 20MB? 

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