not supported value type integer #21174

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

Originally created by @Ranran-bugmaker on GitHub (Dec 19, 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

app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: advanced-chat
  name: int
  use_icon_as_answer_icon: false
dependencies: []
kind: app
version: 0.5.0
workflow:
  conversation_variables:
  - description: ''
    id: 9a6f7911-9d88-4b98-9cfa-241b61fc3226
    name: num
    selector:
    - conversation
    - num
    value: 0
    value_type: integer
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_size_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: ''
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: code
      id: 1766130219514-source-1766130229483-target
      source: '1766130219514'
      sourceHandle: source
      target: '1766130229483'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: code
        targetType: assigner
      id: 1766130229483-source-1766130649471-target
      source: '1766130229483'
      sourceHandle: source
      target: '1766130649471'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: assigner
        targetType: answer
      id: 1766130649471-source-1766130271841-target
      source: '1766130649471'
      sourceHandle: source
      target: '1766130271841'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        selected: false
        title: 用户输入
        type: start
        variables: []
      height: 73
      id: '1766130219514'
      position:
        x: 0
        y: 15
      positionAbsolute:
        x: 0
        y: 15
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        code: "\ndef main(arg1: str):\n    return {\n        \"result\": float(arg1),\n\
          \    }\n"
        code_language: python3
        outputs:
          result:
            children: null
            type: number
        selected: false
        title: 代码执行
        type: code
        variables:
        - value_selector:
          - sys
          - query
          value_type: string
          variable: arg1
      height: 52
      id: '1766130229483'
      position:
        x: 342
        y: 26
      positionAbsolute:
        x: 342
        y: 26
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        answer: '{{#conversation.num#}}'
        selected: false
        title: 直接回复
        type: answer
        variables: []
      height: 104
      id: '1766130271841'
      position:
        x: 1026
        y: 0
      positionAbsolute:
        x: 1026
        y: 0
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        items:
        - input_type: variable
          operation: over-write
          value:
          - '1766130229483'
          - result
          variable_selector:
          - conversation
          - num
          write_mode: over-write
        selected: true
        title: Variable Assigner
        type: assigner
        version: '2'
      height: 84
      id: '1766130649471'
      position:
        x: 644
        y: 26
      positionAbsolute:
        x: 644
        y: 26
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    viewport:
      x: 275.16323495119025
      y: 498.7257325320832
      zoom: 0.7000000000000001
  rag_pipeline_variables: []

Query using the above DSL
The following error occurred:
not supported value type integer

Image

If I need to upgrade, which version should I upgrade to? If the problem is still not resolved, please address it as soon as possible.

✔️ Expected Behavior

No error

Actual Behavior

error occurred:
not supported value type integer

Image
Originally created by @Ranran-bugmaker on GitHub (Dec 19, 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 ```yaml app: description: '' icon: 🤖 icon_background: '#FFEAD5' mode: advanced-chat name: int use_icon_as_answer_icon: false dependencies: [] kind: app version: 0.5.0 workflow: conversation_variables: - description: '' id: 9a6f7911-9d88-4b98-9cfa-241b61fc3226 name: num selector: - conversation - num value: 0 value_type: integer environment_variables: [] features: file_upload: allowed_file_extensions: - .JPG - .JPEG - .PNG - .GIF - .WEBP - .SVG allowed_file_types: - image allowed_file_upload_methods: - local_file - remote_url enabled: false fileUploadConfig: audio_file_size_limit: 50 batch_count_limit: 5 file_size_limit: 15 image_file_size_limit: 10 video_file_size_limit: 100 workflow_file_upload_limit: 10 image: enabled: false number_limits: 3 transfer_methods: - local_file - remote_url number_limits: 3 opening_statement: '' retriever_resource: enabled: true sensitive_word_avoidance: enabled: false speech_to_text: enabled: false suggested_questions: [] suggested_questions_after_answer: enabled: false text_to_speech: enabled: false language: '' voice: '' graph: edges: - data: isInIteration: false isInLoop: false sourceType: start targetType: code id: 1766130219514-source-1766130229483-target source: '1766130219514' sourceHandle: source target: '1766130229483' targetHandle: target type: custom zIndex: 0 - data: isInIteration: false isInLoop: false sourceType: code targetType: assigner id: 1766130229483-source-1766130649471-target source: '1766130229483' sourceHandle: source target: '1766130649471' targetHandle: target type: custom zIndex: 0 - data: isInLoop: false sourceType: assigner targetType: answer id: 1766130649471-source-1766130271841-target source: '1766130649471' sourceHandle: source target: '1766130271841' targetHandle: target type: custom zIndex: 0 nodes: - data: selected: false title: 用户输入 type: start variables: [] height: 73 id: '1766130219514' position: x: 0 y: 15 positionAbsolute: x: 0 y: 15 sourcePosition: right targetPosition: left type: custom width: 242 - data: code: "\ndef main(arg1: str):\n return {\n \"result\": float(arg1),\n\ \ }\n" code_language: python3 outputs: result: children: null type: number selected: false title: 代码执行 type: code variables: - value_selector: - sys - query value_type: string variable: arg1 height: 52 id: '1766130229483' position: x: 342 y: 26 positionAbsolute: x: 342 y: 26 selected: false sourcePosition: right targetPosition: left type: custom width: 242 - data: answer: '{{#conversation.num#}}' selected: false title: 直接回复 type: answer variables: [] height: 104 id: '1766130271841' position: x: 1026 y: 0 positionAbsolute: x: 1026 y: 0 selected: false sourcePosition: right targetPosition: left type: custom width: 242 - data: items: - input_type: variable operation: over-write value: - '1766130229483' - result variable_selector: - conversation - num write_mode: over-write selected: true title: Variable Assigner type: assigner version: '2' height: 84 id: '1766130649471' position: x: 644 y: 26 positionAbsolute: x: 644 y: 26 selected: true sourcePosition: right targetPosition: left type: custom width: 242 viewport: x: 275.16323495119025 y: 498.7257325320832 zoom: 0.7000000000000001 rag_pipeline_variables: [] ``` Query using the above DSL The following error occurred: not supported value type integer <img width="721" height="552" alt="Image" src="https://github.com/user-attachments/assets/491d00ab-0c8b-4795-bcce-94240911457f" /> If I need to upgrade, which version should I upgrade to? If the problem is still not resolved, please address it as soon as possible. ### ✔️ Expected Behavior No error ### ❌ Actual Behavior error occurred: not supported value type integer <img width="721" height="552" alt="Image" src="https://github.com/user-attachments/assets/491d00ab-0c8b-4795-bcce-94240911457f" />
yindo added the 🐞 bug label 2026-02-21 20:11:16 -05:00
yindo closed this issue 2026-02-21 20:11:16 -05:00
Author
Owner

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

Hi @Ranran-bugmaker! I'm Dosu and I’m helping the dify team.

The "not supported value type integer" error in Dify v1.10.1 happens because older versions enforce strict type matching for variables—if you initialize a variable as an integer, assigning a float (like 1.0654546) will trigger a type error. This is a known issue and has been fixed in newer versions.

To resolve this, upgrade to any Dify version released after November 13, 2025, which includes the fix from PR #27954 and further improvements for integer/float handling in workflows. The latest versions also include robust support for both integer and float types in variable assignment and workflow logic (PR #29035).

If you can't upgrade right away, a workaround is to set your variable's default value to a float (e.g., 0.1) if you expect to assign floats, or store values as strings and convert them in your workflow logic. But upgrading is the recommended and permanent solution.

If you still see the error after upgrading, double-check that your variable types and assigned values match, or let me know for further troubleshooting.

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 19, 2025): <!-- Greeting --> Hi @Ranran-bugmaker! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> The "not supported value type integer" error in Dify v1.10.1 happens because older versions enforce strict type matching for variables—if you initialize a variable as an integer, assigning a float (like 1.0654546) will trigger a type error. This is a known issue and has been fixed in newer versions. To resolve this, upgrade to any Dify version released after November 13, 2025, which includes the fix from [PR #27954](https://github.com/langgenius/dify/pull/27954) and further improvements for integer/float handling in workflows. The latest versions also include robust support for both integer and float types in variable assignment and workflow logic ([PR #29035](https://github.com/langgenius/dify/pull/29035)). If you can't upgrade right away, a workaround is to set your variable's default value to a float (e.g., `0.1`) if you expect to assign floats, or store values as strings and convert them in your workflow logic. But upgrading is the recommended and permanent solution. If you still see the error after upgrading, double-check that your variable types and assigned values match, or let me know for further troubleshooting. <!-- 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/01462114-cf49-49b0-864c-9091e3b71540?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/01462114-cf49-49b0-864c-9091e3b71540?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/01462114-cf49-49b0-864c-9091e3b71540?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/01462114-cf49-49b0-864c-9091e3b71540?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/01462114-cf49-49b0-864c-9091e3b71540?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/01462114-cf49-49b0-864c-9091e3b71540?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/01462114-cf49-49b0-864c-9091e3b71540?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=The%20%22not%20supported%20value%20type%20integer%22%20error%20in%20Dify%20v1.10.1%20happens%20because%20older%20versions%20enforce%20strict%20type%20matching%20for%20variables%E2%80%94if%20you%20initialize%20a%20variable%20as%20an%20integer%2C%20assigning%20a%20float%20%28like%201.0654546%29%20will%20trigger%20a%20type%20error.%20This%20is%20a%20known%20issue%20and%20has%20been%20fixed%20in%20newer%20versions.%0A%0ATo%20resolve%20this%2C%20upgrade%20to%20any%20Dify%20version%20released%20after%20November%2013%2C%202025%2C%20which%20includes%20the%20fix%20from%20%5BPR%20%2327954%5D%28https%3A//github.com/langgenius/dify/pull/27954%29%20and%20further%20improvements%20for%20integer/float%20handling%20in%20workflows.%20The%20latest%20versions%20also%20include%20robust%20support%20for%20both%20integer%20and%20float%20types%20in%20variable%20assignment%20and%20workflow%20logic%20%28%5BPR%20%2329035%5D%28https%3A//github.com/langgenius/dify/pull/29035%29%29.%0A%0AIf%20you%20can%27t%20upgrade%20right%20away%2C%20a%20workaround%20is%20to%20set%20your%20variable%27s%20default%20value%20to%20a%20float%20%28e.g.%2C%20%600.1%60%29%20if%20you%20expect%20to%20assign%20floats%2C%20or%20store%20values%20as%20strings%20and%20convert%20them%20in%20your%20workflow%20logic.%20But%20upgrading%20is%20the%20recommended%20and%20permanent%20solution.%0A%0AIf%20you%20still%20see%20the%20error%20after%20upgrading%2C%20double-check%20that%20your%20variable%20types%20and%20assigned%20values%20match%2C%20or%20let%20me%20know%20for%20further%20troubleshooting.)&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/29934)
Author
Owner

@Reverse-Flash-Kamen commented on GitHub (Dec 29, 2025):

Still has this bug in Dify v1.11.2

@Reverse-Flash-Kamen commented on GitHub (Dec 29, 2025): Still has this bug in Dify v1.11.2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21174