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
Hey there, @emadurandal! I'm here to assist you with any bugs, questions, or contributions you need help with. If you have any questions or need assistance, feel free to ask.
It seems like the issue you're encountering might be related to how Dify's workflow engine differentiates between a missing input and an input explicitly set to zero. Unfortunately, I couldn't find specific information on how Dify handles this differentiation or any known issues related to passing a numerical value of zero in version 0.10.2.
However, there is a known behavior in Dify's workflow tools where the presence of arguments is validated, and missing or invalid values (such as undefined, null, or an empty string) can trigger an error message indicating that a field is required [1]. This might be causing the error you're seeing when passing zero as an input.
To address this, you might want to check the logic in the tool's input validation to ensure that zero is correctly recognized as a valid input. If the issue persists, consider reviewing the tool's configuration or updating to a newer version of Dify if available, as updates might have addressed this behavior.
Self Checks
Dify version
0.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Create a tool with numerical value as a input in the workflow. (check the attached file "zero_test.yml" in "DSL.zip")
Create a new workflow and use the tool you just created at step 1. (check the attached file "zero_test2.yml" in "DSL.zip")
Pass the number 0 as input for that tool.
The error occurs.
DSL.zip
There may be a problem with the if statement that determines the presence of arguments, I guess.
✔️ Expected Behavior
0 is passed to the tool without any problem.
❌ Actual Behavior
The following error occurs: "Failed to invoke tool: number is required in input form"
The text was updated successfully, but these errors were encountered: