Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in RPA by (5.3k points)

I am trying to add certain values in the Add datarow activity in 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. 

1 Answer

0 votes
by (9.5k points)

i think the issue is with  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.

Related questions

0 votes
1 answer
asked Jul 10, 2019 in RPA by noah kapoor (5.3k points)
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...