【GC6.2.2】GC加载Spreadjs导出json,执行ToJson()异常
本帖最后由 Richard.Ma 于 2024-1-6 15:16 编辑产品:GcExcel
版本:v6.2.2
问题编号:DOCXLS-9406
LastReview:2024-1-5
最新进展:在V7.0.1已经修复
spreadjs导出内容:
{"version":"16.2.2","name":"","sheetCount":1,"tabStripVisible":false,"customList":[],"sheets":{"Sheet1":{"name":"Sheet1","isSelected":true,"columnCount":26,"activeRow":2,"activeCol":3,"visible":1,"theme":"Office","data":{"dataTable":{"1":{"0":{"value":2},"1":{"value":"1","formula":{"si":0}},"3":{"value":"(需求人数)","tag":{"id":"a47e50e1-1555-4409-ab10-7614bcdc1189","name":"需求人数","factType":-1,"cellOperate":{"factType":0,"timeCollect":0,"statisticalType":0},"tagType":2,"isHorExtendedType":0,"isMergeSameValue":false,"fieldDataType":2,"tips":"字段:\n招聘职位-需求人数","dbFactType":-1}},"4":{"value":{"_calcError":"#NUM!","_code":36},"formula":{"si":0}},"7":{"value":"(需求总数)","tag":{"id":"86e2821c-1b75-49a7-b8d1-2b2d5553b82a","name":"需求总数","factType":3,"cellOperate":{"statisticalType":0},"tagType":8,"fieldDataType":1,"tips":"字段:\n招聘职位-需求总数","dbFactType":3}}}},"defaultDataNode":{"style":{"vAlign":1,"font":"13.3333px SimSun","themeFont":"Body"}}},"rowHeaderData":{"defaultDataNode":{"style":{"themeFont":"Body"}}},"colHeaderData":{"defaultDataNode":{"style":{"themeFont":"Body"}}},"defaultData":{},"leftCellIndex":0,"topCellIndex":0,"selections":{"0":{"row":2,"col":3,"rowCount":1,"colCount":1},"length":1},"rowOutlines":{"items":[]},"columnOutlines":{"items":[]},"comments":[{"rowIndex":1,"colIndex":3,"text":"字段:\n招聘职位-需求人数","width":150,"height":150,"commentState":3,"zIndex":897},{"rowIndex":1,"colIndex":7,"text":"字段:\n招聘职位-需求总数","width":150,"height":150,"commentState":3,"zIndex":898}],"cellStates":{},"states":{},"outlineColumnOptions":{},"autoMergeRangeInfos":[],"shapeCollectionOption":{"snapMode":0},"sharedFormulas":{"0":{"formula":"IMLOG2(A2)","baseRow":1,"baseColumn":1,"lastRow":1,"lastColumn":4},"nextIndex":1},"printInfo":{"paperSize":{"width":850,"height":1100,"kind":1}},"frozenlineColor":"#0CC0C9","index":0,"order":0}},"sheetTabCount":0,"namedPatterns":{}}
GC异常信息:
执行异常代码:
var jsonV2 = workbook.ToJson();
请协助排查一下是json哪个节点值不正确
本帖最后由 Ellia.Duan 于 2023-12-8 14:01 编辑
您好,您的问题已复现。将深入调研下此问题,待有进展,将及时联系您。
DOCXLS-9406
以及想和您确认下,您目前使用的是GcExcel .Net版本,还是GcExcel .Net及java版本一起使用。
Ellia.Duan 发表于 2023-12-8 13:52
您好,您的问题已复现。将深入调研下此问题,待有进展,将及时联系您。
DOCXLS-9406
GCExcel .net版本 Ellia.Duan 发表于 2023-12-8 13:52
您好,您的问题已复现。将深入调研下此问题,待有进展,将及时联系您。
DOCXLS-9406
请确认一下是哪个json节点导致的问题,是否可以通过修改json,让gc先可以正常执行 您好,目前调研原因是在导出 JSON 时,正在计算单元格中的公式。
在单元格 E2 的 IMLOG2 公式中,参数不是数字,并且在分析参数时发生错误。此时,它应该返回一个 #NUM!错误,而不是抛出异常。
所以,我们将修复这个问题,我将此贴移至bug反馈区。 Ellia.Duan 发表于 2023-12-8 16:05
您好,目前调研原因是在导出 JSON 时,正在计算单元格中的公式。
在单元格 E2 的 IMLOG2 公式中,参数不是 ...
有没有可以临时方案可以解决该问题,保留公式,不报错就可以 这个目前没有,只能通过修复解决。目前计划在V7.0.1版本进行修复。 本帖最后由 Ellia.Duan 于 2024-1-18 16:39 编辑
该问题已在v7.0.1版本修复,请更新版本后测试
页:
[1]