# OPC UA Data Quality and Timestamps: Avoiding Stale-Value Decisions

> A process value is useful only when the receiver can tell whether it is valid and current enough for its purpose.

- Canonical URL: https://wiki.aspotomasyon.com/article/opc-ua-data-quality-timestamps
- Publisher: ASP OTOMASYON A.Ş. (ASP OTOMASYON Wiki)
- Category: OPC Solutions
- Published: 2026-09-13 · Updated: 2026-09-13
- Reading time: 2 min · Language: English

A process value is useful only when the receiver can tell whether it is valid and current enough for its purpose. In OPC UA, keep the value, StatusCode, and timestamps together through the gateway, historian, dashboard, and integration layer. A number without its quality context can look plausible after the data source has failed.

![OPC UA Data Quality and Timestamps: Avoiding Stale-Value Decisions — Observe → Preserve → Evaluate → Present.](https://wiki.aspotomasyon.com/assets/diagrams/opc-ua-data-quality-timestamps.svg)

*OPC UA Data Quality and Timestamps: Avoiding Stale-Value Decisions — Observe → Preserve → Evaluate → Present.*

## Design the requirement before the configuration

Distinguish source time from server time and arrival time. They describe different points in the data path and may not all be available. A Good status does not by itself satisfy an application-specific freshness requirement. Equally, a stable process value does not need a new source timestamp every display refresh. Define stale-data detection using the source behavior, communication health, and required update policy. Show Bad or Uncertain quality explicitly rather than silently retaining a normal-looking last value.

## Worked scenario

Consider a tank level that remains at 42% before a network interruption. A client that shows 42% in its normal color can imply a current measurement. A better display preserves the last observation but marks it unavailable or stale, shows when it was last confirmed, and prevents dependent analytics from treating it as a new sample. The acceptable age must come from the use case, not this example.

## What to verify

| Check | Evidence to record |
| --- | --- |
| Value | Preserve native data type and engineering unit |
| StatusCode | Retain severity and useful diagnostic detail |
| Source timestamp | Keep UTC semantics and source availability |
| Arrival timestamp | Use for transport diagnostics, not as fabricated process time |

## Acceptance and handover

Test a constant value, a changing value, a disconnected source, an invalid sensor reading, and a clock offset. Compare the OPC client against the final consuming application. Confirm that exports and calculations preserve the same quality rules shown to an operator.

![A conceptual OPC UA client/server path. Application certificates establish application trust; user authorization controls what a connected user may do.](https://wiki.aspotomasyon.com/assets/diagrams/opc-solutions-context.svg)

*A conceptual OPC UA client/server path. Application certificates establish application trust; user authorization controls what a connected user may do.*

## Continue the engineering work

Use the [related technical library](https://wiki.aspotomasyon.com/category/opc-solutions) for deeper background, or follow an [ASP project guide](https://wiki.aspotomasyon.com/guides) to plan the implementation sequence.

## Primary references and further reading

Use the original specifications and product documentation for implementation details. The examples in this guide are illustrative engineering scenarios, not published project results.

- [OPC Foundation — OPC UA Part 4: Services](https://reference.opcfoundation.org/specs/OPC-10000-4/)
- [OPC Foundation — OPC UA Part 2: Security Model](https://reference.opcfoundation.org/specs/OPC-10000-2/)

---

Cite the canonical article: https://wiki.aspotomasyon.com/article/opc-ua-data-quality-timestamps (OPC UA Data Quality and Timestamps: Avoiding Stale-Value Decisions, ASP OTOMASYON, updated 2026-09-13).
