# IndexError: Index out of range: 0

**URL:** <https://forum.inductiveautomation.com/t/indexerror-index-out-of-range-0/67800>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 19, 2022, 6:50pm UTC](https://forum.inductiveautomation.com/t/indexerror-index-out-of-range-0/67800 "2022-12-19T18:50:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwb](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dwb](https://forum.inductiveautomation.com/u/dwb)\
**Post date:** [December 19, 2022, 6:50pm UTC](https://forum.inductiveautomation.com/t/indexerror-index-out-of-range-0/67800/1 "2022-12-19T18:50:31Z")

</div>

Hi,  
I have one button that calls one script from the global scripting. And there in the Global there are more scripts.  
But I am having the following error when this button is pressed:

File "function:runAction", line 31, in runAction  
File "module:shared.CONSTANTS.label\_Admin", line 571, in getLabelJobParameters  
File "module:shared.CONSTANTS.label\_Admin", line 653, in updateCountersIPSMode  
IndexError: index out of range: 0

What could be causing this **IndexError: index out of range: 0**? Thanks.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 19, 2022, 7:35pm UTC](https://forum.inductiveautomation.com/t/indexerror-index-out-of-range-0/67800/2 "2022-12-19T19:35:12Z")

</div>

You're trying to access index 0 of an empty list. Without your code, that's all we can tell you.
