Troubleshooting
Why historized variable tags store no real values
Short answer
A variable tag with Historize = TRUE stores nothing in the historian when its data type is numeric: the connector's variable-tag path collects only DIGITAL and STRING values. Move the real value onto a trend tag with Historize = TRUE, deploy the change, and accept that only the trend path backfills samples missed during a connector outage.
On this page
A variable tag with Historize = TRUE stores nothing when the tag's data type is numeric. For AVEVA Plant SCADA tag synchronization to AVEVA Historian, the connector's variable-tag path collects only DIGITAL and STRING values: an INT or REAL variable tag is accepted by the configuration and then stores nothing in the historian. The real value needs a trend tag with Historize = TRUE, and the trend path is also the only one of the two that backfills samples missed while the connector was offline. Work down the checks below: acquisition first, then the data type, then the fix.
Separate the acquisition fault from the collection fault #
Two faults hide behind empty history, and they need different fixes. A value that never reaches the tag is an acquisition fault: the controller, the I/O device, the driver or the register address. A tag that reads correctly but never reaches history is a collection fault: the tag class, the data type and the connector path. Repair acquisition before touching any historian setting, because no historian can store a sample the SCADA node never had.
Check it in this order:
- Force or wait for a controlled process change and read the variable itself in the running application, not just the screen object: a display can bind an expression or a differently named tag.
- If the variable does not change, stop and repair upstream first: verify the configured I/O device, its communication state and the register address the variable points at.
- If the variable changes while other historized tags keep storing values, the acquisition chain is healthy and the fault is collection. Move to the data-type check.
- If trend tags and digital or string variable tags store values at the same time, login, schema and the write path into the historian are all proven working. The fault is then specific to the numeric variable tags.
A connected status on the connector does not settle the question: the case where Plant SCADA Connector shows connected but historian tags are NULL is a separate fault with its own checks.
Why the data type decides whether anything is stored #
A variable tag is a label for the current value of an I/O device register at an address; Historize only marks the tag for collection. What the connector can carry then depends on the tag class and the data type. The documentation for Plant SCADA tag synchronization to AVEVA Historian lists DIGITAL and STRING as the supported variable-tag data types and directs everything else to trend tags. INT and REAL fall on the unsupported side of that line, so the flag yields no stored value and no failed write, because no write is attempted. That is why the configuration accepts, the column reads TRUE and the historian still shows nothing: an accepted configuration is not evidence of collection.
| Tag setup | Data type | Stored in the historian |
|---|---|---|
| Variable tag, Historize = TRUE | DIGITAL | Yes, on the variable-tag path |
| Variable tag, Historize = TRUE | STRING | Yes, on the variable-tag path |
| Variable tag, Historize = TRUE | INT or REAL | No, that path does not collect it |
| Trend tag, Historize = TRUE | numeric source variable | Yes, on the trend path, with backfill |
Read the supported-type list for the connector release installed on your site; wherever DIGITAL and STRING are the documented set, the remedy below is the same.
Move the real value onto a trend tag #
The fix for a real value is structural: collect it as a trend tag.
- Confirm the source variable follows the controller measurement, using the acquisition checks above.
- Create a trend tag whose source is that variable, and pick a collection period that suits the process; the worked example below uses 1 s.
- Set Historize = TRUE on the trend tag. The flag on the variable tag does not substitute for the trend path.
- Deploy the configuration through the normal deployment workflow of the installed release, and confirm the running application is the deployed one.
- Watch local trend samples accumulate first, then confirm the historian series receives new samples.
- Force one known value change and compare the variable value, the local trend sample and the historian value with their timestamps, allowing for the collection period: stored samples are periodic, not a mirror of display refresh.
Keep the variable tag in place. Screens, control logic and anything reading the live value keep using it; the trend tag only adds the history.
What a connector outage costs on each path #
The two paths differ most when the connector is down. Trend samples are retained, so the connector can backfill them after a reconnect; the variable-tag path reads live values only, retains nothing and has no backfill, so any value that changes during the outage is lost. Data that only surfaces late is a familiar historian pattern; why historian data goes missing and reappears the next day covers that delayed-visibility version of the problem.
Worked example, with example inputs: one REAL temperature collected as a trend tag at a 1 s collection period, over an 8 h shift, with the connector offline for 45 min.
- Shift length: 8 h × 3,600 s/h = 28,800 s, so the trend path offers up to 28,800 samples across the shift.
- Outage window: 45 min × 60 s/min = 2,700 s, which is 2,700 samples at the example period.
- Trend path: those samples are retained locally and backfilled once the connector reconnects, provided local trend retention still holds them.
- Variable-tag path: zero of them. The path reads live values only, so the outage window stays empty and cannot be reconstructed afterwards.
One path returns the entire outage window; the other returns none of it. For any measurement whose loss would matter, that difference alone settles the tag class, and it is why connector uptime becomes a data-integrity requirement wherever the variable-tag path is used.
The string-variable workaround and its limits #
STRING variable tags are collected, which permits an application-level workaround for a value that cannot be trended: convert the real value to text in the application and write it to a STRING variable tag served by an internal I/O device, and the historian receives samples on the supported path.
Know the cost before choosing it:
- The stored value is text, so averages, minimum and maximum values and any numeric math on the database side must parse the string first.
- Precision and format are fixed by the conversion code, not by the tag or the historian.
- A variable tag carries no timestamp field of its own: TIMESTAMP is not an available variable-tag data type in Plant SCADA, where it is a Cicode type, so sample times come from the collection side.
Prefer the trend tag for anything that will later be trended, aggregated or compared numerically; keep the string route for values that genuinely cannot be trended.
The decision for each case #
Every configuration with empty history resolves to one of four decisions:
- Digital state or text value to historize: keep it on the variable tag with Historize = TRUE. That path is documented and works as configured.
- INT or REAL measurement to historize: create the trend tag, set Historize = TRUE on it, deploy and verify end to end. The variable tag stays for live use only.
- Numeric value that cannot be trended: use the string variable on an internal I/O device, accepting text storage and parsing overhead.
- Any value that must survive a connector outage: collect it on the trend path, because the variable-tag path has no backfill.
Confirm the fix once with a known tag, a known value and a timestamp you can point to on both sides, and the fault is closed.
Questions asked
Why did my digital and string variable tags store values without any extra work?
DIGITAL and STRING are exactly the two types the connector's variable-tag path supports, so those tags were never affected by the limitation. The problem appears only on numeric types such as INT and REAL, which that path does not collect. If digital and string tags store correctly while numeric tags do not, that pattern is itself the confirmation of the data-type cause.
Do I still need the variable tag once the trend tag exists?
Yes. Screens, control logic and any code that reads the live value continue to use the variable tag, and it needs no change. The trend tag is an addition that references the same variable and carries the history. Leave Historize set on both if you like, but the trend tag is what actually stores a real value in the historian.
Is the missing history a database, permission or license problem?
No. Trend tags storing values through the same historian is a confirmed write: login, schema and storage all work on that backend. The numeric variable tags stop earlier, at the connector's supported-type filter, which is also why no error is raised against them. The connector never attempts a write for an unsupported type, so there is nothing for the database to reject.
How much history can I recover after the connector comes back online?
On the trend path, every sample the SCADA node retained during the outage is backfilled after reconnect, bounded by local trend retention: samples already aged out cannot be recovered. On the variable-tag path, nothing. That path reads live values only and keeps no history, so treat connector uptime as a hard requirement for any value collected that way.