Hello OutSystems forum,
We have an issue when we are trying to use PrintToPDF_Advanced function to generate a screen into PDF file. We already update this component to the latest version available (8.0.2) but the issue still persist. We are trying to create a function to download the generated PDF to binary browser file and this is being used on Traditional Web app. The result leave the screen blank. These are the error logs from service center:
As for platform version, our both development & production is on Version 11.19.0 (Build 38072)
We also installed the ultimatePDF Management app to generate the log, i've sent the attachment. Is the Ultimate PDF service is currently not available? We are welcoming any advice to resolve this issue.
Thank you in advance,
Best regard
Aditya, I believe this was fixed in version 8.0.4. Please install the Ultimate PDF 8.0.4 version, and republish the application that invokes the PrintToPDF action.
Hello @Leonardo Fernandes, after we do a clean install with 8.0.4 version (in cloud dev environment) it solved the Invalid Cookies issue.
Thank you very much for your further assistance.
@Aditya Prabowo thanks for the troubleshooting information.
I suspect this is some incompatibility between Ultimate PDF and the version 11.19. I am in the process of investigating that and will let you know.
As a workaround, you can try wrapping the call to PrintToPDF_Advanced inside of a service action.
Hello @Leonardo Fernandes , thank you very much for the response
Wrapping inside a service action seems solve the print process, but it cannot maintain the screen session I suppose. What makes a service action capable of doing so instead of a server action?
We are looking forward for your further investigation
Thank you,
Aditya
@Aditya Prabowo indeed you would lose the user's session inside of a service action. That is just a workaround. You could secure the screen by passing a user id and a secure token as input parameters.
I'm working on a fix to this issue which only happens in 11.19. I don't have an 11.19 environment, but I'm trying to get access to one so I can troubleshoot this.
thank you for the information @Leonardo Fernandes
we've been trying to wrap the PrintPDFAdvanced inside service action as a temporarily workaround, but there are several logs of error that appeared when the end-users using the apps. Examples:
Some of them were being generated on Traditional Web App, and some on the Reactive web app
Also our production server does have restricted connection so it might be the case, any advice to solve this problem?
Thank you
Hi. You will need a folder in the file system where the application can read/write files to. Usually you would be able to use a temporary folder.
You can configure a different temporary folder by installing the Ultimate PDF Management component:
https://www.outsystems.com/forge/component-overview/11585/ultimate-pdf-management
Hello @Leonardo Fernandes
About this configuration do you have a guide on its setup? When we are accessing the Browser Revisions & Temp Files there is an error access message in the screen, I assumed this caused by required permission from our server.
Does this mean we are not able to configure or utilizing the PDF management app?
Can we still upload the browser revision manually within Ultimate PDF Management app or we have to placed the file directly to our server or need to change its permission?
@Aditya Prabowo I have analyzed the issue and I'm not sure if it's caused by any incompatibility with 11.19.
Moreover, the error you have shown "Stack empty" was fixed in Ultimate PDF 8.0.1.
Could you update Ultimate PDF to 8.0.2, then republish the application that is consuming the PrintToPDF_Advanced action, and test again? If you still experience errors, please send me a screenshot of all error logs that are logged (sometimes multiple error logs are logged for the same issue).
Hello @Leonardo Fernandes ,
We've already tried to reinstall (we rollback all the Ultimate PDF's modules first) the 8.0.2 version in our Development server. Unfortunately the stack empty messages are persist from our Traditional Web App using PrintToPDF_Advanced action.
We didn't a do clean (e.g delete all the modules first) reinstall/republish of the plugin because there are so many applications that already have referenced these module.
Also there is another error message mentioned Invalid Cookie Fields, this was also generated from Traditional Web app:
I'm not sure why it's only working on Reactive Web App. Just for the info we've indeed upgrade our platform version recently to the development & production server to 11.19, and previously have no issue.
I've also sent the recent error log from service center just in case you and the team needed one.
Thank you very much,
Could you try republishing the module EcorrPDFDoc and re-testing? I believe this issue is happening because there's some outdated code loaded by that module.
We've published the entire associated modules to the application via solution package
After that we re-test to trigger the PrintToPDF_Advanced inside the runtime application logic, but the results leave the page blank (usually it creates a prompt file binary download):
And as for the error logs, now it mentioned Invalid Cookie Fields that I have stated earlier: