找回密码
 立即注册

QQ登录

只需一步,快速开始

罗耀斌

金牌服务用户

116

主题

408

帖子

1288

积分

金牌服务用户

积分
1288
QQ
罗耀斌
金牌服务用户   /  发表于:2024-12-6 10:32  /   查看:108  /  回复:5
本帖最后由 罗耀斌 于 2024-12-18 12:46 编辑


【=IF(CJ11=AJ11,0,IF(CJ11<>AJ11,IF(CJ11>0,2,IF(CJ11=0,1,"其他情况"))))】
同事加了公式,工具直接发布不了了,公式数据类型问题没考虑到是有问题但已经去掉了,但还是发布不了




## Overview
- Version: 10.0.102.0
- Exception: `Newtonsoft.Json.JsonSerializationException`
- DateTime: 2024/12/6 10:30:28
- Email: 527124979@qq.com
- Tags: #CN, #COLLABORATION

## Exception
```json
{
  "ClassName": "Newtonsoft.Json.JsonSerializationException",
  "Message": "Error getting value from 'Row' on 'Forguncy.Common.FormulaCellLocation'.",
  "Data": {
    "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
    "System.Object": null
  },
  "InnerException": {
    "$type": "GrapeCity.CalcEngine.CalcParseException, GrapeCity.WPF.CalcEngine",
    "Message": "Invalid cell reference or name.
Error offset:0",
    "ErrorOffset": 0,
    "Data": {
      "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib"
    },
    "InnerException": null,
    "HelpLink": null,
    "Source": "GrapeCity.WPF.CalcEngine",
    "HResult": -2146233088,
    "StackTrace": "   at GrapeCity.CalcEngine.CalcParser.BuildCellReferenceOrNameExpressions(CalcParserContext context, String value, Int32 index)
   at GrapeCity.CalcEngine.CalcParser.BuildExpressionNode(CalcParserContext context, FormulaToken token)
   at GrapeCity.CalcEngine.CalcParser.PaseToBinaryOperatorList(CalcParserContext context, List`1 tokens)
   at GrapeCity.CalcEngine.CalcParser.BuildExpressionTree(CalcParserContext context, List`1 tokens)
   at jx.GetCellExpress(FormulaReferObject formulaReferObject)
   at Forguncy.Common.FormulaCellLocation.GetCellExpress()
   at Forguncy.Common.FormulaCellLocation.get_Row()
   at lambda_method6702(Closure , Object )
   at Newtonsoft.Json.Serialization.ExpressionValueProvider.GetValue(Object target)"
  },
  "HelpURL": null,
  "StackTraceString": "   at Newtonsoft.Json.Serialization.ExpressionValueProvider.GetValue(Object target)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
   at my.c.cme()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at my.clj(Worksheet a, mx b, Int32 c)
   at my.clc(PublishType a, TaskInfo b, PublishSettingsViewModel c)
   at my.GenerateAllPagesAsync(PublishType publishType, TaskInfo taskInfo, PublishSettingsViewModel settings)
   at my.GenerateAllPagesAsync(PublishType publishType, TaskInfo taskInfo, PublishSettingsViewModel settings)
   at Forguncy.Views.RibbonView.BrowserHomeExecutedWithProgressbarAsync(IBrowser browser, TaskInfo taskInfo, Boolean debug)
   at Forguncy.Views.RibbonView.<>c__DisplayClass402_0.<<BrowserHomeExecutedWithProgressbarAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at WPFBase.Common.TaskInfoHelper.CreateAThreadCrossedAutoClosedWindowAsync(TaskInfo taskInfo, Window owner, Func`1 action)
   at Forguncy.Views.RibbonView.BrowserHomeExecutedWithProgressbarAsync(IBrowser browser, TaskInfo taskInfo, Boolean debug)
   at Forguncy.Views.RibbonView.BrowserHome_Click(Object sender, RoutedEventArgs routedEventArgs)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": -2146233088,
  "Source": "Newtonsoft.Json",
  "WatsonBuckets": null
}
```

## EventLog
- 10:30:23 `MouseL`:Window:cloud-stock-system-master - 活字格 (10.0.102.0)->RibbonView->RibbonGroupBox:在浏览器中打开->ToggleButton:开始->Image:/Start_32.png
- 10:30:09 `MouseL`:Window:打开协作工程->Button:确定
- 10:30:09 `KeyDown`:Control+V
- 10:30:09 `MouseL`:Window:打开协作工程->TextBox:
- 10:30:08 `MouseL`:Window:活字格 (10.0.102.0)->打开协作工程

## ActionList



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

5 个回复

倒序浏览
罗耀斌
金牌服务用户   /  发表于:2024-12-6 10:32:45
沙发
怎么样才能定位到异常?
回复 使用道具 举报
Erik.Xue讲师达人认证 悬赏达人认证 活字格认证 Wyn认证
超级版主   /  发表于:2024-12-6 14:27:45
板凳
您好,大佬,需要提供下协同文件。

这边需要工程文件调查下。
回复 使用道具 举报
Levi.Zhang
超级版主   /  发表于:5 天前
地板
大佬,请问这个问题是否解决呢?
如果没解决话可以尝试只保留部分公式,再测试一下试试呢~
回复 使用道具 举报
罗耀斌
金牌服务用户   /  发表于:4 天前
5#
Levi.Zhang 发表于 2024-12-17 17:26
大佬,请问这个问题是否解决呢?
如果没解决话可以尝试只保留部分公式,再测试一下试试呢~

问题还在,但不管了页面删除了
回复 使用道具 举报
Levi.Zhang
超级版主   /  发表于:4 天前
6#
好的大佬,感谢您对活字格的支持。
后面有问题,欢迎继续发新帖交流
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部