Run large reports in the background
A report on a lot of data, such as the General Ledger for a full year, can stop with the error Request Timed Out. The server needs more time than the page allows.
A prepared report runs in a background job. When it is ready, you open the result.
Turn prepared reports on or off for a report
- Open Role Permission for Page and Report.
- In Set Role For, select Report.
- In Report, select the report, for example General Ledger.
- Select Enable Prepared Report to turn it on. Clear it to turn it off.
- Select Update.
INFO
ERPNext can also switch a slow script report to a prepared report on its own. To stop this for a report, select Disable Prepared Report Automation in the Report.
Run a prepared report
- Open the report, and set the filters.
- Select Generate New Report.
- A message says that the report has started, with a link to track it. Wait on the page, or select the link.
- When the status changes from Queued to Completed, open the report.
To see all prepared reports, open the Prepared Report list. Users need permission on the Prepared Report DocType to see it. Grant it in the Role Permission Manager.