DOCGEN_FOR_WAIT_CONTENT_ERROR while generating large PDF (250–300 pages)

0
I am facing an issue while generating a large PDF document (approximately 250–300 pages) using Document Generation.The document generation process fails with the following error:Failed to generate document for request: b07f65a6-df6f-474d-8375-c97247f9cc8d DOCGEN_FOR_WAIT_CONTENT_ERROR: Failed while waiting for page content. Environment:Mendix Version: 10.24.14Document Generation Module Version: 2.1.4Issue Details:The PDF contains around 250–300 pages.Smaller documents are generated successfully.The error occurs consistently when generating large PDFs.No custom Java actions are involved in the document generation process.Questions:Is there a page limit or timeout limitation for PDF generation in Mendix Document Generation?Has anyone experienced this DOCGEN_FOR_WAIT_CONTENT_ERROR with large documents?Are there any recommended approaches for generating large PDFs, such as splitting the document into multiple PDFs and merging them later?Are there any configuration settings that can be adjusted to increase the timeout or improve performance?Any suggestions or best practices would be greatly appreciated.Thank you!
asked
1 answers
0

Aman,

In the Mendix documentation, this section may be helpful: https://docs.mendix.com/appstore/modules/document-generation/troubleshooting/


Specifically, this section describes the issue you are having:


I have highlighted the section that I think identifies your problem. You could try accessing the page via navigation to see how long the page takes to render. If it takes more than 30 seconds, you will receive this error. You could try working on the page structure, adding indices to make database retrieves faster, etc.


Hope that helps,

Mike

answered