You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

UiPath自动化BC30333错误求助:Integer()无法转为Object()

解决UiPath中ArrayRow的BC30333错误

遇到的错误为:Argument 'ArrayRow':BC30333: Value of type 'Integer()' cannot be converted to 'Object()' because 'Integer' is not a reference type,核心原因是UiPath的ArrayRow参数要求传入Object类型数组,而Integer属于值类型,直接传入{x,y}这类Integer数组会触发类型转换报错,以下是三种直接可行的解决办法:

  • 显式转换每个Integer元素为Object:用CObj()函数包装每个数值,写法为 {CObj(x), CObj(y)}
  • 直接声明Object类型数组:明确指定数组类型为Object,写法为 New Object(){x, y},Integer值会自动装箱为Object类型
  • 用LINQ批量转换数组类型:通过Cast方法将整个Integer数组转为Object数组,写法为 {x, y}.Cast(Of Object).ToArray()

内容的提问来源于stack exchange,提问作者ben ben

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.18 06:13:09