简体   繁体   中英

Values not getting added in Add Datarow activity in UI path

I am trying to add certain values in the Add datarow activity in the UI path from the ArrayRow input. But when i pass the values example {"1","2","3"}, it shows error ';' expected. And when I run the application I get a runtime error. attaching screenshots

在此处输入图片说明

在此处输入图片说明

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:

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM