{"Errors":["An error occurred while generating the pdf"],"StatusCode":500}
This error keeps existing when I try to use Ultimate PDF to download a pdf file. The preview function does work. I have used this plugin in other projects without issues. For this company there is no anonymous permission to access a page, so I expect that to be the problem. Is it possible to create a PDF only with access by a registered user? If yes, please explain how. Note, we are using Reactive Web
Thank you Tim.
When using the ScreenToPDF I believe the error log will be listed in the UltimatePDF or UltimatePDF_Service module, instead of being listed on your module. If you filter by those modules you might be able to find the error log.
That error is due to an incompatibility of .NET assemblies. It has happened before on customers that have the PostgreSQL connector installed, see:
https://www.outsystems.com/forums/discussion/68753/method-disposeasync-in-type-puppeteersharp-browser/
If you are using the same database connector, you can install a patch I've made: https://github.com/leonardo-fernandes/ardoPostgreSQL/releases/tag/1.0.3
The patch only differs from the official version by including more recent .NET libraries. I've created a pull request for the author of ardoPostgreSQL but it hasn't been acted yet, given that it's a community-led connector there's not much I can do.
If you are not using the PostgreSQL connector, you can install Ultimate PDF Management and download a troubleshooting zip file containing all dll files used by Ultimate PDF, and from there we can identify what's originating the conflict.
Hi Tim.
Please check the error logs in Service Center, since you should have a more detailed error in there. Please send us at least the error message and stack trace of the error that is marked with Source = Extension method.
Hi, Thanks for replying. Unfortunately there are no error logs. It also works completely fine in a different environment so it might be downloading rights related.
Tim, that error message must have been logged in the Error Log in Service Center. If you are not seeing any entries in Error Log, that means your log service is not working.
Hi, I had another look and we do not get any error log when we use a navigation to a screen which has the screen to pdf action, we just get the sentence shown in the original post. However we tried to do a manual print action using the PrintToPdf server action and that did produce an error log.
We think some company policy prevents us from accessing the server, do you have any suggestions what server setting that could be?
Another error log gives these details.
Hi Leonardo,
The system is indeed using the PostgreSQL connector. We have been trying to install the patch as you've mentioned. Should the filename say version 1.0.3 afterwards? For us it still says 1.0.1 so maybe the installation hasn't been done properly. Is there another way we can check whether all steps have been followed correctly? We do still get the same error message as before at the moment.
We managed to fix the issue by recompiling and updating the references of UltimatePDF and by changing some of the site parameters where the settings are stored for the on premise installation. Thanks so much for your support Leonardo!