Open barn4k opened 4 months ago
Hey @barn4k,
The issue here appears to be that you have given the sticky notes the same name and we expect node names to be different even for sticky notes. If you set the name for the second sticky note to Sticky Note 2
it then works so I don't think we have anything to really fix here other than maybe throwing an error if a node with the same exists.
Oh, that's an interesting part. Maybe there should be an error raised when the same name is being used for different nodes. Or to make n8n automatically add 1,2,3 postfixes like it does in the UI
Hey @barn4k,
Those are not bad ideas, How did you make the workflow in the first place are you trying to build them by hand?
@Joffcom ops, didn't see the message. I have a workflow with n8n API that creates special notes for the workflows that is part of one process:
The issue has been raised due to some workflows could have other notes, so that's why the sticky issue has happened.
Bug Description
Seems if there are two sticky notes in one workflow created via API, one will disappear and the other one will be bugged. it won’t be possible to move it or edit unless you delete it (once). But after you have pressed the deletion button, the note will remain in its place. And now it will be movable and editable. The issue won’t happen if you edit the current sticky node via API, so it seems something messy is happening when there is no ID for the sticky notes defined
To Reproduce
Workflow:
Expected behavior
There will be two different sticky notes. Both are editable and movable.
Operating System
cloud
n8n Version
1.37.3
Node.js Version
cloud
Database
SQLite (default)
Execution mode
main (default)