Count Distinct

logic · C324 · starter-package 7.0.1

Purpose

Count structurally unique supported workflow values. Record key order does not change equality; number 1 and text "1" remain different.

Connectors

  • Items: dense list with up to 4096 supported values.
  • Distinct count: number.

Example

[{"a":1,"b":2}, {"b":2,"a":1}, "1", 1] returns 3.

Failure cases

Circular data, unsupported values, unsafe record keys, excessive nesting or size, NaN, and infinity stop the workflow with a clear message.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputitems — Itemslistyes
Outputresult — Distinct countnumberon success