# Column indexing error on 8.0 but works on 8.1

**URL:** <https://forum.inductiveautomation.com/t/column-indexing-error-on-8-0-but-works-on-8-1/58860>\
**Category:** Ignition\
**Created:** [April 26, 2022, 11:09am UTC](https://forum.inductiveautomation.com/t/column-indexing-error-on-8-0-but-works-on-8-1/58860 "2022-04-26T11:09:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Goethler](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Benjamin\_Goethler](https://forum.inductiveautomation.com/u/Benjamin_Goethler)\
**Post date:** [April 26, 2022, 11:09am UTC](https://forum.inductiveautomation.com/t/column-indexing-error-on-8-0-but-works-on-8-1/58860/1 "2022-04-26T11:09:19Z")

</div>

Hi all,  
I am having issues with with using [-1] in my projectlibrary script on a server with Ignition 8.0.14, but it works perfectly fine on another server with Ignition 8.1.1.  
Down below is relevant examples of the code with regards to the issue:

table\_batch = system.db.runQuery(general\_query % lastrow, db\_name)  
table\_batch = system.dataset.toPyDataSet(table\_batch)

column\_index = table\_batch.getColumnIndex(“LASTROW”)

new\_lastrow = table\_batch[-1][column\_index]

When I change the [-1] to a [0] it works fine on this server, but we would like to have it as [-1]

Best regards,  
Benjamin

---

<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:** [April 26, 2022, 12:43pm UTC](https://forum.inductiveautomation.com/t/column-indexing-error-on-8-0-but-works-on-8-1/58860/2 "2022-04-26T12:43:03Z")

</div>

IIRC, v8.1 greatly improved the PyDataset's emulation of PyList. So no, you'll need to upgrade.

It is a bit crazy to stay on an EOL version, too. See this discussion:

> [@GIT - best practice](https://forum.inductiveautomation.com/t/git-best-practice/58732/7):
>
> @SBL_MC What @pturmel is referencing is that only the odd numbered versions are supported long term by Ignition so 7.9, 8.1, next will be 8.3 etc. I did not know this until very recently tbch when a coworker told me informed me of this. I’m sure it’s somewhere on their site though.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Goethler](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Benjamin\_Goethler](https://forum.inductiveautomation.com/u/Benjamin_Goethler)\
**Post date:** [April 26, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/column-indexing-error-on-8-0-but-works-on-8-1/58860/3 "2022-04-26T12:49:58Z")

</div>

Thanks a lot for the answer 🙂

I will go ahead and start the upgrade then!

Best regards,  
Benjamin
