Skip to main content

DetectStreamDataGaps@1

Node DetectStreamDataGaps@1 finds the missing time ranges of many series in one stream data archive. For every series it reports the ranges [start, end) in which the archive holds no data and the number of missing slots of the expected interval, over the half-open period [from, to). A whole month of a thousand quarter-hourly series is one call: the node has no row limit for the caller.

Each missing range can be requested again as a whole, for example one re-request of metered values per range instead of one per day.

Adapter Prerequisites​

Node Configuration​

For fields targetPath, targetValueWriteMode, and targetValueKind, see Overview. Field path is not used in this node.

transformations:
- type: DetectStreamDataGaps@1
archiveRtId: 68a1f0c5de73e7b175575401 # Runtime ID of a windowed archive (time-range or rollup), activated
rtIds: # The series to check, as runtime IDs of their source entities
- 68a2b1c4de73e7b175575402
rtIdsPath: $.meteringPoints[*].rtId # Alternative: read the runtime IDs from the payload
from: 2026-07-01T00:00:00+02:00 # Start of the period, inclusive; the offset sets the day boundary
fromPath: $.from # Alternative: read the start from the payload
to: 2026-08-01T00:00:00+02:00 # End of the period, exclusive
toPath: $.to # Alternative: read the end from the payload
expectedInterval: 00:15:00 # Length of one slot; defaults to the archive's period
fieldFilters: # Only rows matching every filter count as present
- attributePath: Amount.Unit
operator: Equals
comparisonValue: 1
validityPeriods: # Optional: only these periods are checked per series
- rtId: 68a2b1c4de73e7b175575402
from: 2026-07-10T00:00:00+02:00
to: 2026-08-01T00:00:00+02:00
validityPeriodsPath: $.participations # Alternative: read the validity periods from the payload
targetPath: $.gaps # Path where the result is stored in the payload

Parameters​

ParameterTypeRequiredDefaultDescription
archiveRtIdstringYes–Runtime ID of the archive to check. It must be activated and store row windows (a time-range or rollup archive)
rtIdsarray of stringOne of–The series to check, as runtime IDs of their source entities
rtIdsPathstringOne of–JSONPath alternative to rtIds; accepts a single value, an array, or a multi-match path
fromdate/timeOne of–Start of the period, inclusive. Give it with its UTC offset; a value without an offset is read as UTC
fromPathstringOne of–JSONPath to the start of the period in the payload (an ISO-8601 timestamp with offset, or a date/time value)
todate/timeOne of–End of the period, exclusive. Same offset rules as from; must be later than from
toPathstringOne of–JSONPath to the end of the period in the payload
expectedIntervaldurationNothe archive's periodLength of one expected value slot, e.g. 00:15:00 for quarter-hourly or 01:00:00 for hourly data. The missing counts are expressed in these slots
fieldFiltersarray of FieldFilterWithPathDtoNononeFilters on archive or standard columns, combined with AND. Only rows that match every filter count as present
validityPeriodsarray of {rtId, from, to}NononeValidity periods per series, see Validity periods
validityPeriodsPathstringNononeJSONPath alternative to validityPeriods

"One of" means: at least the literal or its path must be given. Per value the literal wins over its JSONPath variant: rtIds over rtIdsPath, from over fromPath, to over toPath, a non-empty validityPeriods over validityPeriodsPath. An empty rtIds or validityPeriods list counts as not set, so its path applies.

For the available filter operators, see GetRtEntitiesByType@1.

Period and day boundary​

There is no time zone option and no day-start option. The UTC offset of from and to decides the instants, and so where a day starts. Counting is by instants, so a daylight saving change needs no special case.

PeriodfromtoSame instants in UTC
Calendar month July 2026, local time2026-07-01T00:00:00+02:002026-08-01T00:00:00+02:002026-06-30T22:00:00Z .. 2026-07-31T22:00:00Z
Gas days of July 2026 (06:00 local)2026-07-01T06:00:00+02:002026-08-01T06:00:00+02:002026-07-01T04:00:00Z .. 2026-08-01T04:00:00Z
October 2026, across the change to CET2026-10-01T00:00:00+02:002026-11-01T00:00:00+01:002026-09-30T22:00:00Z .. 2026-10-31T23:00:00Z

The local month July holds 2976 quarter-hour slots. Series with a different day start, such as gas metering points with gas days, are checked in a separate call with their own from and to.

Validity periods​

A series is often expected to deliver data only for part of the period, for example a metering point that joins or leaves a community during the month. Validity periods restrict the check per series:

  • Each entry is the half-open range [from, to) of one series (rtId), with timestamps with UTC offset. to unset is an open end.
  • A series may have several entries; overlapping or touching entries of one series are merged.
  • With validity periods set, a series is checked only inside its periods cut to [from, to) of the node. Missing ranges are cut exactly at a validity boundary (not rounded to a slot), a gap across a hole between two periods is reported as two ranges, and the counts cover only those slots.
  • A series without an entry is neither checked nor reported; the node logs one info line naming how many such series there were. seriesCount counts only the series with an entry.
  • validityPeriodsPath reads an array of objects with the fields rtId, from and optionally to, or a multi-match path of such objects. A path that resolves to no entry writes a warning naming the path, and no series is checked or reported.
  • An empty inline validityPeriods list counts as not set: validityPeriodsPath applies, or, without it, the whole period is checked for every series.

Stretches outside every period are not read where that saves work. Without validity periods the node checks the whole period for every series.

Errors​

The node fails, naming the option, when:

  • neither rtIds nor rtIdsPath is set, or a runtime ID is not valid;
  • neither from nor fromPath (or to nor toPath) gives a value, a path value is present but not a date/time, or from is not before to;
  • expectedInterval is zero or negative, or it is unset and the archive declares no period;
  • the period holds 1,073,741,823 slots or more (use a longer expectedInterval or a shorter period);
  • stream data is not enabled for the tenant, the archive does not exist, or it is a raw archive holding single timestamps;
  • a field filter names a column the archive does not have;
  • a validity entry has no valid runtime ID, no from, an unreadable timestamp, from not before to, or (from the path) is not an object;
  • the storage fails (the node fails with the storage message).

An rtIdsPath that resolves to nothing checks no series: the node writes an empty result and a warning.

Result Shape​

The result at targetPath covers the whole period; timestamps are UTC:

from: 2026-06-30T22:00:00Z
to: 2026-07-31T22:00:00Z
interval: PT15M
expectedCount: 2976
seriesCount: 1000
seriesWithGapsCount: 1
missingCount: 9
series:
- rtId: 68a2b1c4de73e7b175575402
missingCount: 9
hasOverlaps: false
ranges:
- start: 2026-07-14T08:00:00Z
end: 2026-07-14T10:00:00Z
missingCount: 8
- start: 2026-07-20T12:00:00Z
end: 2026-07-20T12:10:00Z
missingCount: 1
FieldDescription
from, toThe checked period in UTC
intervalThe slot length, ISO-8601
expectedCountSlots of [from, to). It does not reflect validity periods: for a series valid only part of the period, compute its own slot count
seriesCountNumber of distinct series checked
seriesWithGapsCountNumber of series with at least one missing range (the length of series)
missingCountMissing slots summed over every series
seriesOnly the series with gaps, sorted by runtime ID; each with rtId, missingCount, hasOverlaps and ranges (start, end, missingCount, sorted by start)

Series without gaps, and series without a validity period, are omitted. Touching ranges are merged into one. A range shorter than one slot counts as one slot; counts are rounded up per range. A series without any data in the period is reported as one range over the whole period (with validity periods: over its periods), so name every series you expect data for.

Overlapping windows of one series are counted once; the series is flagged with hasOverlaps: true and the node logs a warning naming the series. The ranges and counts are the same as those of the gap report of GetStreamData@1 for the same data.

Storage Limits​

The caller sets no row limit. The node splits the work internally:

  • The series are processed in batches of at most 1000, fewer for long periods, so that days x series of one count query stay within the storage limit of 100,000 rows.
  • Per batch one count query counts the windows per series and day (24-hour bins starting at the time of day of from). A day whose count equals its slot count is complete and not read; a day without windows is missing as a whole. Only the other days, and a remainder shorter than a day, are read row by row, in time slices of at least one hour and pages of 50,000 rows.
  • When the count cannot be used (the archive's declared period is not the slot length, the period is shorter than a day, the slot does not divide a day, from is not on a whole minute, or the storage refuses the day bins), the batch is read row by row with the same result, and the node logs an info line.

The node reads only the configured archive: no rollup selection and no fallback to another archive.

caution

A window count stands for "every slot delivered" only when the stored windows are one slot long. If an archive declares the slot length as its period but stores windows of another length (shorter, longer or overlapping), a day whose window count happens to equal its slot count is not read, and a hole in that day is not found.

Usage Example​

Metering points deliver quarter-hourly energy values into the time-range archive energy-measurements (15-minute windows). Only consumption values (Amount.Unit = 1) count. Each metering point takes part only during its participation periods, which an earlier step of the pipeline has written to $.participations as [{ rtId, from, to }]. For every missing range of every metering point, one re-request is sent for the whole range (for example one CR_REQ_PT message through the EDA adapter) instead of one per day:

triggers:
- type: FromPipelineTriggerEvent@1
transformations:
# ... earlier steps write $.participations: [{ rtId, from, to? }, ...]
- type: DetectStreamDataGaps@1
archiveRtId: ec0000000000000000000a01 # energy-measurements, 15-minute windows
rtIdsPath: $.participations[*].rtId
from: 2026-07-01T00:00:00+02:00 # July 2026, local time
to: 2026-08-01T00:00:00+02:00
expectedInterval: 00:15:00
fieldFilters:
- attributePath: Amount.Unit
operator: Equals
comparisonValue: 1
validityPeriodsPath: $.participations
targetPath: $.gaps
- type: ForEach@1
iterationPath: $.gaps.series # one entry per metering point with gaps
transformations:
- type: ForEach@1
iterationPath: $.key.ranges # one entry per missing range
transformations:
- type: SetPrimitiveValue@1
targetPath: $.request.rtId
valuePath: $.full.key.rtId
valueType: String
- type: SetPrimitiveValue@1
targetPath: $.request.from
valuePath: $.key.start
valueType: DateTime
- type: SetPrimitiveValue@1
targetPath: $.request.to
valuePath: $.key.end
valueType: DateTime
- type: ToPipelineDataEvent@1 # one request per range
path: $.request
targetPath: $.input
targetPipelineRtId: 67e132d6477e78e980bbb512 # pipeline that sends the re-request

Inside the inner ForEach@1, $.key is the missing range and $.full.key the metering point. Because the ranges already stop at the participation boundaries, a re-request never asks for a stretch in which the metering point did not take part.

Use Cases​

  • Re-requesting missing values: one request per missing range and series, not per day
  • Completeness checks before billing: verify that every metering point delivered every slot of its participation period
  • Monitoring: count missing slots per series and alert above a threshold

See Also​