Derived Streams From Expressions Troubleshooting Tips

Quick Tips


Derived Stream Results are Wrong

NULLS Expression Errors

The Stream is not Deriving

A stream will derive when its expression dependents append data or modify historical values. It's a simple concept, but things become complex with different stream types, different value types, sample times differ and data arrival times differ.

Derivation typically does not recalculate all data, from the head to the tail, every time derivation runs. Normal derivation is an appending process. It will only derive from its last Calculated Up To date. This keeps derivation scalable and fast. There are exceptions. The next sections goes over them.

Stream derivation is attempted: Stream derivation expression processing runs when:

FK-Resolved Dependencies (Resolution SQL)

Some variables use a Resolution SQL to dynamically determine which stream to read from at derivation time. These are called FK dependencies. In the diagnostic tree, FK dependencies are marked with (FK) in the Var Name column. If the FK has not yet been resolved by the background job, it shows as (FK?) with the message "Waiting for background resolution."

FK Dep Shows "(FK?) Waiting for background resolution" FK Dep Resolves to the Wrong Stream FK Dep Stream Has Data But Derivation Is Not Running