Table of Contents

ForNAV Report Service Configuration

System requirement: The Report Service requires Windows 10 / Windows Server 2016 or later. Older versions, including Windows Server 2012 R2, are not supported - the service will fail to start on them. This matches Microsoft's own end of extended support for those older systems.

The ForNAV Report Service is configured through a JSON file located at:

C:\ProgramData\ForNAV\Report Service\Configuration\Report Service.json

Changes to this file require a restart of the ForNAV Report Service Windows service to take effect.

Default configuration

{
  "Url": "http://localhost:9030/ForNavReportService/",
  "CertificateThumbprint": "",
  "MaxConcurrentRequests": 100,
  "MaxConcurrentTasks": 1,
  "DebugLevel": 0,
  "RenderTimeoutSeconds": 300
}

Settings reference

Setting Default Description
Url http://localhost:9030/ForNavReportService/ The base URL the service binds to and listens on
MaxConcurrentRequests 100 Maximum number of HTTP requests the service will handle simultaneously
MaxConcurrentTasks 1 Maximum number of report rendering tasks allowed to run in parallel
DebugLevel 0 Controls the verbosity of the service log output
RenderTimeoutSeconds 300 Maximum time, in seconds, a single report is allowed to take before it is stopped and reported as failed

Url

The endpoint the Report Service exposes. The Business Central service tier must be able to reach this URL. The service tier must run on the same machine as the Report Service.

MaxConcurrentRequests

Controls how many incoming HTTP requests the service processes at the same time. Requests that exceed this limit are not queued.

MaxConcurrentTasks

Controls how many report rendering operations run in parallel. Report rendering is CPU- and memory-intensive; running multiple renders simultaneously can exhaust resources on the host machine.

The default value of 1 serialises all rendering. Increase this value only if:

  • The host machine has multiple physical CPU cores available for rendering, and
  • Memory is sufficient to hold multiple report jobs in memory at once.

Setting MaxConcurrentTasks higher than the number of available CPU cores typically reduces overall throughput rather than improving it.

RenderTimeoutSeconds

Sets the maximum number of seconds a single report is allowed to take before the service gives up on it and reports it as failed.

By default the service only works on one report at a time (see MaxConcurrentTasks above). Without a limit, a single report that never finishes — for example because it is set to print directly to a printer that turns out to be offline or unresponsive — would block every other report waiting behind it, and the whole service would appear to stop responding until someone restarted it manually.

With RenderTimeoutSeconds in place, a report that takes longer than this fails on its own with an error, the same way any other failed report does (including a debug file for support to look at), and the service carries straight on with the next request. See Debugging for more on this.

A report that is printed directly to a server-side printer is stopped completely once the timeout is reached, so a stuck printer cannot tie anything up. Other reports (returned as a PDF, Word or Excel file) are simply abandoned in the background when they time out — whoever requested it has already received an error and will not see that result either way.

Raise this value if some of your reports are legitimately large and can take longer than 5 minutes to generate. Lower it if you would rather a stuck report fail quickly than wait the full 5 minutes.

DebugLevel

Controls how much detail the service writes to its log. Higher values produce more output.

Value Level
0 Off — no logging
1 Messages only
2 Request and response files

Use level 2 temporarily when diagnosing a problem. Revert to 0 afterwards to avoid excessive log growth in production.

Log files are written to this folder:

  C:\ProgramData\ForNAV\Report Service\Logs

Applying changes

  1. Edit Report Service.json with a text editor
  2. Save the file
  3. Open Services (services.msc)
  4. Locate ForNAV Report Service
  5. Right-click and select Restart

The service reads the configuration file on startup. The new settings take effect immediately after the restart completes.