# Importing Subflows - something not right with sequencing

**URL:** https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459
**Category:** General
**Created:** [7 June 2025 11:20 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459 "2025-06-07T11:20:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 June 2025 11:20 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/1 "2025-06-07T11:20:39Z")

</div>

Sorry but it is `subflows`.... my favourite. 😉

I get it that there is _MAGIC_ happening that keeps track of what's going on and so when you import a subflow that is different to the resident one: you get a question about what to do.

So you click the button, _examine_ the details and `overwrite` if it is newer.

But I'm getting those kind of requestors, but it isn't doing that now.

Pictures to give 1000's of words.

To export:

 ![Screenshot from 2025-06-07 21-15-35](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/e/8e4630e74a22db191e2cd6bfe6423f49362ea059.png)

Copy to clipboard

 ![Screenshot from 2025-06-07 21-15-44](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c22ccb893e6b0b84c556b7cf306460df58006da0.png)

The other machine

 ![Screenshot from 2025-06-07 21-15-56](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bcd9db8898ee0b91a6ebd0f9ce5513ed36ba84ac.png)

Import

 ![Screenshot from 2025-06-07 21-16-27](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/5386e70e2c0d8523051e14ec589cfc1cef02aac3.png)

The question

 ![Screenshot from 2025-06-07 21-16-35](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/585ca317d2eed7c7819f5956e179248754f89f3f.png)

View nodes clicked

 ![Screenshot from 2025-06-07 21-16-41](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/722c9fb894381b0a6270f3967a8b27bfe0d2d62f.png)

**USUALLY** this is what happens when you click the `view nodes` button

 ![Screenshot from 2025-06-07 21-19-36](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e7ca40e8e198eb07f39a8cd20fe72d137a59c5d4.png)

So what's happening here/now?

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [7 June 2025 12:41 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/2 "2025-06-07T12:41:55Z")

</div>

First question: do both machines have the same version of NR?

Your penultimate image makes me think of a subflow definition replacement: the import code contains a very old logic that compares the imported subflow definition with all existing definitions. If a match is found, your imported instance node will be updated with the existing definition instead of the imported one.

Maybe the answer but I'm writing it from head (memory).

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 June 2025 20:41 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/3 "2025-06-07T20:41:16Z")

</div>

Alas No.

Out 4.0.9  
In 3.0.2

It does _WORK_ with other subflows though.  
As shown in the last picture.

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [7 June 2025 21:15 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/4 "2025-06-07T21:15:38Z")

</div>

It's not very clear which image has which version of NR.

The conflict resolution box has received improvements (but I don't remember which version off the top of my head).

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 June 2025 21:19 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/5 "2025-06-07T21:19:00Z")

</div>

Yeah, the images aren't too helpful, and there are quite a few of them.

From memory NR2.x was not good at subflow imports.  
V3.x onwards was great by comparison.

The pictures are there only to show what I was seeing rather than me trying to explain it all.

But I hope you can see that with the `machine health` was being imported: the requestor and options are very different to what happened when I tried the second one.

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [7 June 2025 21:30 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/6 "2025-06-07T21:30:09Z")

</div>

The last image says that the subflow definition already exists. Do you want to import a copy or replace it? It also asks if you want to import the subflow instance node.

However, I have a doubt about the image above.

I think it's ask to import a copy of the definition and ask to import the subflow instance node.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 June 2025 21:32 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/7 "2025-06-07T21:32:22Z")

</div>

Good catch!

Yeah, that may be a big part of what I'm not understanding.

I'll try to remember this and dig deeper into it when I can.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [5 September 2025 21:32 UTC](https://discourse.nodered.org/t/importing-subflows-something-not-right-with-sequencing/97459/8 "2025-09-05T21:32:53Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
