# Confused wiring with import/copy and subflow

**URL:** <https://discourse.nodered.org/t/confused-wiring-with-import-copy-and-subflow/73746>\
**Category:** General\
**Created:** [16 January 2023 07:46 UTC](https://discourse.nodered.org/t/confused-wiring-with-import-copy-and-subflow/73746 "2023-01-16T07:46:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 January 2023 07:46 UTC](https://discourse.nodered.org/t/confused-wiring-with-import-copy-and-subflow/73746/1 "2023-01-16T07:46:44Z")

</div>

Is there a known issue in 3.0.2 with the internal wiring getting mixed up when importing a flow and copying nodes into a subflow?  
I believe that what I did was import a flow, create a new subflow, and copy a function node from the imported flow into the new subflow. The result is that when I feed a message into the subflow and hence into the function node, that I get a message out of the imported function node. I am not sure whether I also get one out of the node in the subflow. If this is not a known issue then I will investigate further.  
This is the second time I have seen something like this recently.

---

<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:** [16 January 2023 08:54 UTC](https://discourse.nodered.org/t/confused-wiring-with-import-copy-and-subflow/73746/2 "2023-01-16T08:54:02Z")

</div>

Not something I have seen or something I am aware of in the issues Colin?

Would be very grateful if you could investigate further and provide a reproducible set of steps or flow that demonstrates what you're seeing.

Thanks.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 January 2023 16:55 UTC](https://discourse.nodered.org/t/confused-wiring-with-import-copy-and-subflow/73746/3 "2023-01-16T16:55:28Z")

</div>

When I look at the problem again this morning (having left the flows malfunctioning last night) it is all working as it should. So it appears that a reboot has sorted it.

I will try and make it happen again.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 January 2023 21:10 UTC](https://discourse.nodered.org/t/confused-wiring-with-import-copy-and-subflow/73746/4 "2023-01-18T21:10:48Z")

</div>

Well I can't replicate it. When it happens again I will attempt not to destroy the evidence.

---

<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:** [19 March 2023 21:11 UTC](https://discourse.nodered.org/t/confused-wiring-with-import-copy-and-subflow/73746/5 "2023-03-19T21:11:22Z")

</div>

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