Workflow with the same name already exists in this folder.
3) Steps I've taken to troubleshoot:
Importing as a fresh workflow with a fresh name works, but I can't import /replace an existing workflow without that error. Its not related to the file name used
Additional info: Cloud, same issue on Safari & Chrome
I understand the issue you're facing while importing a workflow.
I tested the same scenario in my Retool account and found that the error seems to occur when a workflow with the same name already exists in the destination folder.
Here's what I observed:
If I try to import a workflow into a folder where another workflow with the same name already exists, the import fails with the duplicate name error.
When I change the workflow name to a different value before importing, the import completes successfully.
So, as a workaround, try the following:
Import the workflow JSON.
Before clicking Import, change the workflow name to a unique name.
Then proceed with the import.
This worked consistently in my testing and allowed the workflow to be imported successfully.
If you're still seeing the error even after using a unique workflow name, could you share the exact error message or a screenshot? That would help determine whether it's the same issue or something different.
Ok, so importing a workflow also imports its name, even if you're importing it to an existing workflow? That would marry up but its quite an odd behaviour and not intuitive to the user at all...
Sorry for the confusion here! When you import a JSON export into an existing workflow, Retool also imports the name stored inside the JSON, not just the logic.
So, even though you're importing into a folder that already has a workflow of that name, Retool tries to create a workflow with that same name again and conflicts with itself, throwing the error that you were seeing.
As @WidleStudioLLP suggested, renaming it before exporting would be the best course of action here I'll also file an internal report to make this more intuitive for users!