Explainer
Why PI Server cannot receive Historian alarms and events
Short answer
The PI Data Archive holds timestamped values per tag, so the Historian publisher disables alarms and events for a PI Server destination; no controller or tag change enables it. Keep time-series replication on the native path and carry alarm occurrences through a PI interface or a checkpointed extraction.
On this page
- Why is the alarms and events selection disabled for my PI destination?
- What does a PI Server actually store?
- What must alarm reporting preserve for ISA-18.2 metrics?
- Which transport carries alarms and events to PI?
- How does a checkpointed extraction survive an outage?
- What about AVEVA Insight or CONNECT Data Service destinations?
- When is a time-series flag good enough for alarms?
- Questions asked
The selection is disabled because the PI System has no alarm and event store to receive those records: the PI Data Archive holds timestamped values per tag, so the Historian publisher disables alarms and events for a PI Server destination and replicates time-series natively. Treat the disabled selection as a data-model boundary, not a fault to troubleshoot. Keep the native publisher for process values, and carry alarm occurrences across the boundary on a PI interface or a checkpointed custom extraction. Below: the boundary itself, what each transport obliges you to own, the checkpoint arithmetic for a four-hour outage, and the decision between status flags and real alarm metrics.
Why is the alarms and events selection disabled for my PI destination? #
Because the destination cannot accept that record type: the PI System archives timestamped values, not alarm and event records, so the Historian publisher disables the selection for a PI Server destination, and no tag, driver or controller change on the plant side will enable it.
The configuration is common: System Platform with Historian at the plant tier, PI Server chosen for top-level reporting and analytics, and the native publisher expected to carry the histories upward. Commissioning then finds the alarms and events selection unavailable, and the instinct is to chase a broken alarm tag or a controller connection. Resist that instinct. The option is disabled by what the destination accepts, and from this point the two designs are separate: time-series replication continues on the native publisher, and alarm and event transport becomes its own project.
What does a PI Server actually store? #
Timestamped values, one stream per defined point: each archive record is a value, its timestamp and a quality for a tag, so a working tag replication proves value transport, never alarm record transport.
Identity in that archive comes from the tag name, not from the record. An alarm record is the opposite shape: a transition — activation, return or acknowledgment — carrying the alarm's identity, priority, message and source, plus the links that bind transitions into one occurrence. A point value has a slot for none of that. The storage engine behind the archive raises a different question — whether the PI Data Archive stores tag data in SQL Server — and its answer changes nothing here: the archive is built for values, and an alarm record is not a value.
A working value connection proves the value path and nothing else. Even on that path there is a genuine commissioning check in whether the publisher sends raw or scaled values to the PI server, and it is independent of the alarm question.
What must alarm reporting preserve for ISA-18.2 metrics? #
The full occurrence: activation, return to normal and acknowledgment as separate, ordered transitions with identity, priority, message and source time, because alarm rates and response times are computed from transitions, not from a sampled state flag.
ISA-18.2, published internationally as IEC 62682, treats an alarm as a defined event that is annunciated, answered and cleared, and judges an alarm system by occurrence counts, rates and response times computed from those transitions. That is exactly the information a flattened value loses.
| Reporting requirement | What the destination must retain | Consequence for the mapping |
|---|---|---|
| Live status of one alarm | Identity, current state, transition time | A state value can carry this alone |
| Occurrence counts and durations | Activation and return transitions of the same occurrence | Identity and ordering must survive; a sampled state cannot reconstruct them |
| Acknowledgment analysis | Acknowledgment transition tied to its occurrence | A return-to-normal value carries no acknowledgment information |
| Operator event review | Message, source, priority, occurrence time | Non-numeric context must survive the transport, not just the state |
Read the field list from your source schema rather than from a display message, and prove the mapping end to end with one complete occurrence — activation, return and acknowledgment where they apply — before pointing reports at it. Keep occurrence time distinct from extraction or receipt time in the mapping, so late delivery cannot move the apparent time of an alarm.
Which transport carries alarms and events to PI? #
A PI interface when one supports your source, otherwise a custom extraction pushed through the Historian and PI live-data path; both are approaches plants report running today, and both are yours to maintain, because neither is native replication of the alarm model.
| Transport | Select it when | You own |
|---|---|---|
| PI interface collection | A documented interface supports your alarm source and the fields you report | Source compatibility, collected fields, timestamp treatment, buffering and recovery behavior |
| Stored-procedure extraction through the live-data path | Records are reachable by query and need explicit transformation | Schedule, checkpoint, retries, duplicate control, destination mapping |
| PI AF table connection over the SQL alarm store | Records already sit in SQL Server and consumers are review displays | Join keys, refresh behavior, access control |
Prefer the interface when one covers your source: the buffering, recovery and field mapping it documents are maintenance you do not write yourself. Take the extraction path when the records need a transformation no interface performs, and accept that retries, duplicates and schema changes become your responsibility. When the source is an OPC alarms and events server, the PI Interface for OPC Alarms and Events is the collector built for exactly that source; for other sources, confirm interface support before committing. The third row avoids moving records at all: a documented pattern joins alarms and events from SQL Server to PI Vision through a PI AF table connection, leaving the store untouched. When both ends are PI systems the question changes shape entirely — moving PI historian data to another PI server without MQTT is a server-to-server transfer, not a record-model conversion.
How does a checkpointed extraction survive an outage? #
Advance the checkpoint only after confirmed delivery, and size the catch-up from the record rate: at 10 records per minute, a 4-hour outage queues 2,400 records, and a 500-record poll drains them in 5 polls, about 25 minutes.
A polling extraction has three obligations: never skip a record, never deliver one twice, never let transport move an alarm's time. Skipping and doubling are controlled by the checkpoint; time is controlled by the mapping.
Take an illustrative plant averaging 10 alarm and event records per minute, which is 10 × 1,440 min/day = 14,400 records per day; substitute a count from your own alarm store. The extraction polls every 5 minutes, so a steady-state poll delivers 10 records/min × 5 min = 50 records. Now the link to the tier-2 system drops for 4 hours: 4 h × 60 min/h × 10 records/min = 2,400 records accumulate. Each poll is capped at 500 delivered records, so draining the backlog takes 2,400 ÷ 500 = 4.8, rounded up to 5 polls, which at one poll per 5 minutes is 25 minutes after the link returns.
The two failure modes are exact opposites. Advance the checkpoint at extraction instead of at confirmed delivery, and every record lost during the outage disappears permanently — here, a full 4-hour block of alarm history. Retry without duplicate control, and those same 2,400 records can be counted twice in every rate and duration metric.
At 10 records per minute, bursts place several transitions inside the same second, so a timestamp-only checkpoint skips every record sharing a timestamp with the last delivered one. Combine the source timestamp with the store's unique record identifier in the checkpoint, and make destination writes idempotent on that identifier so a re-sent record updates rather than duplicates. Commit to four checks: checkpoint on confirmed delivery, unique-key tie-break, idempotent writes, and a daily reconciliation of source row counts against delivered row counts.
What about AVEVA Insight or CONNECT Data Service destinations? #
Reported behavior differs by destination: users describe alarms and events as selectable when the destination is AVEVA Insight, and disabled again for CONNECT Data Service, so treat destination support as a per-release fact you verify, not a property of your configuration.
The pattern to take away is that availability moves with the destination and the release. If alarm analytics is the reason the tier-2 system exists, a split architecture is legitimate: the native publisher keeps carrying time-series to PI, and alarm records go to the destination that accepts them natively. Keep exactly one system of record for alarms so no metric ever sums two sources, and confirm the current selection state against the release notes of the versions you run before designing around it.
When is a time-series flag good enough for alarms? #
For a live status tile only: one or two flag tags replicated on the native path can show that something is active, but occurrence counts, durations and acknowledgment delays cannot be reconstructed from a sampled state, so metrics need the record path.
The arithmetic that disqualifies sampling for metrics is short. An alarm active for 3 seconds that clears before the next 10-second sample of the state flag never appears at the destination at all, and even a captured transition carries nothing about acknowledgment, priority or message. Keep the flag tags out of the alarm calculations entirely, or one occurrence gets counted once as a record and again as a flag transition. Decision: status tile — flags on the native path; counts, durations, acknowledgment times and audits — the record transport.
Questions asked
Will a future release enable alarms and events for a PI Server destination?
Reported expectations sit with CONNECT data services eventually carrying alarm and event records, not with the PI Server destination. Treat that as an unverified roadmap expectation until it appears in release notes for a version you run. Both workarounds sit beside the native publisher, so adopting one now does not block a later native path.
How do we keep a custom extraction from breaking after a Historian upgrade?
Own a schema check and a count watchdog. Before upgrading, re-run the extraction query against the new version's alarm store and confirm every column it reads still exists. After upgrading, compare delivered rows per day against source rows per day and alert on any deviation. Silent partial extraction is the common failure mode, and a daily row-count check catches it the same day it starts.
Which timestamp should survive when records arrive late?
The source occurrence time, always. Carry the delivery time as a separate field for transport diagnostics only. In the worked example, the 2,400 records held by a 4-hour outage arrive about 25 minutes after the link returns, yet every one must still report at its original occurrence time, or alarm rates and response times shift with network weather instead of plant behavior.
Can we show alarms in PI Vision without moving them into the archive?
Yes, when the records already sit in SQL Server: a documented pattern joins them to PI Vision through a PI AF table connection with SQL Table+, leaving the alarm store untouched. It suits operator review screens and event lookup. Use it for reading, not for computing alarm metrics, and confirm the display's refresh behavior meets what the review needs.