Having some issues today, want to copy a group of subflows from one node red instance to other instances. But getting different error messages.
Error: TypeError: o is undefined
Also got another error earlier that said something like "cannot add subflow to itself".
I think this all has to do with the underlying IDs. Is there any way to view and manage these? Suspect there may be some conflicts. Any suggestions on how to move forward? Making the subflows by hand is going to take hours and will almost guaranteed include bugs.
Thanks, and sorry forgot to provide the details. All have NR v4.0.9 and Node.js v22. It's easier to distribute docker containers than subflows hehe. I'm exporting with ctrl+e, copy-pasting the json for the subflow (including subflow's subflows). And import by ctr+i.
Yes I specifically clicked view nodes to make sure I didn't overwrite existing subflows, because I need to double check how they are used and apply them manually. Their interface changed.
Screenshot any errors in the browser console and node-red console
A link back to this thread for tracking purposes.
A step by step (what you clicked/typed/press/in what order) please.
Obviously if you can make the flows file as small as possible (remove as many nodes as possible) while demonstrating the issue would be ideal. (also, be sure to sanitise where necessary).
I started cutting down on content to make a small isolated example. But when I tried to import today, it suddenly started to work again! I don't think target node red changed anything, but the source was restarted and heavily modified flows.json multiple times.
So for now, the problem is gone. I'll see if it re-appears later for the remaining node red instances.
However, I get this weird error that some subflows used within a subflow changed type entirely from http node to bacnet node So I have to manually check everywhere to see that nodes are of correct type. Seems like there is some conflict with IDs?
And another problem, I exported and imported to another node red. This time I got the correct nodes, but some other function nodes and an exception node disappeared in the import! So again manual check if all nodes and wires are correct.