ANVILFIELD Try FieldOS

Field glossary · process

Data hygiene

Data hygiene preserves the identity, meaning and quality of operational records so a value remains usable after collection, integration and reporting. In a facility system, the record needs more than a number: the associated asset, units, quality state and relevant timestamps determine its interpretation. Treat missing data, stale data and a valid zero as different states, and preserve those distinctions when exporting to another platform.

Keeping the data accurate: correct tag-to-asset mapping, calibrated sensors, and live devices, so decisions are sound

Used across 2 Anvilfield field guides, most in Datacenter.
Updated

A stored value is not necessarily a current value

Project Haystack 4.0 defines curStatus as the status of a point's current reading and permits curVal to remain present when the status is stale. A populated value field therefore does not by itself establish freshness. Retain the quality state through the gateway, dashboard and export instead of dropping it when converting the reading to a spreadsheet.

Haystack distinguishes stale data from a hardware or configuration fault and from a communications outage. An audit of 1,000 points containing 960 ok, 30 stale and 10 down states has a 96% ok share, with the remaining states explicitly identified. Treating every populated curVal as good can hide the stale group; filling the missing group with zero invents measurements.

Haystack statusMeaning
okReading status is okay
staleRetained value is not fresh
downCommunications or network problem
faultConfiguration or hardware problem

Read source time and server time for different purposes

OPC UA Part 4, version 1.05.07, distinguishes the source timestamp assigned to a value instance from the server timestamp describing receipt or knowledge that the value remains accurate. Its DataValue documentation explains that exception-based reporting can leave the source timestamp unchanged while the server continues to establish that an unchanged value is accurate.

For that reporting arrangement, a source timestamp of 10:00 and a server timestamp of 10:15 do not automatically mean a fifteen-minute outage. Retain the status and the acquisition behavior with the times. Use the gateway's communication evidence to judge availability rather than applying a stale flag solely because a healthy, unchanged measurement has an older source timestamp.

Preserve bad readings through the calculation boundary

OPC UA Part 4 requires clients to check StatusCode severity before using a result and specifies that a value with an error status is ignored and set to null by the server. A failed pressure reading must therefore remain distinguishable from a valid zero-pressure reading when an integration consumes that DataValue.

Test an integration with one valid zero, one missing value and one bad-quality value for the same physical quantity. They should remain three distinguishable cases in the exported data. Use the point's asset identifier, units, status and source time to reconcile the connected-jobsite sensor with its digital-twin record. A calculated total should retain which inputs were accepted and which were rejected.

Distinctions

Calibration
Establishes a measurement relationship to a reference. A calibrated sensor can still be associated with the wrong asset in a database.
Completeness
Describes how many required records or fields exist. Presence alone does not establish their correctness or freshness.

Frequently asked questions

Should missing sensor values become zero?

Preserve a missing or bad state. Zero is a measurement with a physical meaning and belongs only where a valid acquisition reported it.

Does an old source timestamp always mean stale data?

No. OPC UA describes exception-based systems in which an unchanged value remains accurate while its source timestamp stays unchanged. Read status and server knowledge with it.

Sources checked

Also defined as

  • The ongoing work of keeping the model and data accurate, mapped, and current

Where this shows up

Related guides

Next step: Find controls integration work

Back to the full field glossary