Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict] #20918

Closed
opened 2026-02-21 20:09:47 -05:00 by yindo · 2 comments
Owner

Originally created by @michalegomez on GitHub (Dec 9, 2025).

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.10.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

In a workflow, adding two Agent nodes where one of them is not connected to any other node will trigger an error.

Image

✔️ Expected Behavior

The not connected agent node will not be trigger.

Actual Behavior

Error Log:

4 validation errors for AgentNodeData
agent_strategy_provider_name
Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/missing
agent_strategy_name
Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/missing
agent_strategy_label
Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/missing
agent_parameters
Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/missing
Originally created by @michalegomez on GitHub (Dec 9, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.10.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce In a workflow, adding two Agent nodes where one of them is not connected to any other node will trigger an error. <img width="1267" height="590" alt="Image" src="https://github.com/user-attachments/assets/851baca5-5ec5-4ceb-bcf6-bfff57733672" /> ### ✔️ Expected Behavior The not connected agent node will not be trigger. ### ❌ Actual Behavior Error Log: ``` 4 validation errors for AgentNodeData agent_strategy_provider_name Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/missing agent_strategy_name Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/missing agent_strategy_label Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/missing agent_parameters Field required [type=missing, input_value={'tool_node_version': '2'...t 2', 'selected': False}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/missing ```
yindo added the 🐞 bug label 2026-02-21 20:09:47 -05:00
yindo closed this issue 2026-02-21 20:09:47 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 9, 2025):

Hi @michalegomez! I'm Dosu and I’m helping the dify team.

This error happens because Dify validates all agent nodes (connected or not) using strict Pydantic models as soon as the workflow graph is built. If any agent node is missing required fields like agent_strategy_provider_name, agent_strategy_name, agent_strategy_label, or agent_parameters, you'll get a validation error—even if the node isn't connected and won't run. There's no built-in logic in v1.10.1 to skip or conditionally validate unconnected nodes; all nodes must be fully configured or removed before saving or running the workflow. The best workaround is to either complete the configuration for every agent node or delete any unconnected/incomplete nodes before proceeding. This is a known limitation and has been reported by other users as well (source).

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 9, 2025): <!-- Greeting --> Hi @michalegomez! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> This error happens because Dify validates all agent nodes (connected or not) using strict Pydantic models as soon as the workflow graph is built. If any agent node is missing required fields like `agent_strategy_provider_name`, `agent_strategy_name`, `agent_strategy_label`, or `agent_parameters`, you'll get a validation error—even if the node isn't connected and won't run. There's no built-in logic in v1.10.1 to skip or conditionally validate unconnected nodes; all nodes must be fully configured or removed before saving or running the workflow. The best workaround is to either complete the configuration for every agent node or delete any unconnected/incomplete nodes before proceeding. This is a known limitation and has been reported by other users as well ([source](https://github.com/langgenius/dify/issues/28637)). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/54dd582d-abb1-4895-af48-6da3c1f71aa6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/54dd582d-abb1-4895-af48-6da3c1f71aa6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/54dd582d-abb1-4895-af48-6da3c1f71aa6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/54dd582d-abb1-4895-af48-6da3c1f71aa6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/54dd582d-abb1-4895-af48-6da3c1f71aa6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/54dd582d-abb1-4895-af48-6da3c1f71aa6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/54dd582d-abb1-4895-af48-6da3c1f71aa6?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20error%20happens%20because%20Dify%20validates%20all%20agent%20nodes%20%28connected%20or%20not%29%20using%20strict%20Pydantic%20models%20as%20soon%20as%20the%20workflow%20graph%20is%20built.%20If%20any%20agent%20node%20is%20missing%20required%20fields%20like%20%60agent_strategy_provider_name%60%2C%20%60agent_strategy_name%60%2C%20%60agent_strategy_label%60%2C%20or%20%60agent_parameters%60%2C%20you%27ll%20get%20a%20validation%20error%E2%80%94even%20if%20the%20node%20isn%27t%20connected%20and%20won%27t%20run.%20There%27s%20no%20built-in%20logic%20in%20v1.10.1%20to%20skip%20or%20conditionally%20validate%20unconnected%20nodes%3B%20all%20nodes%20must%20be%20fully%20configured%20or%20removed%20before%20saving%20or%20running%20the%20workflow.%20The%20best%20workaround%20is%20to%20either%20complete%20the%20configuration%20for%20every%20agent%20node%20or%20delete%20any%20unconnected/incomplete%20nodes%20before%20proceeding.%20This%20is%20a%20known%20limitation%20and%20has%20been%20reported%20by%20other%20users%20as%20well%C2%A0%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/issues/28637%29%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/29392)
Author
Owner

@crazywoola commented on GitHub (Dec 10, 2025):

Just remove the orphaned node should be ok.

@crazywoola commented on GitHub (Dec 10, 2025): Just remove the orphaned node should be ok.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#20918