Knowledge Hub

Factora Academy

Knowledge Hub · Courses · IoT.Factora · Technology · 12 min

Data quality

messageId idempotency, quality flags, DEMO labels.

Introduction

What this covers

How message identifiers, quality flags, source labels, and event time keep a reading from being counted twice or invented.

Why it matters on the floor

A retry without a message id double-counts production, and a copilot that fills a gap with a typical industry number sends maintenance to the wrong machine.

By the end you can

  • Explain why a non-empty message id is unique per device and why a retry must reuse it
  • Read quality and source, and keep the recorded time as the device time when the payload sent one
  • Recognise the demo and simulator labels, and refuse a filled-in number where the screen says evidence is missing

About 12 minutes. Prerequisites: Architecture, so you know where a reading is stored before you judge its quality.

Data quality

  • Non-empty messageId is unique per device (partial unique index). Retries must not double-count.
  • Quality: good / uncertain / bad / stale / missing as ingested.
  • Source: sensor, simulator, mqtt, gateway, etc.
  • Event time recordedAt should be the device/origin time when present; do not silently overwrite with server now if the payload carried a timestamp.
  • UI DEMO / SIMULATOR when telemetryMode is demo.
  • Copilot and Executive must not fill N/A with a typical industry number.

Walk the screen

Demo Food Plant floor, labelled DEMO.
Demo telemetry is labelled. Do not treat a simulator trace as a live commissioning result.
  1. Send a non-empty message id and reuse it on a retry so the device does not double-count.
  2. Read quality as good, uncertain, bad, stale, or missing, as ingested.
  3. Read source as sensor, simulator, mqtt, gateway, or the other labels the payload carried.
  4. Keep recorded time as the device time when the payload sent one.
  5. On a demo factory, expect the DEMO or SIMULATOR label. Do not let Copilot or Executive fill a missing value with a typical number.

Worked example

A retry of message id lab-1 on the same device does not add a second production count. The Floor screenshot is the demo plant, labelled because telemetry mode is demo. A gap on the chart stays a gap.

Common mistakes

  • Omitting the message id on a retry.
  • Overwriting device time with the server clock when the payload had a time.
  • Filling N/A with an industry-typical number for a slide.

Recap

  • Message id makes a retry idempotent per device.
  • Quality and source are stored as ingested.
  • Demo mode is labelled. Missing evidence stays missing.

Create a free account or log in to save this lesson on your progress.

Check understanding

Progress is stored in this browser until you log in. Passing is 70%.

1. Repeating the same messageId should
2. Quality values you should expect include
3. Copilot should fill a missing value with a typical industry number.
4. On a demo factory the interface shows