Update chunk setting failed #19977

Closed
opened 2026-02-21 20:05:13 -05:00 by yindo · 3 comments
Owner

Originally created by @JadynWong on GitHub (Oct 28, 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.9.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Use a exist document.
Update chunk setting.
Click Save&Process button.

Image

✔️ Expected Behavior

Documents can be reapplied with new chunk rules.

Actual Behavior

Get 500 error code.

Originally created by @JadynWong on GitHub (Oct 28, 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.9.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Use a exist document. Update chunk setting. Click Save&Process button. <img width="1920" height="945" alt="Image" src="https://github.com/user-attachments/assets/77b53b69-9d7d-4da5-8b9b-9ce1a3c40b6e" /> ### ✔️ Expected Behavior Documents can be reapplied with new chunk rules. ### ❌ Actual Behavior Get 500 error code.
yindo added the 🐞 buggood first issue labels 2026-02-21 20:05:13 -05:00
yindo closed this issue 2026-02-21 20:05:13 -05:00
Author
Owner
@JadynWong commented on GitHub (Oct 28, 2025): May be related to PR #25715. `data_source` is passed without updating the chunk settings. https://github.com/langgenius/dify/blob/3395297c3e716f42dab4046a05b737c97cda775a/api/controllers/console/datasets/datasets_document.py#L295-L309 https://github.com/langgenius/dify/blob/3395297c3e716f42dab4046a05b737c97cda775a/api/services/dataset_service.py#L1419 https://github.com/langgenius/dify/blob/3395297c3e716f42dab4046a05b737c97cda775a/web/app/components/datasets/create/step-two/index.tsx#L423-L433 <img width="1581" height="808" alt="Image" src="https://github.com/user-attachments/assets/dff70077-c9da-48ad-90f7-aec84273637c" />
Author
Owner

@crazywoola commented on GitHub (Oct 28, 2025):

Since you have located this issue, are you interested in fixing this?

@crazywoola commented on GitHub (Oct 28, 2025): Since you have located this issue, are you interested in fixing this?
Author
Owner

@JadynWong commented on GitHub (Oct 28, 2025):

Since you have located this issue, are you interested in fixing this?

I'm not good at Python. All I can do is remove assert knowledge_config.data_source, but I think this isn't an good solution.

@JadynWong commented on GitHub (Oct 28, 2025): > Since you have located this issue, are you interested in fixing this? I'm not good at Python. All I can do is remove `assert knowledge_config.data_source`, but I think this isn't an good solution.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19977