Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
22.5k Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Split Array Message

Use this node to fan out a batch payload into individual messages — for example, splitting a bulk telemetry upload that contains an array of readings into one message per reading, each routed independently through the rest of the rule chain. The message originator, type, and metadata are preserved on every split message.

This node has no configuration options.

  1. Inspect the incoming message data and verify it is a JSON array. If not, route via Failure.
  2. If the array is empty, acknowledge the original message and produce no output messages.
  3. For each element in the array, create a new message with:
    • Data: the array element.
    • Originator, message type, and metadata: copied from the original message.
  4. Enqueue all created messages and route them via Success.
  5. Acknowledge the original message once all split messages have been successfully enqueued.
Connection Condition
Success One message emitted per array element (zero messages if array is empty).
Failure Incoming message data is not a JSON array.

Incoming data: [{ "sensor": "A", "temperature": 22.5 }, { "sensor": "B", "temperature": 23.1 }]

Result: two output messages:

  1. Data: { "sensor": "A", "temperature": 22.5 }
  2. Data: { "sensor": "B", "temperature": 23.1 }

Incoming data: []

Result: original message acknowledged, zero output messages produced.


Incoming data: { "status": "error", "code": 500 }

Result: routes via Failure — JSON object is not an array.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "EmptyNodeConfiguration",
"type": "object",
"properties": {},
"additionalProperties": false
}