192
Views
12
Comments
[Ultimate PDF] Ultimate PDF Error
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Traditional Web
Service Studio Version
11.54.2 (Build 62176)
Platform Version
11.18.1 (Build 37828)

PDF download fails when calling the PrintToPDF server action.



Info from our platform admin:
The application errors for the PDF module are not generated by the event log. The module is not being blocked by the server. I checked the event viewer via the System and Application Event logs and found nothing.


We have:
- deleted and reinstalled the component, as per suggestion in other discussions

- auto and manual upload of browser version

 
Please may we please ask for assistance. 
Previous question posted: [Ultimate PDF] An error occurred while generating the pdf. | OutSystems

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jana,

Please do not post the same question multiple times. I understand you want an answer quickly, but people are not always available, not even within a day. Thanks.

UserImage.jpg
Jana Le Roux

My apologies for that.

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

@Jana Le Roux please come back with the following information:

* What is the version of the OutSystems Platform you are using?

* Install the ultimate pdf demo, and see if the sample screens are working on your environment.

* Install Ultimate PDF Management and collect an execution log of this report.

UserImage.jpg
Jana Le Roux

Good morning, thank you for taking my question.

* Platform Version 11.18.1 (Build 37828).  On Prem installation.

* The demo works well on our DEV and QA environments, but not our PROD environment.

* Ultimate PDF Management is installed, but the following error occurs on clicking "Download execution log zip file": 

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


Could you please repeat the test with version 8.0.4?

If the error still occurs, multiple errors will be logged to Service Center. Please share the error details of all of these issues.

UserImage.jpg
Jana Le Roux

Sorry for the news... no success after upgrade to the latest version: 8.0.4: "An error occurred while generating the pdf"
I tested from the PDF Management/ActiveProcesses screen's Test PDF button

Error Log.png
Error Detail - 1.png
Error Detail - 2.png
Error Detail - 3.png
Error Detail - Request Log.png
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP


Hi Jana. Is this problem still occurring?

Can you tell me if this is this an on-premises environment? Does it have multiple front-end servers? And does it use deployment zones?

It would also be great to have a screenshot of the error log screen showing all of the errors that occurred in the generation of the PDF. On the screenshot you shared, it's unclear if a filter is being used, and if there are other relevant logs besides these 3. None of those 3 error logs provide me with a good picture of what's happening, so I'm hoping there's more errors being logged that could explain the issue better.

UserImage.jpg
Thomas Jonas

Hello Leonardo,

I am not affiliated with the OP, but I think I am experiencing the same issue. My company has 3 different environments and in all environments we have the sporadic issue where apps using Ultimate PDF can't generate PDFs. This issue sometimes remediates itself, but then occurs again. Sometimes for days on end.

To see when the PDF generation fails we built a dummy application that creates an empty PDF – it is called „MLV PDF Sandbox“. It is scheduled to run every 5 minutes locally on all application servers. So far no clear failure patterns have emerged. Sometimes it works, a lot of times it doesn’t.

Manually running the ultimate PDF demo also fails when the server is having a „bad streak“. Trying to get an execution log in Ultimate PDF Management 8.0.3 results in the same error as described by Jana.

We are running Ultimate PDF Version 9.0.4 on Outsystems Platform 11.18.1. It is on-prem and all environments share a similar setup using 2 deployment zones, i.e. the  â€žglobal“ and another one. The global one is default for new modules.

Kind Regards,

Tom

Logs.zip
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Thomas. Thanks for the error logs.

Can I ask for the service action logs as well, during the same time period? I'm especially looking for calls to PrintPDF_Service service action.

UserImage.jpg
Thomas Jonas

Thank you for responding.

It seems that for some reason no PrintPDF action is being called. This is also the case for other points in time at which the error occurs. Unfortunately, there is no "Detail" link or similar in the Service Actions Log View I can click to give you further information.

One thing of note is the source IP (pixelated in the screenshot) in the Service Actions Log: It's always our forward proxy. I had the proxy logs checked and no requests are being blocked for the outsystems server. It seems that the MLV PDF Sandbox requests to 127.0.0.1 are always routed via the proxy. I don't think this is the culprit, though. It's just odd. I don't know if it is possible to set a no-proxy exception for localhost requests.

no PrintPDF action at 0347.png
errors_from_2023-05-31_0347.png
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Thomas.

Ultimate PDF invokes a service action, and that operation is failing in your environment. The service action uses the deployment zone address to invoke the producer module, so I suggest you check your deployment zone configuration and see if your network is correctly setup. See:

https://success.outsystems.com/documentation/11/managing_the_applications_lifecycle/deploy_applications/selective_deployment_using_deployment_zones/deployment_zones_reference/

https://success.outsystems.com/documentation/11/managing_the_applications_lifecycle/deploy_applications/selective_deployment_using_deployment_zones/recommended_network_architecture/#configuring-the-address-of-deployment-zones


You can also check if you can find any pattern on the server that shows errors. For example, let's say you have 3 front-ends, FE1 FE2 and FE3. If you see that all errors are logged by FE2, that could mean that FE2 cannot resolve the deployment zone address where Ultimate PDF is.

2023-06-14 21-26-42
oscarldrt

Hello, 

I am having the same problem in OP client. Our DEV and TST environments work well, but production that is OP does not work.

Active Processes is also generating error, follows print.

Thanks & Regards

Oscar

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