You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error "Variable '' does not exist" happens when an Agent node in your workflow tries to reference a variable, but the variable name is empty or missing in the node's configuration. This is enforced in the code: if a parameter is set to type "variable" but the variable name is blank or not found in the workflow's variable pool, the node run fails with this error.
This usually means that in your Agent node's configuration (specifically in the agent_parameters section), a required variable name is not set or is set to an empty string. This can happen if a previous node didn't output the expected variable, or if the variable mapping in the workflow builder is incomplete.
To fix this, check the agent_parameters for your second Agent node and make sure every parameter that expects a variable has a valid, non-empty variable name, and that the variable is actually produced by a previous node in the workflow. Pay special attention to any custom or toolbox-related parameters, as these often require explicit variable mapping. If you see any parameter with an empty variable name, update it to reference the correct variable from earlier in your workflow.
For more technical details, see how the error is raised in the code here.
Activity
dosubot commentedon Aug 25, 2025
The error "Variable '' does not exist" happens when an Agent node in your workflow tries to reference a variable, but the variable name is empty or missing in the node's configuration. This is enforced in the code: if a parameter is set to type "variable" but the variable name is blank or not found in the workflow's variable pool, the node run fails with this error.
This usually means that in your Agent node's configuration (specifically in the agent_parameters section), a required variable name is not set or is set to an empty string. This can happen if a previous node didn't output the expected variable, or if the variable mapping in the workflow builder is incomplete.
To fix this, check the agent_parameters for your second Agent node and make sure every parameter that expects a variable has a valid, non-empty variable name, and that the variable is actually produced by a previous node in the workflow. Pay special attention to any custom or toolbox-related parameters, as these often require explicit variable mapping. If you see any parameter with an empty variable name, update it to reference the correct variable from earlier in your workflow.
For more technical details, see how the error is raised in the code here.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

DavideDelbianco commentedon Aug 26, 2025
Maybe you added something in the "context" input and then removed it ?
It would be a known bug that can be fixed only by recreating the node
dosubot commentedon Sep 26, 2025
Hi, @alin132. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!
he-ding commentedon Jan 15, 2026
by the way, the problem is still exist in version 1.11.3