# Trying to Add Row in the Template Repeater Dataset

**URL:** <https://forum.inductiveautomation.com/t/trying-to-add-row-in-the-template-repeater-dataset/35702>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 16, 2020, 2:01pm UTC](https://forum.inductiveautomation.com/t/trying-to-add-row-in-the-template-repeater-dataset/35702 "2020-06-16T14:01:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [June 16, 2020, 2:01pm UTC](https://forum.inductiveautomation.com/t/trying-to-add-row-in-the-template-repeater-dataset/35702/1 "2020-06-16T14:01:38Z")

</div>

Trying to create dynamic template repeater through scripting which works fine at some extent. But, can’t seem to add new Row:

Current State of template parameters property of Repeater :

```auto
Initialized Value of self.templates - Dataset [4R ⅹ 7C]
[<Row:7 columns>, <Row:7 columns>, <Row:7 columns>, <Row:7 columns>]

```

Trying to add Following Row:

```auto
remix_compound_id, Remix Compound, 4, -1, Dataset [1990R ⅹ 2C], False, ''

```

But, when I try to Either add with  
`System.dataset.addRow` or `system.dataset.toDataSet(column, rows)`  
it errors out as :

```auto
java.lang.ClassCastException: java.lang.ClassCastException: class org.python.core.PyObjectDerived cannot be cast to class org.python.core.PySequence (org.python.core.PyObjectDerived and org.python.core.PySequence are in unnamed module of loader java.net.URLClassLoader @38a26330)

```

Any Idea ?  
Many thanks in Advance

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [June 16, 2020, 2:52pm UTC](https://forum.inductiveautomation.com/t/trying-to-add-row-in-the-template-repeater-dataset/35702/2 "2020-06-16T14:52:45Z")

</div>

Anyone ?

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [June 16, 2020, 3:00pm UTC](https://forum.inductiveautomation.com/t/trying-to-add-row-in-the-template-repeater-dataset/35702/3 "2020-06-16T15:00:37Z")

</div>

Can you post the dataset behind the template repeater and the script you’re using to add a row?

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [June 16, 2020, 5:44pm UTC](https://forum.inductiveautomation.com/t/trying-to-add-row-in-the-template-repeater-dataset/35702/4 "2020-06-16T17:44:36Z")

</div>

@zacht, Amm, I just realized I was trying to append list instead of list of lists !!  
Got it working, thanks !!
