I made a Workflow to duplicate another workflow, but I am facing issue with expressions conflict

Describe the problem/error/question

so basically, I have Workflow A and B A is basic workflow that use different type of nodes of Google Sheet while B is a workflow of 2 nodes only job is to duplicate workflow A using this node API reference | n8n Docs the issue is workflow B return “The node ‘Get Google Sheet’ doesn’t exist, but it’s used in an expression here.” which is expected since B doesn’t have that node I want workflow B to ignore all of the expression in the “Create workflow node”

What is the error message (if any)?

The node Get Google Sheet doesn’t exist, but it’s used in an expression here.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
    1.108.2 (Self Hosted)
  • Database (default: SQLite):SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • Operating system: Ubuntu 24.04

What I need:
A way for Workflow B to ignore or bypass expression validation when sending Workflow A’s JSON to the API, so it can clone the workflow exactly as-is without checking every expression reference.

Basically:
How do I make the “Create Workflow” node treat the workflow JSON as plain text and not try to validate expressions from other nodes?

Any workaround or known method to skip expression evaluation inside the cloning workflow would be appreciated.

I’m wondering if you could:

  1. HTTP Request node to GET {url for workflow a}
  2. Code node to modify the response (rename it, strip the ID, etc.)
  3. HTTP Request node to POST {url for your workflows homepage} with the modified JSON

This way the workflow json stays in plain text the whole time.

1 Like

Hey @Testy !

Do the workflow B is started by workflow A ?

Can you share the workflow B ?(of course without sensitive information), so we can try reproduce .

Cheers!

thanks dude, you are amazing :clap:

1 Like

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