适用版本
OBLOADER V3.3.x 版本。
问题描述
使用 OBLOADER 导入 CSV 文件,报错 obloader [ERROR] Parse the cut file failed as the field count (23) is unmatched with previous lines (24)。
2022-10-14 14:29:48 [ERROR] Parse the cut file failed as the field count (23) is unmatched with previous lines (24). Line: 162962986216c63b27bd902fe36ef56dTCGGZY-2021G247-3********有限公司2022-01-21***hehehehehttp://*gov.cn/Ghttp://h.gov.cn/GS江苏省太仓*********有限公司2022-01-2121\\\\\\\\\12022-02-24-11.08.34.0000002022-02-24-11.08.34.000000
2022-10-14 14:29:48 [ERROR] Load cut file: "/idis_data/ade/SY_CD_ME_BUSS_BIDDER_20300621-6.dat.utf8" failed. Error: Index: 23, Size: 23
问题原因
导入报错的行存在转义字符 ""。使用 OBLOADER V3.3.x 版本导入工具,新增选项 --ignore-escape 用于忽略导入 CUT 格式文件时对字符进行转义操作,默认不忽略。
解决方法
给 OBLOADER 加上选项 --ignore-escape 即可。