Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not access the output variable of Iteration node in chatflow #15874

Open
5 tasks done
leonzy opened this issue Mar 14, 2025 · 1 comment
Open
5 tasks done

can not access the output variable of Iteration node in chatflow #15874

leonzy opened this issue Mar 14, 2025 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@leonzy
Copy link

leonzy commented Mar 14, 2025

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.01

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

In chatflow, Insert an Iteration node , set the output variable "result". You will see that the next node, for example, a LLM node, you can't find that "result" variable in the variable lists.

✔️ Expected Behavior

can access output variable of Iteration node.

❌ Actual Behavior

The Iteration node will not appear in the list of the next node, so you can't find the output variable

@dosubot dosubot bot added the 🐞 bug Something isn't working label Mar 14, 2025
Copy link

dosubot bot commented Mar 14, 2025

I found some similar discussions that might be relevant to your issue:

  1. Unable to Use 'text[array]' Output from Document Extractor in Iteration Step - This discussion is still open and might provide insights into handling array outputs in iteration steps [1].

  2. Help “Unable to Reference Previous Step Output in Dify Chatflow Prompt Configuration: What’s the Issue?” - This is another open discussion that deals with referencing outputs from previous steps, which might be related to your problem [2].

  3. Invalid built-in variables for iteration - This discussion is also open and addresses issues with built-in variables in iteration nodes [3].

Regarding your issue, the Iteration node in Dify's chatflow is expected to output only array variables (Array[List]). It processes each element in the input array sequentially, and the final output is also in the form of an array. Ensure that the input to the Iteration node is correctly formatted as an array, and check if the output variable is being correctly defined as an array [4].

If the issue persists, it might be related to known bugs or issues in the Dify codebase, such as IteratorVariableNotFoundError or InvalidIteratorValueError, which can affect variable passing between nodes [5].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant