Skip to content

[Bug] 导入单元格内容过大的CSV文件,页面显示导入成功,但字符数、分段数为0,后台报field larger than field limit(131072) #6756

Description

@Hu-MeiXi

Contact Information

No response

MaxKB Version

2.10.15

Problem Description

导入包含超大单元格内容的 CSV 文件,前端页面显示文件导入成功,但是文档字符数为 0、分段数量为 0,没有解析出实际内容。

_csv.Error: field larger than field limit (131072)
File "/opt/maxkb-app/community/apps/common/handle/impl/table/csv_parse_table_handle.py", line 43, in get_content

Steps to Reproduce

  1. 准备 CSV 文件,文件中某个单元格文本大小超过 131072 字节(128KB)
  2. 在工作流知识库中导入该 CSV 文件
  3. 页面展示导入状态成功,但是字符数、分段都是 0
  4. 查看服务日志,抛出 field larger than field limit (131072) 异常

The expected correct result

No response

Related log output

Additional Information

Image Image Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions