# Function node sends multiple messages instead of one

**URL:** <https://discourse.nodered.org/t/function-node-sends-multiple-messages-instead-of-one/83843>\
**Category:** General\
**Tags:** function-node\
**Created:** [20 December 2023 00:24 UTC](https://discourse.nodered.org/t/function-node-sends-multiple-messages-instead-of-one/83843 "2023-12-20T00:24:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ChrisG](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@ChrisG](https://discourse.nodered.org/u/ChrisG)\
**Post date:** [20 December 2023 00:24 UTC](https://discourse.nodered.org/t/function-node-sends-multiple-messages-instead-of-one/83843/1 "2023-12-20T00:24:19Z")

</div>

Hi,

Node-Red v3.1.0

I have a simple 'edit function node' which collects values from global variables and formats a message with those values. I want this function to run once a minute so have put a 'inject node' in front of it.

To monitor whats happening, I've put a 'edit debug node' on the output.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/a/7a43fdb2085f438cffec11fc8542099bb3dba220.png)

What I want to happen is for the inject node to start the activity, the function node to create the message and send it onwards, and then wait for the next trigger.

What I get is the inject node starts the activity, and the debug node 'sees' the message, then sees it again, and again, and so on. At the rate of one every second.

Any ideas would be much appreciated.

---

_[View the full topic](https://discourse.nodered.org/t/function-node-sends-multiple-messages-instead-of-one/83843)._
