# AttributeError: 'array.array' object has no attribute 'getRowCount'

**URL:** <https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835>\
**Category:** Ignition\
**Created:** [January 11, 2019, 10:52pm UTC](https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835 "2019-01-11T22:52:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faisal.Shibli](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Faisal.Shibli](https://forum.inductiveautomation.com/u/Faisal.Shibli)\
**Post date:** [January 11, 2019, 10:52pm UTC](https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835/1 "2019-01-11T22:52:49Z")

</div>

Hi,

I am working on a pop-up. When I click ‘Submit Sign Off’ button, then an action event handler is performed. Click ‘Submit Sign Off’ button returns with the error **AttributeError: ‘array.array’ object has no attribute ‘getRowCount’**. Below is the snippet of the popup and the error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1a3d9f0bdba40f62a6e473cd7f6865deaebb34a4.png)

If you look at the pop-up, there is a table with ‘Time’, ‘Incident Time’ that is being passed from another window which is binded to dataset “devicesComment”. As you can see this works as the table popuplates and has 1 row. I don’t understand why I am getting error on getRowCount function line. Your help is highly appreciated.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8c312acd5fe448168c3411d4bdb84b7864fc1c64.jpeg)

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [January 12, 2019, 1:00am UTC](https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835/2 "2019-01-12T01:00:48Z")

</div>

I think you mean to use event.source.parent.getComponent(‘devicesComment’) on line 18, as I understand your comment the table component itself is called ‘devicescomment’. If instead you meant the data for that table is bound to a property called devicescomment, then instead on line 19 take out the ‘.data’ part so its just COMMENT.getRowCount().

---

<div class="post-metadata">

**Author:** ![Faisal.Shibli](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Faisal.Shibli](https://forum.inductiveautomation.com/u/Faisal.Shibli)\
**Post date:** [January 13, 2019, 12:00am UTC](https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835/3 "2019-01-13T00:00:30Z")

</div>

Thank you for your response. Actually that dataset is in the root container of this window which I bonded to the table just to confirm that the data is being passed from another vision window. I will try your method and get back to you.

Thanks,  
Faisal

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 13, 2019, 2:01am UTC](https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835/4 "2019-01-13T02:01:22Z")

</div>

I think part of the confusion is that Ignition’s basic implementation of datasets have a getData() method, which is automatically treated as a “data” property thanks to jython’s NetBeans treatment of getters and setters. The “data” property of a dataset yields a generic two-dimensional array of the underlying data. The “data” property of a table component yields a dataset. That pattern appears to have been cut and pasted inappropriately.

---

<div class="post-metadata">

**Author:** ![Faisal.Shibli](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Faisal.Shibli](https://forum.inductiveautomation.com/u/Faisal.Shibli)\
**Post date:** [January 14, 2019, 2:52pm UTC](https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835/5 "2019-01-14T14:52:36Z")

</div>

Your solution worked! Thank you.

**devicecommentsRows = COMMENT.getRowCount()**

---

<div class="post-metadata">

**Author:** ![Faisal.Shibli](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Faisal.Shibli](https://forum.inductiveautomation.com/u/Faisal.Shibli)\
**Post date:** [January 14, 2019, 2:53pm UTC](https://forum.inductiveautomation.com/t/attributeerror-array-array-object-has-no-attribute-getrowcount/21835/6 "2019-01-14T14:53:02Z")

</div>

Thank you for the detailed explanation. Appreciate all your help.
