rpa - 在 UI 路径中的 Add Datarow 活动中未添加值
问题描述
我正在尝试在 ArrayRow 输入的 UI 路径中的 Add datarow 活动中添加某些值。但是当我传递值示例 {"1","2","3"} 时,它显示错误';' 预期的。当我运行应用程序时,我得到一个运行时错误。附上截图
解决方案
When it comes to Properties of Add Data Row activity:
- ArrayRow Input Property needs to be an Object, so you need to pass the values via a variable.
- DataTable Input needs to contain a Table that has been initialized already, if the Table does not exist UiPath will generate an error
Please check the solution below as per your values:
Variables are the following:
Initialize your DataTable variable if you have not done it before in your Workflow:
And then populate your Add Data Row activity as follow:
If you run this Workflow in Output pane you will see the value of first row in DataTable that will be 1,2,3.
Hope these information will be useful.
推荐阅读
- .net - 进程无权写入 Windows 注册表
- ruby-on-rails - 如何创建一个正则表达式来避免 ruby 中的 url
- google-bigquery - BigQuery:如何将字段添加到 REPEATED 记录?
- java - 创建 kubernetes 部署时 Quarkus RestClient 属性的 env 值无效
- excel - 如何在 Excel VBA 中自动增加单元格引用,以便在每一列中运行宏?
- api - 如何在flutter中调用initState中的异步方法
- python - 字典列表的差异
- django - 将父对象传递给子对象的 CreateView
- environment-variables - 如何通过设置环境变量的 Windows 终端启动 Git Bash?
- r - 如何在 R 中为多列创建分层采样