I am trying to use N8N API (Using native node) to get a workflow from my instance and recreate it inside the same instance. However, because my workflow was created on a previous version of n8n, it seems the import fails.
What is the error message (if any)?
I get a 400 error:
ERROR: Request failed with status code 400
Request failed with status code 400 - Request failed with status code 400
Please share your workflow
For the error to appear, the other workflow needs to be created in a different version.
For the error to appear, the workflow needs to be created in a previous version and having some migrated keys. For example, in the following workflow, the key “continueOnFail” has been replaced with “onError” so the import does not work
I would expect the behaviour to be the same as Export / Import, that works for nodes created on previous versions.
I also have the same problem with following settings:
executionOrder
callerPolicy
Information on your n8n setup
n8n version: 1.18.0
Database (default: SQLite): Default
n8n EXECUTIONS_PROCESS setting (default: own, main): Own
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
The only workflow settings we support on import at the moment are below, We should really update this to support the new options so that you don’t need to remove them or we should ignore them so there is no error.
Thanks for your reply !
Indeed, it would be great if Get & Create could work without any changes.
On the node settings, keep me updated. For the moment I replace manually all legacy keys with the new ones.
@Henri_Chabert you have piqued my curiosity, what is your usecase? Any chance that you’re trying to test whether your workflows work correctly on a newer version before you upgrade?
Hello @maxT !
I am building a Version Control of my workflows and a deployment abiluty (A little bit of what the paying version offers but a little bit more advanced).
The goal of it is to be able to commit, release and deploy a workflow on a production instance with a Slackbot or other triggers.
Thus, I need to get workflows from my design node and push it to my production node, and, if nodes have been created on a legacy version, it fails.
I ended up replacing all fields that cause problems and it works like a charm !
On your second question, I’m not sure I understand, you would like me to try to export and import my workflow from an older to a newer version and see if it works?