Troubleshooting
When PI Vision connects to only one PI Data Archive
Short answer
When PI Vision reaches the production PI Data Archive but fails on the development archive, trace the failing request before touching Kerberos: confirm the w3wp connection in the archive's message logs, verify the pool identity, then check the Windows network profile. In the reported case a domain connection reclassified as Private broke the path; restoring the domain classification fixed it.
On this page
- What the two events identify
- The order to work the fault
- Does the development archive see the request
- Which account runs the connection
- Test from the PI Vision server itself
- Tracing the split: PI Vision 2017 R2 against two PI Data Archive 2017 R2 servers
- Check the Windows network profile
- Why Kerberos was the last thing to change
- Questions asked
PI Vision that reaches the production PI Data Archive but fails on the development archive has a fault on the failing destination's path, not in the PI Vision service. Work the request in order: confirm which archive the failed request names, check the development archive's message logs for a w3wp connection, verify the application-pool identity, test from the PI Vision server with PI System Explorer, then inspect the Windows network profile. In the reported case, Network Location Awareness had reclassified a domain connection as Private, and restoring the domain classification restored connectivity to both archives. Kerberos delegation was correct the whole time — one working archive proves the delegated path, so it is the last thing to change.
What the two events identify #
Event 356, "Unable to connect to PI Server", logged under OSIsoft-PIDataServices/Admin, names the archive the connection failed against — here the development PI Data Archive 2017 R2 host — and gives you the correlation point for every later check. Event 382, logged under OSIsoft-PISymbols/Admin, reports DBEntityValidationException; its text points at the EntityValidationErrors property for detail and little else. The second event is generic: it does not distinguish a network, authentication or tag-binding cause, and it is not evidence that the PI Vision database needs repair.
The third observation does the real work. Production still answers, in the same session, through the same service.
| Observation | Where it appears | What it establishes |
|---|---|---|
| Event 356, Unable to connect to PI Server, naming the development host | OSIsoft-PIDataServices/Admin | The failing archive connection, with a time to correlate |
| Event 382, DBEntityValidationException | OSIsoft-PISymbols/Admin | A generic validation exception riding along; not a cause by itself |
| Production archive answers display requests | PI Vision client session | Service, identity and delegated path work for at least one destination |
A server-level connection failure is not a tag problem, and it is not the case where PI shows live values but no trend history — that one points inside the archive's data path, not at the connection.
The order to work the fault #
- Record the failing host name from Event 356 and the time of the failed display request, and confirm a comparable request to production succeeds in the same session.
- Open the development archive's message logs and look for connection attempts from the PI Vision server at that time, including any recorded against the w3wp.exe worker process.
- Confirm the PI Vision application-pool identity in IIS, then the user name shown for w3wp.exe in Task Manager on the PI Vision server.
- Confirm that identity has a mapping and access on the development archive itself; production permissions do not carry over.
- Connect to the development archive with PI System Explorer from the PI Vision server under a known account, with production as the control.
- Inspect the network profile of the active connection on the PI Vision host and the development archive host before changing any security setting.
Does the development archive see the request #
IIS runs PI Vision inside an application pool whose worker process is w3wp.exe, and the archive's message logs record what that process presented. Reproduce the failure once, note the time, then read the development PI Data Archive message logs for matching entries.
Two outcomes split the search:
- A connection attempt from the PI Vision server or w3wp appears and is rejected: the request arrives, so work identity mappings, trusts and permissions on that archive.
- No matching entry appears: the request never reached the archive, so work destination resolution, routing, filtering and the firewall profile on either host. An empty log alone is not proof of a firewall block; check the server's connection diagnostics and network logs before assigning that cause.
Run the same lookup on the production archive to see what a healthy entry looks like.
Which account runs the connection #
Three identities are separate checks: the account configured in the application pool (IIS on the PI Vision server), the account actually running w3wp.exe (Task Manager on the PI Vision server), and the identity the development archive accepts or rejects (archive connection diagnostics). With delegation in place, the identity presented to the archive can also differ from the pool account — the delegated user's credentials rather than the service account.
The reported installation used one domain account for communication with both archives. That makes the account a shared component, proven by the working production path, and it does not make the two archives' mappings or network policies identical: verify authorization on the failing destination, not by inference from production.
A temporary trust between the PI Vision server and the development archive can isolate an account fault; it is a diagnostic, not a fix.
Test from the PI Vision server itself #
PI System Explorer launched on the web server exercises the same network path and host firewall policy the PI Vision request uses; a test from an engineer's workstation does not. Note the account running it and the development archive selected, connect, and read data that account is authorized to see. Repeat against production as the control.
- Both applications fail against development: the shared destination and network path carry the fault.
- PI System Explorer connects while PI Vision fails: compare process identity, delegated identity, application configuration and authorization — an interactive login is not an exact substitute for an IIS request.
Tracing the split: PI Vision 2017 R2 against two PI Data Archive 2017 R2 servers #
The inputs, from the reported installation: PI Vision 2017 R2 on Windows Server 2012 R2 with SQL Server 2014 Standard Edition and Asset Framework 2017 R2; two PI Data Archive 2017 R2 servers, production and development, on the same OS and SQL versions; Kerberos delegation enabled; one domain account configured for communication with both archives. The observations: production answers, development fails with Event 356 under OSIsoft-PIDataServices/Admin, and Event 382 under OSIsoft-PISymbols/Admin appears alongside.
The rule in words: when several archives share one service, one account and one delegation configuration, every shared component is proven by whichever archive still answers, so the fault must sit in the set of things that differ per destination.
The arithmetic: 2 archives configured - 1 still reachable = 1 failing path. The failing path's exclusive set is destination resolution, routing, the firewall profile on either host, and the archive-side mapping for that host. The shared set — service, pool identity, domain account, delegation — is excluded as a first suspect because the reachable archive exercises it end to end.
The result: the difference sat on the Windows side. Network Location Awareness had reclassified a domain connection as Private on the affected host, and the profile change cut the path to the development archive while production stayed reachable. Restoring the domain classification restored PI Vision connectivity to both archives.
The decision: with one archive of a pair still answering, run the destination-specific checks — message logs, archive-side mapping, network profile — before touching delegation. Only when every configured archive fails together do the service, the account and Kerberos move to the top of the list.
Check the Windows network profile #
Network Location Awareness classifies each active connection, and the classification selects which Windows firewall profile and rule set applies. Domain membership and domain authentication of a connection are different conditions: a domain-joined server shows a non-domain profile when domain detection fails, which is how a connection reverts to Private.
- On the PI Vision host and the development archive host, inspect the active connection's classification.
- Compare it with the intended domain environment; Private on a domain member means detection failed.
- Check domain DNS configuration and domain-controller reachability, and correct the detection fault so the connection returns to the domain classification.
- Re-run the failed display request and confirm Event 356 no longer appears.
Why Kerberos was the last thing to change #
A delegation fault breaks the delegated hop, and both archives depended on the same delegated hop through the same domain account — a delegation fault would have taken production down with it. One archive answering is the evidence that delegation works. Leave the configuration alone until the failing destination's own path is clean; when a delegation fault genuinely is the suspect, resolving PI Web API Kerberos delegation against AF alias conflicts shows what that evidence looks like.
Questions asked
Does Event 382 DBEntityValidationException mean the PI Vision database needs repair?
No. Event 382 under OSIsoft-PISymbols/Admin is a generic entity-validation exception that appears alongside the connection failure; it does not localize the cause, and it is not evidence that the PI Vision database needs repair. The actionable record is Event 356 under OSIsoft-PIDataServices/Admin, which names the archive the connection failed against. Troubleshoot against that archive.
Why does one archive still work if this were a Kerberos problem?
Both archives were reached through the same domain account and the same delegation configuration, so a delegation fault would normally break both paths at once. One archive answering proves the service, the account and the delegated hop work end to end. That confines the fault to what differs per destination: DNS, routing, the firewall profile and the archive-side mapping on the failing host.
Is the temporary PI trust test a recommended fix?
No. A trust between the PI Vision server and the archive changes the authentication path, so a successful test can conceal the original cause rather than explain it. Treat it as a short isolation test only, and remove it before the configuration is accepted, keeping the intended account-based access design in place.
Which server's network profile should be checked?
Both the PI Vision host and the failing archive host. Network Location Awareness classifies each connection on each machine, and either one can fall to Private when domain detection fails. The classification selects the firewall profile, so the fault can sit on either end of the path even though only one destination stops answering.
How do you confirm the fix held?
Re-run the display request that failed, confirm the development archive's message logs now show the w3wp.exe connection, and confirm Event 356 has stopped. Then re-check the classification after a reboot or a network interruption, because the domain-detection fault that reclassified the connection once can do it again.