# I want to add multiple rows to a DataTable I've created

**URL:** <https://forum.uipath.com/t/topic/5793416>\
**Category:** StudioX\
**Created:** [December 1, 2026, 5:33am UTC](https://forum.uipath.com/t/topic/5793416 "2026-12-01T05:33:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teo](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Teo](https://forum.uipath.com/u/Teo)\
**Post date:** [December 1, 2026, 5:33am UTC](https://forum.uipath.com/t/topic/5793416/1 "2026-12-01T05:33:25Z")

</div>

Thank you for your continued support.

Is it possible to add multiple rows at once to a table created using Build Data Table?

Currently, the following process within a loop works:  
１．Build Data Table  
２．Extract Table Data from the application to get a data table  
３．Filter Data Table to narrow down the results  
４．Add only the first row to the data table created in step 1 using Add Data Row

However, step 3 is no longer necessary, and I need to store all the rows in the data table.

I’m sorry I can’t provide screenshots or other materials, which may make this difficult to understand.  
I’d appreciate any advice you can offer.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [December 1, 2026, 5:41am UTC](https://forum.uipath.com/t/topic/5793416/2 "2026-12-01T05:41:37Z")

</div>

Hello

If the schema of DataTable 1 is the same as that of the DataTable extracted from the table, then specifying 1 in the “Input DataTable” property of the table extraction activity will automatically add it. (If repeating this, you need to set the previous output here.)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/e/d/6/ed657b20c7bdbdc754ab6863a0160c9752f6a405.png)

The properties may differ depending on the type of table extraction activity. (For IN/OUT types, specify 1 there.)

Alternatively, there is also a MergeDataTable activity, so you could merge them that way.

---

<div class="post-metadata">

**Author:** ![MayureshOfficial\_45](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mayureshofficial_45/32/573757_2.png) [@MayureshOfficial\_45](https://forum.uipath.com/u/MayureshOfficial_45)\
**Post date:** [December 1, 2026, 6:05am UTC](https://forum.uipath.com/t/topic/5793416/3 "2026-12-01T06:05:34Z")

</div>

Hi @Teo,

As @Yoichi mentioned, the Merge Data Table activity is the easiest way to replace your Add Data Row step here. Just set the Source property to the DataTable from Extract Table Data, and set Destination to the DataTable you created in Build Data Table. That will append all extracted rows at once without needing a loop.

One quick thing to watch out for is the column structure—if the column names and types match between both tables, Merge Data Table works right out of the box (you can set MissingSchemaAction to Ignore if you only want to keep the columns defined in your Build Data Table). If the column names are different, you can instead use a For Each Row in Data Table on the extracted table and place Add Data Row inside it, passing CurrentRow.ItemArray into the ArrayRow property.

Also, just make sure your Build Data Table activity is placed outside (before) your main loop so the accumulated rows don’t get reset on each iteration.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![jagdish](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jagdish/32/104356_2.png) [@jagdish](https://forum.uipath.com/u/jagdish)\
**Post date:** [December 1, 2026, 11:56am UTC](https://forum.uipath.com/t/topic/5793416/4 "2026-12-01T11:56:19Z")

</div>

Hi @Teo,

@Yoichi and @MayureshOfficial_45 already covered the two main ways (`Input DataTable` on Extract Table Data, and **Merge Data Table** ). Since you’re in **StudioX** , one quick practical detail that trips people up when merging extracted web tables into a custom `Build Data Table`:

1. **Make sure the column types match, not just the names:**  **Extract Table Data** outputs every column as `String` by default. If your **Build Data Table** has `Int32` or `DateTime` columns, **Merge Data Table** will throw a type mismatch error unless both tables use matching column types (or you map/convert them inside a **For Each Row in Data Table** + **Add Data Row** ).

2. **Don’t even need `Build Data Table` if you just want to combine multiple extractions:** You can initialize your master table directly from the first extraction (or pass the same `DataTable` variable into both the **Input** and **Output** properties of **Extract Table Data** inside your loop), and it will keep appending rows automatically.

3. **Keep initialization outside the loop:** Place **Build Data Table** (or your initial table setup) _before_ the loop—otherwise it resets to 0 rows on every iteration.

---

<div class="post-metadata">

**Author:** ![Sunil4](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sunil4/32/574819_2.png) [@Sunil4](https://forum.uipath.com/u/Sunil4)\
**Post date:** [December 1, 2026, 12:11pm UTC](https://forum.uipath.com/t/topic/5793416/5 "2026-12-01T12:11:42Z")

</div>

Maybe restarting the workflow could help.

---

<div class="post-metadata">

**Author:** ![Teo](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Teo](https://forum.uipath.com/u/Teo)\
**Post date:** [December 1, 2026, 12:34pm UTC](https://forum.uipath.com/t/topic/5793416/6 "2026-12-01T12:34:54Z")

</div>

@Yoichi,  
Thank you as always.

I couldn’t figure out the table extraction properties, but it looks like I can achieve what I have in mind by merging data tables! Thank you.

---

<div class="post-metadata">

**Author:** ![Teo](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Teo](https://forum.uipath.com/u/Teo)\
**Post date:** [December 1, 2026, 12:36pm UTC](https://forum.uipath.com/t/topic/5793416/7 "2026-12-01T12:36:31Z")

</div>

@MayureshOfficial_45  
Thank you for your advice.  
I think I may be able to do what I want using the Merge Data Table activity.  
Thank you for taking the time to explain.

---

<div class="post-metadata">

**Author:** ![Teo](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Teo](https://forum.uipath.com/u/Teo)\
**Post date:** [December 1, 2026, 12:38pm UTC](https://forum.uipath.com/t/topic/5793416/8 "2026-12-01T12:38:30Z")

</div>

@jagdish  
Thank you for the detailed and clear explanation.  
It looks like I may be able to do what I want using the Merge Data Table activity, so I’ll give it a try.  
Thank you.

---

<div class="post-metadata">

**Author:** ![MayureshOfficial\_45](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mayureshofficial_45/32/573757_2.png) [@MayureshOfficial\_45](https://forum.uipath.com/u/MayureshOfficial_45)\
**Post date:** [December 1, 2026, 1:52pm UTC](https://forum.uipath.com/t/topic/5793416/9 "2026-12-01T13:52:03Z")

</div>

Glad to help, @Teo! Thanks for marking the solution, and feel free to ask if you hit any snags with the Merge Data Table setup.

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [December 1, 2026, 11:43pm UTC](https://forum.uipath.com/t/topic/5793416/10 "2026-12-01T23:43:32Z")

</div>

> [@Teo](#):
>
> I couldn’t find the extraction properties, but

This may be helpful. The table extraction activity and its configurable properties vary depending on the version of the UiAutomation activities package. The above is the latest version; if you’re using a slightly older version, it should look like this.  
If you set this DataTable property to a DataTable that already contains values, the table extraction activity will automatically merge the extracted data with the existing data. (However, the schemas of the input data tables must match.)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/4/e/6/4e6cb65a7568b1cfdbd39eb38242095bcfd4f6d0.png)

---

<div class="post-metadata">

**Author:** ![Teo](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Teo](https://forum.uipath.com/u/Teo)\
**Post date:** [December 2, 2026, 12:18am UTC](https://forum.uipath.com/t/topic/5793416/11 "2026-12-02T00:18:02Z")

</div>

@Yoichi,  
Thank you very much for your kind response.  
I’ll give it a try!
