# Table component error after deleting dataset row

**URL:** <https://forum.inductiveautomation.com/t/table-component-error-after-deleting-dataset-row/77543>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 7, 2023, 10:45pm UTC](https://forum.inductiveautomation.com/t/table-component-error-after-deleting-dataset-row/77543 "2023-08-07T22:45:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [August 7, 2023, 10:45pm UTC](https://forum.inductiveautomation.com/t/table-component-error-after-deleting-dataset-row/77543/1 "2023-08-07T22:45:14Z")

</div>

I have a perspective table component that shows this message when i try to remove the last row from the dataset:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/d/ed5f90611364a0e2addac17345e1f5a8f720b084.png)

This is the code from my delete row button.

```auto
	data = self.getSibling("Table").props.data
	row = self.getSibling("Table").props.selection.selectedRow
	
	self.getSibling("Table").props.selection.selectedColumn = None
	self.getSibling("Table").props.selection.selectedRow = None
	data = system.dataset.deleteRow(data, row)
	self.getSibling("Table").props.data = data

```

I am hoping someone can point me in the right direction, i've tried everything i can think of and nothing has resolved the issue. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 7, 2023, 10:59pm UTC](https://forum.inductiveautomation.com/t/table-component-error-after-deleting-dataset-row/77543/2 "2023-08-07T22:59:03Z")

</div>

Is data actually a dataset of is it an object?  
You could put `type(data)` on line 2 to check. Monitor the result at the bottom of the binding window.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [August 7, 2023, 11:07pm UTC](https://forum.inductiveautomation.com/t/table-component-error-after-deleting-dataset-row/77543/3 "2023-08-07T23:07:33Z")

</div>

I believe so, says it is BasicStreamingDataset. The remove code works fine for all but the last row.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [August 7, 2023, 11:23pm UTC](https://forum.inductiveautomation.com/t/table-component-error-after-deleting-dataset-row/77543/4 "2023-08-07T23:23:23Z")

</div>

I almost don't want to tell you what it was.

Idiot that I am, I was not noticing that I had enabled single click edit and just so happened to have clicked into an editable cell every time i selected the last row. Thanks for the help!
