The workflow run failed after updated to version 1.10+ #6287

Closed
opened 2026-02-21 18:14:57 -05:00 by yindo · 4 comments
Owner

Originally created by @zhaojunfeng on GitHub (Oct 23, 2024).

Originally assigned to: @iamjoel on GitHub.

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

0.10.0-0.10.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The workflow could run well in version 0.8-0.9, but in version 0.10+, got this error: Query not found

The Error message code snippet:
workflow/nodes/llm/node.py, line 118.

The dsl:
OneStep售前助手wf.zip

✔️ Expected Behavior

run the workflow well

Actual Behavior

get error "Query not found"

Originally created by @zhaojunfeng on GitHub (Oct 23, 2024). Originally assigned to: @iamjoel on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.10.0-0.10.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce The workflow could run well in version 0.8-0.9, but in version 0.10+, got this error: Query not found The Error message code snippet: workflow/nodes/llm/node.py, line 118. The dsl: [OneStep售前助手wf.zip](https://github.com/user-attachments/files/17500826/OneStep.wf.zip) ### ✔️ Expected Behavior run the workflow well ### ❌ Actual Behavior get error "Query not found"
yindo added the 🐞 bug label 2026-02-21 18:14:57 -05:00
yindo closed this issue 2026-02-21 18:14:58 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 23, 2024):

The "Query not found" error in Dify version 1.10+ is likely due to a change in how the 'query' variable is handled. In this version, the code attempts to fetch the query from the variable_pool using the key (SYSTEM_VARIABLE_NODE_ID, SystemVariableKey.QUERY). If the query is not found, it raises a ValueError with the message "Query not found" [1].

To resolve this issue, ensure that the 'query' variable is correctly initialized and available in the variable_pool. You might need to check the initialization of the 'query' variable in your workflow's start node and ensure it is being set as expected. The 'query' variable should be defined as a system variable in the Chatflow application, specifically as sys.query [2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 23, 2024): <!-- Answer --> The "Query not found" error in Dify version 1.10+ is likely due to a change in how the 'query' variable is handled. In this version, the code attempts to fetch the query from the `variable_pool` using the key `(SYSTEM_VARIABLE_NODE_ID, SystemVariableKey.QUERY)`. If the query is not found, it raises a `ValueError` with the message "Query not found" <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/llm/node.py)</sup>. To resolve this issue, ensure that the 'query' variable is correctly initialized and available in the `variable_pool`. You might need to check the initialization of the 'query' variable in your workflow's start node and ensure it is being set as expected. The 'query' variable should be defined as a system variable in the Chatflow application, specifically as `sys.query` <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/start.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Oct 23, 2024):

We do not have this version. please correct the information and upload the workflow as a zip file, This description is hard to read.

@crazywoola commented on GitHub (Oct 23, 2024): We do not have this version. please correct the information and upload the workflow as a zip file, This description is hard to read.
Author
Owner

@zhaojunfeng commented on GitHub (Oct 23, 2024):

OneStep售前助手wf.zip

lastest version 0.10.1

@zhaojunfeng commented on GitHub (Oct 23, 2024): [OneStep售前助手wf.zip](https://github.com/user-attachments/files/17500572/OneStep.wf.zip) lastest version 0.10.1
Author
Owner

@zhaojunfeng commented on GitHub (Oct 24, 2024):

I found the root cause, there existed a memory param in llm node. have no idea why did it happend.
After removed it, the workflow back to normal.

@zhaojunfeng commented on GitHub (Oct 24, 2024): I found the root cause, there existed a memory param in llm node. have no idea why did it happend. After removed it, the workflow back to normal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6287