From 0b48a2e0d101808e6d5514b800535a66cbb5bc8b Mon Sep 17 00:00:00 2001 From: donblack01 Date: Fri, 28 Mar 2025 09:33:49 +0800 Subject: [PATCH] Fix: When Excel is a formula, the parsed result is a formula, but cannot be correctly parsed as a value type (#6613) ### What problem does this PR solve? Fix: When Excel is a formula, the parsed result is a formula, but cannot be correctly parsed as a value type ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: tangyu <1@1.com> --- deepdoc/parser/excel_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepdoc/parser/excel_parser.py b/deepdoc/parser/excel_parser.py index 2e53e5c4a..8eb726a08 100644 --- a/deepdoc/parser/excel_parser.py +++ b/deepdoc/parser/excel_parser.py @@ -45,7 +45,7 @@ class RAGFlowExcelParser: raise Exception(f"****wxy: Failed to parse CSV and convert to Excel Workbook: {e_csv}") try: - return load_workbook(file_like_object) + return load_workbook(file_like_object,data_only= True) except Exception as e: logging.info(f"****wxy: openpyxl load error: {e}, try pandas instead") try: