Hey,
I am encountering an issue with downloading reports from customized forms in DHIS2 version 2.40.0.1. While the reports display correctly within the DHIS2 interface, the downloaded XLS and PDF files are consistently 0 KB in size and contain no data or fail to complete downloading.
When generating reports from these customized forms, the data displays correctly on the screen with all expected information present. However, when I attempt to download the report in either XLS or PDF format, the download completes, but the resulting file is 0 KB and empty. I have checked the browser console for errors and found no relevant messages during the download attempt. Additionally, I reviewed the server logs but did not find any clear indicators of what might be causing this issue. The server has the correct file permissions, and other file operations are functioning as expected. This problem is isolated to customized forms; reports generated from standard forms download correctly in both XLS and PDF formats.
I would appreciate any guidance or support you can provide to help resolve this issue. If there are any specific logs or additional information required, please let me know, and I will be happy to provide them.
Thank you for your response. Here’s a detailed explanation of how I am creating the customized form in DHIS2 version 2.40.0.1:
Category Options, Category, and Category Combination:
I start by creating Category Options, then define Categories and Category Combinations as needed.
Data Elements and Data Element Groups:
I then create Data Elements and organize them into Data Element Groups. I also create Data Element Group Sets to manage the elements effectively.
Data Set Creation:
A Data Set is created where I select the relevant Data Elements for inclusion.
Form Design:
I save the Data Set and open it to design the Data Entry Form. During this step, I create tables and assign the Data Elements to the table cells.
Data Entry and Report Generation:
After saving the design, I use the Data Entry form to input data and complete the form. However, when I attempt to generate a report and download it in either PDF or XLS format, the download either fails or results in a 0 KB file.