Troubleshooting
Why an ASP Historian to PI Web API connection test fails
Short answer
A failed historian to PI Web API connection test is almost never a network fault. Replication sends OMF requests to the PI Web API, so the test passes only when OMF services are enabled there and the configured authentication method, Basic or Kerberos, is allowed. Send a GET from the replication host, read the SMC and PI Web API logs, then enable OMF and the authentication method before retesting.
On this page
- What the connection test actually exercises
- Why ping passing tells you nothing
- Working the case: ping passes on every VM and the test still fails
- Read the SMC logs on the historian side
- Raise PI Web API logging and read Event Viewer
- Enable OMF and the authentication method, then retest
- The decision for each result
- Questions asked
A failed historian to PI Web API connection test is, in most cases, not a network fault. Replication from AVEVA Historian to a PI Server is handled by an OMF producer, so the test only passes when the PI Web API endpoint has OMF services enabled and allows the authentication method the replication configuration uses — Basic or Kerberos. Ping and port checks pass on networks where the test still fails, because those checks never touch the OMF endpoint. Work through this in order: confirm the version floor, send a real request from the replication host, read the SMC logs on the historian side, raise PI Web API logging, and enable OMF and the authentication method before retesting.
What the connection test actually exercises #
Replication from AVEVA Historian to a PI Server as a next-tier server runs through an OMF producer: the service composes Open Message Format requests and sends them over HTTPS to the PI Web API. That gives the test three prerequisites on the PI Web API side, and all three must hold at once:
- a PI Web API version at or above the replication floor, with OMF services enabled
- the authentication method the replication configuration uses — Basic or Kerberos — enabled in the PI Web API
- network reachability from the host running the replication producer to the PI Web API endpoint
The version floor is fixed by the vendor: replication needs PI Web API 2021 SP2 (1.16) or later with OMF services enabled, as laid out in Replicate to PI needs PI Web API 1.16 or later. If the target server sits below that floor, fix the version before anything else, because every later check assumes OMF exists on the endpoint.
Why ping passing tells you nothing #
In the reported case the historian, PI Vision, PI DA and PI AF each ran on its own VM, ping worked between all of them, and PI Vision was connected to the PI Server — yet the historian to Web API test still failed. That combination is consistent, not contradictory. Ping proves ICMP reachability between VMs. PI Vision connecting proves its own endpoint works. Neither one sends a single OMF request to the PI Web API, so neither can vouch for the OMF endpoint or the authentication methods it allows. The same trap appears elsewhere on the plant floor, for example in why a gRPC ingestion failure survives a passing TCP port test: a transport-layer pass says nothing about an application-level endpoint.
Working the case: ping passes on every VM and the test still fails #
Inputs, with example values in place of the site-specific ones:
- replication producer host: 10.1.4.10 (example address on the historian VM)
- PI Web API base address:
https://10.1.2.30/piwebapi(example address on the PI Web API VM) - authentication configured in the replication settings: Basic
- authentication set PI Web API supports per its documentation: Basic and Kerberos
The rule in words: an OMF request succeeds only when the endpoint exists with OMF enabled and the configured authentication method falls inside the set PI Web API allows, so a GET issued from the producer's own host reproduces the exact conditions of the connection test.
The checks, in order:
- From 10.1.4.10, send a GET to
https://10.1.2.30/piwebapiwith the same credentials and the same certificate trust the replication configuration stores. - Read the HTTP status: 200 means the endpoint and authentication both work; 401 means the PI Web API rejected the authentication; 404 on the OMF path means OMF services are not enabled.
- Record the exact time of the test — 14:32:07 in this example — so both log sets can be correlated to that stamp.
Result: the GET returns 401. The configured method is Basic, and the PI Web API in this example allows only Kerberos, so the two sets have no overlap and every request is rejected before it reaches OMF.
Decision: enable Basic in the PI Web API authentication settings, or switch the replication configuration to Kerberos, then rerun the test. The threshold to apply at this step: a 200 from this GET means the HTTP layer is clean and the fault lies below it; any other status names the failing layer directly.
Read the SMC logs on the historian side #
On the historian host, open the System Management Console logs and filter for the components aahReplication and AVEVA.Data.System.Host, which carry the replication producer's messages. Because the error is thrown at the configuration tool, it may be logged under different components; if the filter returns nothing, review all log entries around the exact test timestamp instead of widening the component list guess by guess.
Raise PI Web API logging and read Event Viewer #
Debug logging on the PI Web API side is not always enabled by default. If its logs show nothing at the test time, increase the logging level on the PI Web API, rerun the connection test, and review the output in Windows Event Viewer. Return the level to normal after the diagnosis: verbose logging on a busy endpoint writes an entry for every client, and that volume buries the entries you actually need.
Enable OMF and the authentication method, then retest #
Enabling OMF and permitting the authentication method are PI Web API configuration tasks, done in the PI Web API administration on the target server — not settings in the replication configuration on the historian side. PI Web API OMF supports Basic and Kerberos, and OMF authenticates and impersonates Windows users, so the account stored in the replication configuration must be a live Windows account on the PI Web API side. Use a dedicated service account rather than a personal login, so a password change on one person's account cannot silently break replication. After enabling, rerun the historian connection test, and treat a pass as the start of verification, not the end: confirm a known tag and value arrive on the PI Server with a current timestamp before declaring the replication path healthy.
The decision for each result #
- Ping fails from the replication host: fix reachability or a firewall rule first — the only case where ping is the right tool.
- GET returns 401: authentication mismatch. Enable the configured method in the PI Web API, or align the replication configuration with the set the PI Web API allows.
- GET returns 404 on the OMF path: OMF services are not enabled. Enable them in the PI Web API and retest.
- GET returns 200 but the connection test still fails: correlate the SMC components and the PI Web API debug output at the test timestamp. If that combination still does not name a cause, open a ticket with the vendor's technical support and attach the REST response, the OMF and authentication configuration, and both log extracts — that collection lets support narrow the root cause without extra round trips.
Questions asked
Does a passing ping prove the historian to PI Web API replication path is healthy?
No. Ping tests ICMP reachability only. Replication sends OMF requests over HTTPS to the PI Web API with Basic or Kerberos authentication, so a network can pass every ping and still reject the OMF endpoint. Send a GET to the PI Web API top-level endpoint from the replication host, using the credentials and certificate trust the replication configuration stores; that response names the failing layer.
Which authentication methods can historian replication to PI use?
Two: Basic and Kerberos. Whichever the replication configuration uses must be enabled in the PI Web API, because OMF authenticates and impersonates Windows users. For Kerberos, the PI Web API service account needs delegation rights in Active Directory. For Basic, the stored Windows credentials must match a live account on the PI Web API host.
Which log components record the failed historian connection test?
On the historian side, filter the SMC logs for aahReplication and AVEVA.Data.System.Host. If that filter returns nothing, review all entries stamped at the exact test time, because the error is thrown at the configuration tool and can land under other components. On the PI Web API side, raise the logging level first, rerun the test, and read the output in Windows Event Viewer.
Can I leave PI Web API debug logging enabled all the time?
Better not. Raise the logging level while diagnosing, capture one rerun of the connection test, then return it to its normal level. Verbose PI Web API logging writes to Windows Event Viewer for every client on a busy endpoint, and the volume makes real faults harder to find.