Skip to content

Report and export record limit settings

A report or an export on a very large number of records can need more memory than the server has. While it works, a server that runs out of memory slows down for every user, and it can stop altogether.

These two settings set the most records one report or one export may be for. A report or export over the limit is refused at once, before any data is gathered: the user is told how many records they selected and what the limit is, and is asked to filter the list to fewer records.

Whatever these settings are, AyaNova asks the user to confirm before a report on more than 250 records or an export of more than 2,000 records, and says how many.

How much memory a report needs

Memory depends mostly on what the report prints. A report with a page for each record needs much more for each record than a list with a line for each record. As a rough guide, in our tests:

  • a work order report printing a page for each work order needed about 2 GB of memory for 500 work orders, server and report renderer together
  • a report with a line for each work order needed about 1.2 GB for 1,000 work orders
  • an export of 5,000 work orders needed about 750 MB

Choose a value with the heaviest report your users run, and the memory your server has, in mind. The server log lists the large reports your users have run, with the number of records and how long each took, which can help choose it.

How the limit works

The count is of the records the report or export is for: the selected records, or with none selected, every record the list's filter matches, on every page.

The limit applies to reports and exports run from AyaNova and through the API. A request over the limit gets an HTTP 400 response with error code 2200 and one validation error, code 2202 on SelectedRowIds, whose message is the limit.

Each refusal is recorded in the server log at the Info level, with the record count, the limit and the user.

A report that a customer notification attaches is for one record, so it is never refused.

These limits work alongside the report rendering timeout, which stops a report that is still running after a number of minutes. Exports have no time limit.

Default

If these settings are not specified, there is no limit. A value of 0 also means no limit.

Overriding

AyaNova expects these values to be provided by config.json properties, environment variables or command line parameters named

AYANOVA_REPORT_RENDERING_MAX_RECORDS (reports)

AYANOVA_EXPORT_MAX_RECORDS (exports)

Each value is a whole number of records, for example 500.

Example config.json entries

{
  ...other properties...
  "AYANOVA_REPORT_RENDERING_MAX_RECORDS": "500",
  "AYANOVA_EXPORT_MAX_RECORDS": "5000"
}

Example command line parameters

ayanova.exe --AYANOVA_REPORT_RENDERING_MAX_RECORDS="500" --AYANOVA_EXPORT_MAX_RECORDS="5000"

Example environment variables

Windows

set "AYANOVA_REPORT_RENDERING_MAX_RECORDS=500"

set "AYANOVA_EXPORT_MAX_RECORDS=5000"

Linux

export AYANOVA_REPORT_RENDERING_MAX_RECORDS="500"

export AYANOVA_EXPORT_MAX_RECORDS="5000"