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
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.
My apologies for that.
@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.
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":
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.
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
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.
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
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.
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.
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.
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