# Gateway Scripts panel error

**URL:** <https://forum.inductiveautomation.com/t/gateway-scripts-panel-error/94029>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 1, 2024, 10:08am UTC](https://forum.inductiveautomation.com/t/gateway-scripts-panel-error/94029 "2024-08-01T10:08:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [August 1, 2024, 10:08am UTC](https://forum.inductiveautomation.com/t/gateway-scripts-panel-error/94029/1 "2024-08-01T10:08:29Z")

</div>

Hello!

In my gateway scripts panel I getting this error:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cf32ab829d2eb99b646fc0223297508b0642cb6b.png)  
Traceback (most recent call last):  
File "\<TimerScript:Version-10\_8/MAX\_DNF\_KW @300.000ms \>", line 6, in   
File "module:project.timerScripts.funciones", line 61, in comprobarGuardado  
TypeError: str indices must be integers

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/d/0df4b1e2aa470b5f13b742a7ec78c2c1c5eb3260.png)

My config.ini file does exist and this is it current content:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/c/0c7600dba31f9da8c4cd437ccafdfc0c0b6f6e68.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/2/02fd89c165699522b9997b1bc7d9b74c93b887b1.png)

Any idea on how I could fix this error?

---

<div class="post-metadata">

**Author:** ![Samuel\_Sueur](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Samuel\_Sueur](https://forum.inductiveautomation.com/u/Samuel_Sueur)\
**Post date:** [August 1, 2024, 10:53am UTC](https://forum.inductiveautomation.com/t/gateway-scripts-panel-error/94029/2 "2024-08-01T10:53:48Z")

</div>

You probably have a script error in your gateway scripts ...

You must have defined somewhere a function called `comprobarGuardado` which is not running properly as you might be doing something unexpected in your code.

Post the code of the function and we might be able to help you.

Also you mention a` config.ini` file, what is that ?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [August 1, 2024, 11:33am UTC](https://forum.inductiveautomation.com/t/gateway-scripts-panel-error/94029/3 "2024-08-01T11:33:33Z")

</div>

Thanks @Samuel_Sueur I just found this is legacy script from Ignition Vision I´m not needing on the Ignition Perspective version.  
If I need it I will refactor it, guess is ok leave the errors like that until I finish the whole project.
