# Table clearing error

**URL:** <https://forum.inductiveautomation.com/t/table-clearing-error/64027>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 13, 2022, 6:29pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027 "2022-09-13T18:29:41Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![william.ivey](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@william.ivey](https://forum.inductiveautomation.com/u/william.ivey)\
**Post date:** [September 13, 2022, 6:29pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/1 "2022-09-13T18:29:41Z")

</div>

When trying to clear the selection on a table in Perspective, I am getting the error below. Does anyone know if this is a bug with the software? (using version 8.1.19 here)

13:24:33.701 [Browser Thread: 57184] ERROR Perspective.Designer.Workspace - level: LEVEL\_ERROR  
message: “onerrorLogger: {"stack":"TypeError: Cannot read property 'Line\_Path' of undefined\n at f ([http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1381080](http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1381080))\n at Object.m [as getCellValue] ([http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1381132](http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1381132))\n at [http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1327611\\n](http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1327611%5C%5Cn) at Array.reduce ()\n at D.getAllRowData ([http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1327588](http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1327588))\n at D.handleSingleSelection ([http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1350610](http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1350610))\n at D.handleBodyClick ([http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1346100](http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveComponents.c3ea7dac07ea01633e2b.js:2:1346100))\n at Object.ki ([http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js:176:167](http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js:176:167))\n at ji ([http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js:13:49](http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js:13:49))\n at mi ([http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js:13:103](http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js:13:103))","message":"Cannot read property 'Line\_Path' of undefined","name":"TypeError","logData":{"msg":"Uncaught Exception","errorMsg":"Uncaught TypeError: Cannot read property 'Line\_Path' of undefined","url":"[http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js\",\"line](http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js%5C%22,%5C%22line) number":32,"column":337}}”  
line\_number: 2  
source: “[http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveClient.fd30fcd8486628b272de.js](http://srv14aigd02.netit.itc.com/res/perspective/js/PerspectiveClient.fd30fcd8486628b272de.js)”

13:24:33.701 [Browser Thread: 57184] ERROR Perspective.Designer.Workspace - level: LEVEL\_ERROR  
message: “Uncaught TypeError: Cannot read property 'Line\_Path' of undefined”  
line\_number: 32  
source: “[http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js](http://srv14aigd02.netit.itc.com/res/perspective/js/react-dom-16.14.0.js)”

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [September 13, 2022, 7:14pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/2 "2022-09-13T19:14:01Z")

</div>

post your script, here are some hints from your error message

```auto
Cannot read property 'Line_Path' of undefined
...
"line number":32,"column":337}}”
...

```

---

<div class="post-metadata">

**Author:** ![william.ivey](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@william.ivey](https://forum.inductiveautomation.com/u/william.ivey)\
**Post date:** [September 13, 2022, 7:24pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/3 "2022-09-13T19:24:46Z")

</div>

At the point this is firing, there is no logic pointed at or using those properties.

There are no event scripts associated to this error. This happens by simply clicking on the table or surrounding flex container.

It feels like its inherent to the table object, but could be inherent to its container.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [September 13, 2022, 7:33pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/4 "2022-09-13T19:33:23Z")

</div>

Is this in the designer or a perspective session?

---

<div class="post-metadata">

**Author:** ![william.ivey](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@william.ivey](https://forum.inductiveautomation.com/u/william.ivey)\
**Post date:** [September 13, 2022, 7:33pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/5 "2022-09-13T19:33:46Z")

</div>

Both

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 13, 2022, 7:38pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/6 "2022-09-13T19:38:03Z")

</div>

The errors shown in your post all occur in a Java Script file, so those at least are from the component. However, this doesn’t look like the full stack trace.

I would expect a “caused by” statement at some point.

---

<div class="post-metadata">

**Author:** ![william.ivey](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@william.ivey](https://forum.inductiveautomation.com/u/william.ivey)\
**Post date:** [September 13, 2022, 7:45pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/7 "2022-09-13T19:45:47Z")

</div>

The error information gathered above is from the designer. I cleared everything in my logs before attempting to deselect a row on a table. Everything I posted above is what Ignition applied to the logs.

---

<div class="post-metadata">

**Author:** ![william.ivey](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@william.ivey](https://forum.inductiveautomation.com/u/william.ivey)\
**Post date:** [September 13, 2022, 7:53pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/8 "2022-09-13T19:53:35Z")

</div>

The error information gathered above is from the designer. I cleared everything in my logs before attempting to deselect a row on a table. Everything I posted above is what Ignition applied to the logs.

Just attempted the same functionality with a new button using its click event and this logic. I am still receiving the same error.

self.parent.parent.getChild(“flxCntTables”).getChild(“flxCntInput”).getChild(“flxCntBody”).getChild(“Table”).props.selection.selectedRow = None

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 13, 2022, 10:35pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/9 "2022-09-13T22:35:34Z")

</div>

I wasn’t able to reproduce any error. However, I also wasn’t able to clear the selection from a table using a script.

I would expect setting the `selectedRow` to -1 to work, however, the selection just stays. I also tried clearing the selection data array, but that also didn’t clear the highlighted row.

I just added a table and a button to a view and added this script to the actionPreformed event of the button.

```auto
self.getSibling("Table").props.selection.selectedRow = -1

```

Perhaps @cmallonee has some insight into how to properly clear selected rows from a table component.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 14, 2022, 12:56am UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/10 "2022-09-14T00:56:46Z")

</div>

I don’t seem to get any errors when I fire the following code form the onClick event from a button, and it seems to deselect everything:

```auto
	self.getSibling("Table").props.selection.selectedColumn = None
	self.getSibling("Table").props.selection.selectedRow = None

```

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 14, 2022, 1:01am UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/11 "2022-09-14T01:01:37Z")

</div>

I don’t believe this is a bug, I would look at the Event Configuration for the root container, and see if there is some erroneous code causing the issue.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [September 14, 2022, 1:46am UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/12 "2022-09-14T01:46:07Z")

</div>

Could you please supply the code you are using to “clear the selection” when this occurs? We’re all just guessing until we see how you’re clearing the selection data in the first place.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 14, 2022, 2:30am UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/13 "2022-09-14T02:30:07Z")

</div>

Deselecting the column was what I was missing. Not sure why I didn’t think of that, lets chalk it up to lack of sleep.

```auto
self.getSibling("Table").props.selection.selectedRow = -1
self.getSibling("Table").props.selection.selectedColumn = -1

```

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 14, 2022, 8:58am UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/14 "2022-09-14T08:58:23Z")

</div>

Something that happens to me every now and then in Perspective is right clicking over an unselected component, and then, as a consequence, I end up writing a script in a different component than I intended to [the component that was actually selected]. To me, this scenario seems feels like the aforementioned situation. It feels like a script has been inadvertently written to the wrong place, and these errors are the unintended consequence.

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [October 31, 2022, 3:26pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/15 "2022-10-31T15:26:31Z")

</div>

At the moment, if you need to clear selection, just set both the selectedColumn and selectedRow properties to None or null. Currently, the selection data is intended to be read only. It looks like by clearing it, we might be interfering with some internal book keeping of selection data. We will look into it, but for now all you need to do is set selectedColumn and selectedRow to null, and the Table will clear the selected data for you.

---

<div class="post-metadata">

**Author:** ![william.ivey](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@william.ivey](https://forum.inductiveautomation.com/u/william.ivey)\
**Post date:** [November 3, 2022, 11:45am UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/16 "2022-11-03T11:45:26Z")

</div>

Thanks for the feedback. I had a colleague mention the same thing as well. Much appreciated.

---

<div class="post-metadata">

**Author:** ![anurag.dhananjay-cho](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anurag.dhananjay-cho](https://forum.inductiveautomation.com/u/anurag.dhananjay-cho)\
**Post date:** [July 21, 2026, 1:23pm UTC](https://forum.inductiveautomation.com/t/table-clearing-error/64027/17 "2026-07-21T13:23:43Z")

</div>

Thank you so much. This really worked for me 🙏
