IMD SolutionComputing LibraryShop main store

Troubleshooting

Why Citect alarms do not appear in AVEVA Historian

Edge computing and IIoT Published 7 min read

Short answer

Alarms only leave Citect for AVEVA Historian when the alarm's own Historian setting is TRUE, and they are read back from the v_AlarmEventHistory view, not the Historian Client Query tool. Advanced alarms exporting a single record with the wrong description are a known defect, L00159914, addressed by hotfix IMS 701787.

On this page
  1. Why does the Query tool show process records but no alarms?
  2. How do you read the exported alarms directly?
  3. Which alarms does Citect actually send to Historian?
  4. How do you prove the export works after setting the flag?
  5. Why are operator actions missing from the history?
  6. Why do advanced alarms export only one record?
  7. When do you call support about the hotfix?
  8. Which fix does your symptom point to?
  9. Questions asked

Your Citect alarms are probably not lost — they are either not flagged to leave Citect, or they are landing where the Historian Client Query tool does not look. In the stack described here, Citect SCADA 2018 R2 with the Citect SCADA Connector and Wonderware Historian 2017 Update 3, the connector forwards process data (analog, discrete and string values) and alarm and event data on separate paths, so visible process records prove only the connection. Three things decide whether an alarm appears in history: the per-alarm Historian setting, the database view you query, and — for advanced alarms — a known defect with a hotfix. Work them in that order.

Why does the Query tool show process records but no alarms? #

Because the Alarm history selection in the Historian Client Query tool does not read the Citect alarm export; connector alarms land in the v_AlarmEventHistory view of the Historian database, which you query yourself.

The connector forwards both streams from Citect SCADA to Historian — the process values and the alarm and event data — but a record in one stream says nothing about the other. Seeing analog values in Query results proves the connection is up and the variable path works; it does not prove that a single alarm was exported.

What you are looking at Where it lives What seeing it proves
Active alarms and alarm summary Citect alarm pages The runtime alarm state on the SCADA node
Exported alarm transitions v_AlarmEventHistory view in the Historian database A transition crossed the connector into history
Process records Historian Client Query results The connection and the variable path work
Operator actions The Citect logging destinations you configured The logging subsystem recorded the action

A connector that shows connected while process tags read NULL is a different fault on the variable path — see Plant SCADA Connector connected but historian tags are NULL. If your design instead writes alarms to a SQL Server database through Citect's own logging, that write path fails differently: start with why Citect alarm logging never reaches SQL Server.

How do you read the exported alarms directly? #

Query the v_AlarmEventHistory view in the Historian database with a read-only account, filtering on the alarm's tag name and a narrow window around one controlled test transition.

The view exists to return the events and alarms of a selected time range, so it is the right place to prove what the connector delivered. Work it in this order:

  1. Connect to the Historian database that exposes the view with a read-only account, and list the view's columns before filtering. Documented columns include TagName, Area, Type and AlarmState.
  2. Query the view for the test alarm's tag. MyTag1 below is an illustrative tag name; v_AlarmEventHistory, TagName, Area and Type are the documented names:
SELECT TagName, Area, Type
FROM v_AlarmEventHistory
WHERE TagName = 'MyTag1'
  1. Extend the filter with AlarmState and the view's time columns as your documentation lists them, and keep the window to a few minutes around the test so a stray record cannot look like a pass.
  2. Read the result honestly. A login or permission error is a database access problem; an empty result from a query that runs is an export problem. Check the time basis of the display against the database before calling a good row a mismatch.

Confirm the connector destination is the same Historian installation you are querying; for server placement, see where to install Historian alongside Citect SCADA. If the connector itself shows disconnected, fix that before testing alarms — why the Citect connector to Historian shows disconnected covers that fault.

Which alarms does Citect actually send to Historian? #

Only the alarms whose own configuration carries Historian = TRUE — the flag is per alarm, so a working process collection says nothing about how many alarms are enabled for export.

There is no global export that follows the variable collection. Three settings decide what leaves Citect:

  • Historian = TRUE on the individual alarm record in the Citect project, which selects that one alarm for historization through the connector.
  • The alarm's identity and description as configured, which is the reference you match against the rows in the view.
  • The connector's destination, which determines which Historian installation receives the data.

Set the flag on your test alarm, apply the configuration through the documented deployment procedure, and confirm the running project carries the change before you generate any transition.

How do you prove the export works after setting the flag? #

Trip one flagged alarm through a full on/off cycle after the configuration is applied, and expect two records in v_AlarmEventHistory — records from before the change prove nothing about the current setting.

  1. Pick one conventional alarm and record its tag, configured description, states and the test time.
  2. Apply the configuration and confirm the running project has the flag.
  3. Generate the transition with an approved test method — never by forcing a real process condition or bypassing a protection.
  4. Query the view for that tag over a window of a few minutes.
  5. Pass when both the in-alarm record and the return-to-normal record appear with the configured description.

Worked example, with illustrative counts rather than measured data: a project has 12 alarms and 5 carry Historian = TRUE. In a 10:00–10:05 window you trip and clear each flagged alarm once, so 5 alarms × 2 transitions = 10 expected records, and the 12 − 5 = 7 unflagged alarms correctly contribute 0. A query returning 10 matching rows proves the basic path for that connector and Historian. A return of 9, where the missing pair belongs to an advanced alarm that shows a single record with the wrong description, is the defect case below — not a configuration fault.

Why are operator actions missing from the history? #

Because log events — setpoint changes, mode selections and similar operator actions — are not historized through this export path unless the project defines explicit alarms for those actions.

An operator action is not an abnormal condition that needs a response; it belongs to the Citect logging subsystem and its configured destinations. You can make an action cross to Historian by configuring it as a real alarm, but that alarm then behaves like any other: it appears on the alarm pages and in the summary, and it needs the Historian flag like any other. Treat that as an alarm-philosophy change decided by design, not a retrofit for audit coverage — keep routine audit records in the log system the project already runs.

Why do advanced alarms export only one record? #

That is the symptom of a reported defect in the Citect-to-Historian alarm path, tracked as L00159914: an advanced alarm yields only its initial record, and the description on that record is wrong.

The behavior was reported on Citect SCADA 2018 R2 with the Citect SCADA Connector and Wonderware Historian 2017 Update 3; read your exact connector build from the software inventory before comparing. One row never validates an advanced alarm: exercise every configured state change and compare each expected transition and its description against the view. Conventional alarms exporting completely on the same stack is what separates this defect from your configuration — if simple alarms pass the two-record test while advanced alarms do not, your flags and destination are right.

When do you call support about the hotfix? #

Call when the alarm's flag is TRUE, your query targets v_AlarmEventHistory on the connector's actual destination, and a fresh transition still fails — then ask for applicability of hotfix IMS 701787 against defect L00159914.

Have this ready before you open the case:

  • Exact versions: the Citect SCADA build (2018 R2 in the stack above), the connector build from the software inventory, and the Historian version (2017 Update 3 here).
  • The test alarm's configuration: tag, description, conventional or advanced, and its Historian setting.
  • Test timestamps, what the local alarm page did, the query text and its result set.
  • Connector diagnostics from the test window.

Reference L00159914 in your own case so support links it to the same defect. Apply the hotfix in a planned window with a configuration backup, follow the supplied restart and rollback steps, and re-run the transition test above before the system goes back to unattended operation.

Which fix does your symptom point to? #

Match the symptom to the decision: no records anywhere means flag or query targeting; single wrong records on advanced alarms means the hotfix; missing operator actions means a design choice, not a fault.

  • Query tool empty, view has the rows: nothing is broken — read alarms from v_AlarmEventHistory and move on.
  • Flagged conventional alarm passes the two-record cycle test: the path is proven; roll the Historian = TRUE flag out alarm by alarm and retest one of each type.
  • Advanced alarm gives one record with the wrong description: stop accepting it as history, escalate under L00159914 and request hotfix IMS 701787.
  • Operator setpoint changes and mode selections absent: correct behavior — keep them in the Citect log destination unless the project deliberately turns them into alarms.

Questions asked

Does the Historian Client Query tool ever show Citect alarm records?

Its Alarm history selection reads alarms tracked through Historian's own alarm recording, which the Events view over the History block also serves. Connector-exported Citect transitions are read from v_AlarmEventHistory instead, so an empty Alarm history result alongside rows in the view is a query destination difference, not a fault.

Where do setpoint changes and mode selections go if not to Historian?

They stay in the Citect logging subsystem and its configured destinations, such as the log files and summary displays, independent of the connector. Only an explicit configured alarm crosses to Historian, and that alarm then appears on the alarm pages too, so reserve it for conditions that genuinely need an operator response.

Does one row in v_AlarmEventHistory prove an advanced alarm works?

No. A single initial record with an incorrect description is the reported defect symptom for advanced alarms under L00159914. Accept an advanced alarm only after exercising every configured state change and matching each expected transition and description in the view; conventional alarms can be accepted on the two-record cycle test.

How do you obtain hotfix IMS 701787?

Through AVEVA support, by raising a case that references defect L00159914 and lists your exact Citect SCADA build, connector build and Historian version, plus the test evidence. Support confirms applicability and supplies the installation and rollback steps; apply in a planned window and re-run the transition test afterwards.

Keep reading

  • Explainer

    AVEVA Historian Connector redundancy options explained

    AVEVA Historian Connector v3.1 does not manage failover between redundant Historians. For collection redundancy, run two Connectors, each writing to its own Historian, with configurations you keep identical by procedure; use Historian partner and client failover only to cover temporary access loss.

    Edge computing and IIoT

  • Troubleshooting

    Plant SCADA Connector shows connected but historian tags are NULL

    Connected status on both Connector ends proves the connections, not the reads: with Citect error 29, Bad User Parameters, the driver subsystem rejects the read before any value exists to store. Check the I/O Device special options and the variable tag data types first and leave the historian destination alone.

    Edge computing and IIoT

  • Troubleshooting

    Why Citect alarm logging never reaches SQL Server

    Alarms that populate the runtime page but never reach the SQL table mean the display path works and the logging path does not. Test three links in order: the alarm category's Log Device binding, the ODBC DSN and device connection including DSN bitness, then the INSERT format string. Read the syslog first and trace with SQL Profiler second — no traced statement puts the fault on the SCADA side, a failing statement puts it in the table or format.

    Edge computing and IIoT