# Add data row

**URL:** <https://forum.uipath.com/t/add-data-row/30249>\
**Category:** Help\
**Tags:** datatable, system, activities\
**Created:** [April 24, 2018, 3:00pm UTC](https://forum.uipath.com/t/add-data-row/30249 "2018-04-24T15:00:21Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 24, 2018, 3:00pm UTC](https://forum.uipath.com/t/add-data-row/30249/1 "2018-04-24T15:00:22Z")

</div>

Hi All, I have built a data table with 3 Columns namely Name, Account number and Amount  
I want to add data row to it using for each.  
I have created 3 variables and I am using Add data row with Array row as { Variable1,Variable2,Variable3} but it is not working. can any one help me out please.

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [April 24, 2018, 3:07pm UTC](https://forum.uipath.com/t/add-data-row/30249/2 "2018-04-24T15:07:04Z")

</div>

Hi @harinathreddy.yn,  
Can you share the source if possible.

Regards  
Balamurugan

---

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 24, 2018, 3:18pm UTC](https://forum.uipath.com/t/add-data-row/30249/3 "2018-04-24T15:18:19Z")

</div>

I cannot share the source as it is confidential, I am giving a screen shot for better understanding.  
In message box I can see the necessary details but same is not adding to datatable.

 ![Capture1](https://global.discourse-cdn.com/uipath/original/3X/1/c/1c3aab052ca4e775a78e91bd2c03cf08e6665643.PNG)

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [April 24, 2018, 3:30pm UTC](https://forum.uipath.com/t/add-data-row/30249/4 "2018-04-24T15:30:54Z")

</div>

Hi @harinathreddy.yn,  
I have attached a sample project for your situation.

File : [Add data row.zip](https://global.discourse-cdn.com/uipath/original/3X/d/2/d2055bc8dae74d825fc16f15fcace1059e4579cd.zip) (13.3 KB)

Regards  
Balamurugan

---

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 24, 2018, 3:38pm UTC](https://forum.uipath.com/t/add-data-row/30249/5 "2018-04-24T15:38:11Z")

</div>

thanks you so much for quick response, I will go through it and update you the result.

---

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 24, 2018, 3:48pm UTC](https://forum.uipath.com/t/add-data-row/30249/6 "2018-04-24T15:48:01Z")

</div>

Hi Balu, You are iterating through excel and I am iterating through a string array and I am assigning necessary elements into a variable and then writing to a data row. I have used same method in other program but here it is not working, let me try to share the sample code which I am trying

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [April 24, 2018, 3:49pm UTC](https://forum.uipath.com/t/add-data-row/30249/7 "2018-04-24T15:49:02Z")

</div>

Sure

---

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 25, 2018, 8:05am UTC](https://forum.uipath.com/t/add-data-row/30249/8 "2018-04-25T08:05:50Z")

</div>

Bro If I write a sample code it is working but it is not working inside my main code

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [April 25, 2018, 8:20am UTC](https://forum.uipath.com/t/add-data-row/30249/9 "2018-04-25T08:20:00Z")

</div>

Hi @harinathreddy.yn,  
What is the result that u r getting like empty row or an error.  
Regards  
Balamurugan

---

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 25, 2018, 8:20am UTC](https://forum.uipath.com/t/add-data-row/30249/10 "2018-04-25T08:20:28Z")

</div>

I am getting empty row

---

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 25, 2018, 8:26am UTC](https://forum.uipath.com/t/add-data-row/30249/11 "2018-04-25T08:26:54Z")

</div>

Now I am trying to write it in a different artifact and import but I am facing issues with import  
Below I have attached a 2 samples main and Invoke where I am invoking the invoke file but my argument value is empty. Can you tell me what is wrong  
[Main.xaml](https://global.discourse-cdn.com/uipath/original/3X/c/6/c6e11b1c9fee50af97a8bce7573dcb40fb0819eb.xaml) (4.9 KB)  
[Invoke1.xaml](https://global.discourse-cdn.com/uipath/original/3X/2/f/2fb4daeb5419dbebf0290f8911c1b2b0142871e8.xaml) (4.5 KB)

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [April 25, 2018, 8:58am UTC](https://forum.uipath.com/t/add-data-row/30249/12 "2018-04-25T08:58:53Z")

</div>

Hi @harinathreddy.yn,

yes . You forget to pass the import argument in the main.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/8/2/829886e891f15ef03b4578c0d3187a0e82efeac9.png)  
Regards  
Balamurugan

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [April 25, 2018, 9:04am UTC](https://forum.uipath.com/t/add-data-row/30249/13 "2018-04-25T09:04:57Z")

</div>

HI @harinathreddy.yn,  
I have attached the source with the changes.  
File : [AddRow.zip](https://global.discourse-cdn.com/uipath/original/3X/5/b/5b2b4005bf272b08b2945ef2192e07c5a8a7764a.zip) (2.6 KB)

Regards  
Balamurugan

---

<div class="post-metadata">

**Author:** ![harinathreddy.yn](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harinathreddy.yn/32/213599_2.png) [@harinathreddy.yn](https://forum.uipath.com/u/harinathreddy.yn)\
**Post date:** [April 25, 2018, 10:09am UTC](https://forum.uipath.com/t/add-data-row/30249/14 "2018-04-25T10:09:26Z")

</div>

Great bro it is working when I give it as argument1 in value place but will it not take automatically

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [October 29, 2018, 9:21am UTC](https://forum.uipath.com/t/add-data-row/30249/15 "2018-10-29T09:21:03Z")

</div>


