# Merge node suggestion: add option to disable triggering of previous nodes

**URL:** <https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931>\
**Category:** Feature Requests (done)\
**Tags:** core, data-transformation\
**Created:** [December 15, 2021, 9:59am UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931 "2021-12-15T09:59:20Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tuckan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tuckan/32/3097_2.png) [@Tuckan](https://community.n8n.io/u/Tuckan)\
**Post date:** [December 15, 2021, 9:59am UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/1 "2021-12-15T09:59:20Z")

</div>

## The idea is:

The Merge node has a unique behavior in which it activates connected nodes independently (please also add an explanation in the documentation here: [Merge | n8n Docs](https://docs.n8n.io/nodes/n8n-nodes-base.merge/#node-reference)). I think it’s something that should be configurable in the node.

## My use case:

I had multiple cases in which the Merge node triggered nodes that were not supposed to be triggered (usually in an unused path of an IF node).

## I think it would be beneficial to add this because:

It gives more control of the Merge node, in my personal experience it caused some really unexpected workflow behavior which was not consistent. By disabling this behavior the Merge node can be used more reliably.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [December 15, 2021, 6:34pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/2 "2021-12-15T18:34:57Z")

</div>

Totally agree about the documentation.

However one short question regarding your use case. Would you really need a Merge-Node in this case? It sounds to me right now like in this case simply removing the Merge-Node and rather connecting directly to the node afterward is what you want and need.

---

<div class="post-metadata">

**Author:** ![TheFSilver](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thefsilver/32/4791_2.png) [@TheFSilver](https://community.n8n.io/u/TheFSilver)\
**Post date:** [December 16, 2021, 4:58pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/3 "2021-12-16T16:58:40Z")

</div>

Hi @Tuckan & @jan !

Gotta agree with Tuckan on this.  
I encountered the problem several times myself and even blamed the IF node for it until I noticed the Merge node was the one messing up my workflow.

Pretty please. ahah !!  
Cheers

---

<div class="post-metadata">

**Author:** ![Tuckan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tuckan/32/3097_2.png) [@Tuckan](https://community.n8n.io/u/Tuckan)\
**Post date:** [December 16, 2021, 5:53pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/4 "2021-12-16T17:53:13Z")

</div>

Hi @jan thank you for the quick response.

For your question I tend to prefer using a single execution, it’s easier to keep track of and has less potential for bugs. (This may require a different thread but multiple executions in a Merge execute only once)  
It also makes logical sense to use IF nodes to split a branch and use the Merge nodes to combine them together afterwards.

I have 2 examples of bugs occurring in relation to the Merge node and an IF node:

1. In this simplified workflow there the if node output is a single empty item on the true path. The merge node triggers the bottom node to activate and creates an extra unwanted entity in the system.  
 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/a/a0e2bda18377239084f0f147fca3aab1398b89c6.png)

1. My 2nd example is a real use case which is more complex - I get a list of items to create/delete and my implementation requires that I first delete and then create. The nodes from from the IF to the Merge are set to always pass data and the delete node is set to continue on fail.  
I tested a case with a single item that go to the false path on the IF and somehow the node on the **true** path used information that was only on the **false** path of the IF.  
 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/9/96d1b22fea345ade01046752a21f9a848c2ae000.png)

---

<div class="post-metadata">

**Author:** ![TheFSilver](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thefsilver/32/4791_2.png) [@TheFSilver](https://community.n8n.io/u/TheFSilver)\
**Post date:** [December 16, 2021, 6:05pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/5 "2021-12-16T18:05:18Z")

</div>

Hi @Tuckan

I actually got solutions for your two cases.

Case 1:

- Remove everything but one Create Entity
- put your conditions directly in there as follows:

```auto
{{ yourCondition ? "result if condition true" : "result if condition false" }}

```

If it’s an experssion just remove the quotation marks.

Case 2:

- Disconnect the Spreadsheet file and the Merge 2nd input
- Connect the IF true branch to the Merge 2nd input

That should do it!

**But I still request that node improvement !!**

---

<div class="post-metadata">

**Author:** ![Tuckan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tuckan/32/3097_2.png) [@Tuckan](https://community.n8n.io/u/Tuckan)\
**Post date:** [December 17, 2021, 2:22am UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/6 "2021-12-17T02:22:27Z")

</div>

Hi @TheFSilver,

Thank you for the tips!

I mainly presented these cases to show potential bugs.  
For case 1 it’s true it will work for a simple IF but if I’ll have more complex conditions it will start to get messy to try and find a workaround for each case. I wanted to present a case that Merge node always triggers a node that is on a situational path.

As for case 2 upon further testing it appears to be an issue with the SuiteCRM node ignoring a query when getting an empty value. For future reference the workaround was to add a Function Item node that set an empty string to the value if the item is empty.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [December 17, 2021, 7:01am UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/7 "2021-12-17T07:01:07Z")

</div>

Thanks a lot for providing some background information. Will be very helpful for us when we look into that further.

---

<div class="post-metadata">

**Author:** ![TheFSilver](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thefsilver/32/4791_2.png) [@TheFSilver](https://community.n8n.io/u/TheFSilver)\
**Post date:** [December 17, 2021, 1:07pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/8 "2021-12-17T13:07:29Z")

</div>

Hi @Tuckan,

Anytime. 🙂

Just to be clear: I just provided those temporary quickfix while we wait for @jan & the team to implement the merge node improvement. 😉

I need them too ahah.

---

<div class="post-metadata">

**Author:** ![chrisgereina](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/chrisgereina/32/5459_2.png) [@chrisgereina](https://community.n8n.io/u/chrisgereina)\
**Post date:** [January 20, 2022, 1:55am UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/9 "2022-01-20T01:55:28Z")

</div>

@jan is there a suggested general workaround for this? I’m currently struggling with a flow that is triggering twice due to this

---

<div class="post-metadata">

**Author:** ![cleveradmin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/cleveradmin/32/4114_2.png) [@cleveradmin](https://community.n8n.io/u/cleveradmin)\
**Post date:** [January 20, 2022, 2:20am UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/10 "2022-01-20T02:20:09Z")

</div>

@chrisgereina is actually working on a workflow for me, so any insight from @jan or others would be greatly appreciated. Cheers.

---

<div class="post-metadata">

**Author:** ![chrisgereina](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/chrisgereina/32/5459_2.png) [@chrisgereina](https://community.n8n.io/u/chrisgereina)\
**Post date:** [January 23, 2022, 9:03pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/11 "2022-01-23T21:03:54Z")

</div>

Still working through this issue

I know that by default n8n nodes run once for each item, is there a way to get all output items of a node at once?

If I’m able to do that then at least I can process all of the items at once in a function so that when the merge node does actually call the node it all comes as it should

@jan  
@MutedJam  
@RicardoE105

---

<div class="post-metadata">

**Author:** ![Tuckan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tuckan/32/3097_2.png) [@Tuckan](https://community.n8n.io/u/Tuckan)\
**Post date:** [January 24, 2022, 11:26am UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/12 "2022-01-24T11:26:12Z")

</div>

@chrisgereina I’m not sure if you are talking about combining executions to a single item but this thread may help you:

> [@Is there a way to join multiple executions in a JSON](http://community.n8n.io/t/is-there-a-way-to-join-multiple-executions-in-a-json/8037):
>
> I have a splintbatch node that loops the db and at the end I want to warn about slack. for each execution of the loop I’m getting an alert in slack but i only want one [Captura de tela 2021-09-23 132902]

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 23, 2023, 8:22pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/13 "2023-01-23T20:22:04Z")

</div>

Fyi there is also an open [PR](https://github.com/n8n-io/n8n/pull/4238) about the Merge-Node behavior which will fix that issue once merged (planned with n8n version 1.0).

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 26, 2023, 3:07pm UTC](https://community.n8n.io/t/merge-node-suggestion-add-option-to-disable-triggering-of-previous-nodes/9931/14 "2023-07-26T15:07:25Z")

</div>

New version [`n8n@1.0.5`](https://github.com/n8n-io/n8n/releases/tag/n8n%401.0.5) got released which includes the [GitHub PR 4238](https://github.com/n8n-io/n8n/pull/4238).
