0

我正在尝试在 ArrayRow 输入的 UI 路径中的 Add datarow 活动中添加某些值。但是当我传递值示例 {"1","2","3"} 时,它显示错误';' 预期的。当我运行应用程序时,我得到一个运行时错误。附上截图

在此处输入图像描述

在此处输入图像描述

4

1 回答 1

0

When it comes to Properties of Add Data Row activity:

  1. ArrayRow Input Property needs to be an Object, so you need to pass the values via a variable.
  2. 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:

enter image description here

Variables are the following:

enter image description here

Initialize your DataTable variable if you have not done it before in your Workflow:

enter image description here

And then populate your Add Data Row activity as follow:

enter image description here

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.

于 2019-07-18T15:41:32.097 回答