Vision Report+ / Administration Guide
Service operation and maintenance
This chapter covers logs, the license, missed trigger recovery, cleanup, performance tuning and high availability of the Vision Report+ service.
Overview
This chapter covers logs, the license, missed trigger recovery, cleanup, performance tuning and high availability of the Vision Report+ service.
Logs and debug logging
The service writes its log to C:\ProgramData\Software Athlete\Vision Report+\Logs\VisionReport.Service-<date>.log. The log rolls daily and at 10 MB and keeps up to 14 files for at most 14 days. Errors are also written to the Windows Application event log with the source Vision Report+. The Configuration Utility logs to VisionReport.ConfigurationUtility-<date>.log in the same folder. See File locations.
The default log level is Information. To get more detail, a PI Vision administrator turns on Settings > General > Debug Logging in the Reports pane; every service node switches to debug logging within one minute, without a restart. Turn it off again after the analysis.

Note: Until the service has loaded its AF configuration, it uses Serilog:MinimumLevel from C:\ProgramData\Software Athlete\Vision Report+\appsettings.json, so AF connection problems at startup can still be logged in detail.
Display hosts and certificates
The service opens displays with its own credentials, so it opens only hosts you allow: the PI Vision Host and, in Bearer mode, the host of the token endpoint. A report page or redirect that leads anywhere else fails with an error that names the host, and nothing is requested from that host when the address is in the report. Integrated Windows sign-in and Kerberos delegation go only to these hosts too.
To allow another host, for example the fully qualified name of the PI Vision server or a second PI Vision server, add it in C:\ProgramData\Software Athlete\Vision Report+\appsettings.json on every service node:
"Service": {
"AllowedDisplayHosts": [ "pivision2.contoso.com" ]
}
The service reads the change without a restart and uses it for new browser sessions; a running Chromium is replaced once no render uses it. If your sign-in page is on another host, for example a federated identity provider, add that host as well.
Service:AllowUntrustedCertificates decides what happens when this node does not trust the PI Vision certificate. A new installation has false, so the render fails with a certificate error. An upgraded installation has no such setting and keeps accepting the certificate. To check certificates after an upgrade, trust the certificate authority on the node, use the host name the certificate is issued for, and add "AllowUntrustedCertificates": false.
The setting covers only the rendering browser. The service's PI Web API connection does not validate certificates yet.
License
The service reads license.dat from C:\ProgramData\Software Athlete\Vision Report+ (or the path in Service:LicenseFilePath in appsettings.json) and checks it every hour. The license state is shown on the System Status page.
- If the file cannot be read, the service keeps using the last valid license for a grace period of 24 hours and reports the remaining time.
- Expiry, a PI Vision host name that does not match the license, or invalid license content are reported immediately.
- An invalid license does not stop the service. Report runs and prints are closed with the license message, so users see why no output was produced.
To renew a license, replace license.dat. The service reads it at the next hourly check; restart the service to apply it at once.
Missed trigger recovery after restart
By default, scheduled, event-frame and condition triggers that fall into a period when the service was stopped are not run afterwards. (A failover is different: the new leader always continues at the old leader's last heartbeat, see High availability.) To recover them, set these AF configuration attributes on the Configuration element in PI System Explorer (they are not shown in the Configuration Utility or the Settings):
| Attribute | Default | Meaning |
|---|---|---|
RecoverMissedTriggerWindowsAfterRestart | False | True runs triggers missed while the service was stopped. |
MaxTriggerRecoveryLookbackMinutes | 60 | Maximum time window, in minutes, that is recovered after a restart or caught up after a failover. |
The service keeps its trigger positions in trigger-cursors.json in the data folder; the upgrade keeps this file.
Condition triggers
Report authors can start reports when PI data meets a condition (Condition trigger, see the User Guide). The leader node checks these triggers itself:
- The service account needs read access (Read and ReadData) to the AF attributes and PI points that the conditions use. An input it cannot read stops that trigger: the log and the System Status error log name it (Condition input not found).
- The service reads the recorded values of each condition trigger at most once a minute, about one minute behind real time, with one PI Web API request per input (PI Web API divides its MaxReturnedItemsPerCall limit between the streams of one request). For Condition period ends it reads about the last 15 minutes plus the trigger's times, and further back (up to 24 hours plus the trigger's times) only while the condition was already met at the start of that range. Triggers whose condition stays met for hours therefore read more data. The limits are service defaults (
Service:ConditionSettleSeconds,Service:ConditionMaxPeriodHours,Service:ConditionMaxValuesPerInput, see Service defaults). - The service does not check whether the report author may read the inputs. An author with Create and edit reports permission can therefore put the value of a PI point they cannot read into a mail with
%TriggerValue%. Where that matters, give the service account read access only to the data reports may use. - For A new value is recorded the service reads the recorded values of the input by time stamp, about one minute behind real time (longer with the trigger's Wait for late values, which moves its scan back by that time). Values that arrive later with an earlier time stamp are not seen. For report triggers written by operators or other systems, create a dedicated PI point with compression off (compressing = 0), and give the writers Write Data on it and the service account Read Data.
- Condition runs are named
ReportExecution~<time>~Condition~<label>, the time in the report time zone. The daily limit of a trigger counts the runs with its label in AF, so all nodes count the same. - The Reports pane searches inputs with the author's PI Web API rights (
attributes/searchin one AF database,dataservers/{id}/pointsby name) and reads their current values.
Cleanup and retention
The leader node deletes old data every 10 minutes:
- Report executions are deleted only when the report's Auto Delete setting is on, after the configured period.
- Prints from the Print pane and the Vision Report Print symbol are deleted after 7 days.
- A print request that PI Vision never completed is closed after 15 minutes with Manual print request was not completed by PI Vision. Please try again.
Index attributes for performance (optional)
To speed up loading the list of prints, index the User attribute of manual executions.

- Open the Vision Report+ AF database in PI System Explorer.
- Go to Library > Templates > Event Frame Templates > ManualExecution > Attribute Templates.
- Select the User attribute and set the Indexed property.
- Save and check in the changes.
The small i icon in front of the attribute name indicates that indexing was successful.

High availability
For several PI Vision servers behind a network load balancer, Vision Report+ supports an active/passive cluster. Automated reports and prints continue when a server is maintained, rebooted or fails.
- Leader: one node claims the leader role. Only the leader creates and processes executions and prints, sends mail and Teams messages, and runs the cleanup.
- Followers: all other nodes stand by and process nothing, so no duplicate files or emails are produced.
- Election: a node lists itself as
ActiveNodeand becomes leader only when the next heartbeat cycle, one minute later, still lists it. A started service therefore begins processing about one minute after it starts. - Failover: the leader writes a heartbeat every minute. When the heartbeat is older than 3 minutes, a follower claims the role and leads after the confirming cycle, so a takeover takes about 4 to 5 minutes.
- Stepping down: a leader stops at once when another node is listed or when it cannot read or write the heartbeat, and by itself when it has not written a heartbeat for 150 seconds.
- No replay: the new leader creates scheduled and event-frame runs from the old leader's last heartbeat on, at most
MaxTriggerRecoveryLookbackMinutesback. Runs that already exist are not created again. - Claimed runs: a run the failed leader had started is picked up again when its 30-minute processing lease expires. Mail, Teams messages and prints go out only while the node still holds the run's lease; otherwise the delivery is skipped and recorded as an error on that node.
High availability has no separate switch and does not need system telemetry: it is active as soon as more than one node runs against the same AF database.
- Install Vision Report+ on every PI Vision server in the load-balanced environment and run the Configuration Utility on each (same AF database and PI Vision host).
- Optionally, provision telemetry on the System Telemetry page of one server (see System telemetry).
- Make sure the service is running on all nodes.
Important: Upgrade all nodes together. Earlier versions elect the leader differently, and without telemetry they assume they are the leader, which produces duplicate executions.
Important: Keep the clocks of all nodes synchronized (Windows Time service or NTP). Followers compare the leader's heartbeat with their own clock, so a node whose clock is more than about a minute off can take over from a healthy leader.
Limitation: If the leader's heartbeat cycle is delayed (for example a paused virtual machine, or clocks that differ) while a follower takes over, both nodes can act as leader for a few seconds until the old leader's next cycle. A run that falls into this window can be created or delivered twice.
The System Status page shows the active node: for PI Vision administrators as Leader in the Service nodes list, for other users as From. If you reboot that server, another node becomes the leader within a few minutes.

