Conversation variables updated in iteration do not persist in main flow
Author: GoHirosawaCreated Oct 1, 2026Updated Oct 1, 2026
Labels🐞 bugreview: low
Self Checks
- I have read the Contributing Guide and Language Policy.
- This is only for bug report, if you would like to ask a question, please head to Discussions.
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report, otherwise it will be closed.
- 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- Please do not modify this template :) and fill in all the required fields.
Dify version
1.17.1
Cloud or Self Hosted
Cloud, Self Hosted (Docker)
Steps to reproduce
- Create a conversation variable.
- Set a value for that conversation variable within an iteration node; the value is set correctly at this stage.
- Upon exiting the iteration node, the value of the conversation variable is cleared.
※It appears that a past issue, such as "26367," is recurring.
✔️ Expected Behavior
The conversation variable should retain the value written inside the iteration, allowing the answer node to echo the incoming query.
❌ Actual Behavior
The conversation variable reverts to the previous value once the iteration finishes, so the downstream answer node produces an empty response.
Source: langgenius/dify