# Import Flow / View Nodes - no indication of duplication for junction nodes

**URL:** <https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013>\
**Category:** Core Development\
**Created:** [29 January 2024 08:48 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013 "2024-01-29T08:48:11Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [29 January 2024 08:48 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/1 "2024-01-29T08:48:11Z")

</div>

Hi There!

I sometimes get "Some of the nodes you are importing already exist in your workspace." and when I view nodes, I get something like:

 ![Screen Shot 2024-01-29 at 09.33.19](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/e/8e739105fbeebf83ef1d592cee762084fb88bef7.png)

Basically there is no duplication to see!

I sat down and decided to find out what is going on. Turns out I have a junction that is duplicated across two flows. I.e., one of the two junctions shown in the image is a duplicate.

Any idea why the junction that is the duplicate isn't highlighted (by being unchecked)?

At the moment, the dialog isn't really useful since it seems everything is always checked...

---

<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:** [29 January 2024 08:50 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/2 "2024-01-29T08:50:58Z")

</div>

You may need to show the first screen you see when you import the nodes.

There are `3` options.

Which one do you select there?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 January 2024 08:52 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/3 "2024-01-29T08:52:07Z")

</div>

It _looks_ like there are more items (but no scroll bar). Can you inspect the html/CSS and see if your mysterious node is scrolled off screen.

Regarding duplicate junction nodes, I'm not certain they should be called out as duplicates regardless of having the same ID tbh

---

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [29 January 2024 09:15 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/4 "2024-01-29T09:15:05Z")

</div>

> [@Trying\_to\_learn](#):
>
> Which one do you select there?

"View Nodes" --\> import copy and cancel aren't really an option ....

![Screen Shot 2024-01-29 at 10.12.11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/508a9e925cbb412455c31f1921ef3cb265b04926.png)

> [@Steve-Mcl](#):
>
> Can you inspect the html/CSS and see if your mysterious node is scrolled off screen.

you mean in the workspace or in the listing? Either way, I'd do it with JS (as I did) to find the node....

> [@Steve-Mcl](#):
>
> Regarding duplicate junction nodes, I'm not certain they should be called out as duplicates regardless of having the same ID tbh

I don't care - IDC! 😉

---

<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:** [29 January 2024 09:49 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/5 "2024-01-29T09:49:32Z")

</div>

Ok, so you click `View Nodes`.

Then you see ANOTHER screen - which I am not seeing here - where you select that node and then you have an option to do three things.  
Ok, you posted doing my writing this reply.  
Sorry.

But after I click the MIDDLE button: `view nodes` (as shown in your picture)  
I get this

See picture.

 ![Screenshot from 2024-01-29 20-47-52](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/c/3c647018108bf5c7de057b6d29fa3f15be79e9f7.png)

In this example I am importing a SUBFLOW.

I click the white button (top left) AND the `replace` button (top right)

Then import and all is good.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 January 2024 09:50 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/6 "2024-01-29T09:50:27Z")

</div>

> [@gregorius](#):
>
> > [@Steve-Mcl](#):
> >
> > Can you inspect the html/CSS and see if your mysterious node is scrolled off screen.
> 
> you mean in the workspace or in the listing?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/8/285a08b44d9fb4034b3e3e215da44df332e3998f.png)

> [@gregorius](#):
>
> Either way, I'd do it with JS (as I did) to find the node..

But that doesnt really help us understand if it is a browser thing or a Node-RED bug.

What i hope to see is a node in the list with the option to replace

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

---

<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:** [29 January 2024 09:51 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/7 "2024-01-29T09:51:57Z")

</div>

The import is not perfect, there are cases which are not handled. In addition certain properties (belonging to the editor) are not shown.

---

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [29 January 2024 10:14 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/8 "2024-01-29T10:14:49Z")

</div>

> [@gregorius](#):
>
> mean in the workspace or in the listing?

Ah ok 👍

Yes, no scrollbar and yes it goes on and - having checked - I know it's one of the junctions that is a duplicate ... hence there should be an unchecked there.

> [@Trying\_to\_learn](#):
>
> In this example I am importing a SUBFLOW.

Subflows work but this was a junction that was causing the same error message and yet I wasn't shown the junction that was the duplication.

> [@GogoVega](#):
>
> The import is not perfect, there are cases which are not handled. In addition certain properties (belonging to the editor) are not shown.

I think that's the point I was trying to make or rather the feeling I have 😉

* * *

Thanks for checking folks 👍

As background, I do a lot of importing so this happens often and eventually it becomes annoying that I don't know what it is that is duplicated. But it made me - finally - build a workaround for my use cases ...

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 January 2024 10:25 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/9 "2024-01-29T10:25:49Z")

</div>

> [@gregorius](#):
>
> As background, I do a lot of importing so this happens often and eventually it becomes annoying that I don't know what it is that is duplicated. But it made me - finally - build a workaround for my use cases

I understand your frustration, but it would be really nice if you could please document repeatable issues and raise issues with step-by-step instructions and flows that demonstrate it. Then we could get this resolved in core in a future maintenance release. (thats the utopia anyhow)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 January 2024 10:31 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/10 "2024-01-29T10:31:07Z")

</div>

> [@GogoVega](#):
>
> The import is not perfect, there are cases which are not handled. In addition certain properties (belonging to the editor) are not shown.

Can you provide some examples of cases that are not handled? What properties are not shown? It should only be considering the properties of the node as per the flow json.

---

<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:** [29 January 2024 10:42 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/11 "2024-01-29T10:42:15Z")

</div>

I agree but this is the reason why a node is indicated as changed but the window does not show it.

I have not yet tested the import in depth, for the moment I only have this case [#4548](https://github.com/node-red/node-red/issues/4548) related to a type changes.

I also notice that the "replace" button is not always displayed (and not correctly) probably because of the size (i18n)

So, as soon as I have time I will do more tests 🙂 (an raise issue)

---

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [29 January 2024 10:47 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/12 "2024-01-29T10:47:36Z")

</div>

> [@Steve-Mcl](#):
>
> I understand your frustration, but it would be really nice if you could please document repeatable issues and raise issues with step-by-step instructions and flows that demonstrate it. Then we could get this resolved in core in a future maintenance release. (thats the utopia anyhow)

No frustration, well frustration enough that I will create something more logical!

Example: go [here](https://cdn.flowhub.org?t=0#flow/f93e13e54f881a08) and import this flow:

```auto
[{"id":"e9773b22a6816d87","type":"delay","z":"f93e13e54f881a08","name":"","pauseType":"random","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"300","randomLast":"1000","randomUnits":"milliseconds","drop":false,"allowrate":false,"outputs":1,"x":690.2349114928925,"y":2351.7857674189977,"wires":[["8a090a46c53f85aa"]]},{"id":"caff3be4bed43276","type":"delay","z":"f93e13e54f881a08","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":964.4185858113424,"y":2351.3144930188946,"wires":[["d38b1d46d403d2fd"]]},{"id":"c9f660ea8f42eaa7","type":"junction","z":"f93e13e54f881a08","x":550.8368966664584,"y":2351.7857674189977,"wires":[["e9773b22a6816d87"]]},{"id":"8a090a46c53f85aa","type":"junction","z":"f93e13e54f881a08","x":825.0205709849088,"y":2351.3144930188946,"wires":[["caff3be4bed43276","20f89280fae84c94"]]},{"id":"20f89280fae84c94","type":"junction","z":"f93e13e54f881a08","x":952.8573309183121,"y":2298.9131979772023,"wires":[["269a153277292cbe"]]},{"id":"36f70c8b1c87950f","type":"junction","z":"f93e13e54f881a08","x":620.7142553329468,"y":2276.4285752773285,"wires":[[]]}]

```

of the four junctions checked only three are included on the flow and one is new ... which is which?

 ![Screen Shot 2024-01-29 at 11.51.23](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/13db96e1f7aebb76d24bade7430c7fc5b3cfcacf.png)

that's the view nodes dialog with all four junctions being checked although I was told there are duplicates?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 January 2024 11:12 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/13 "2024-01-29T11:12:59Z")

</div>

Please raise an issue with steps to recreate. I will look at this in my weekly live-stream later today (4pm GMT [Twitch](https://twitch.tv/knolleary))

---

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [29 January 2024 13:13 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/14 "2024-01-29T13:13:30Z")

</div>

Done - [Importing flow with duplicate junction nodes: unclear which are junction nodes are duplicates · Issue #4549 · node-red/node-red · GitHub](https://github.com/node-red/node-red/issues/4549)

---

<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:** [29 January 2024 20:17 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/15 "2024-01-29T20:17:42Z")

</div>

> [@GogoVega](#):
>
> I also notice that the "replace" button is not always displayed (and not correctly) probably because of the size (i18n)

I haven't checked if your PR fixes it  
(the field with "replace" is truncated)

 ![Capture d’écran 2024-01-26 à 17.11.38](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4e64c32f4065072a5b1c5a6d35418217887e6642.png)

---

<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:** [29 March 2024 20:17 UTC](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013/16 "2024-03-29T20:17:43Z")

</div>

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