# Project Library Script - Stopped working after changing name

**URL:** <https://forum.inductiveautomation.com/t/project-library-script-stopped-working-after-changing-name/37654>\
**Category:** Ignition\
**Created:** [August 12, 2020, 3:08pm UTC](https://forum.inductiveautomation.com/t/project-library-script-stopped-working-after-changing-name/37654 "2020-08-12T15:08:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigo.mocca](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rodrigo.mocca/32/14947_2.png) [@rodrigo.mocca](https://forum.inductiveautomation.com/u/rodrigo.mocca)\
**Post date:** [August 12, 2020, 3:08pm UTC](https://forum.inductiveautomation.com/t/project-library-script-stopped-working-after-changing-name/37654/1 "2020-08-12T15:08:24Z")

</div>

Hi,  
I’m dealing with some really strange thing.  
I have a script in Project Library called Recipe, it works as expected.  
I’ve changed the name from Recipe to Recipes, and after that, the script stopped working. I’m testing it from the Script Console.  
Of course, I’ve changed in the console from Recipe to Recipes.  
If I change back the name to Recipe, it starts working again.

The error says:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/b/ebcd924a8fbad1ebad245edd8f26d57aa72c5855.png)

Does anyone an idea of what’s happening here?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![rodrigo.mocca](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rodrigo.mocca/32/14947_2.png) [@rodrigo.mocca](https://forum.inductiveautomation.com/u/rodrigo.mocca)\
**Post date:** [August 13, 2020, 5:21pm UTC](https://forum.inductiveautomation.com/t/project-library-script-stopped-working-after-changing-name/37654/2 "2020-08-13T17:21:10Z")

</div>

In case somebody have the same error, apparently the error occurs for wrong spaces or tabs, even if it appears to be OK, I’ve fixed copying the entire script to a notepad and pasting again, without changes. I don’t know why this happens, but it happens a lot.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [August 13, 2020, 5:26pm UTC](https://forum.inductiveautomation.com/t/project-library-script-stopped-working-after-changing-name/37654/3 "2020-08-13T17:26:50Z")

</div>

Python is white space dependent, specifically on tabs.

Download and install notepad++ or kate and use those rather than the windows notepad.

---

<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:** [August 13, 2020, 6:26pm UTC](https://forum.inductiveautomation.com/t/project-library-script-stopped-working-after-changing-name/37654/4 "2020-08-13T18:26:41Z")

</div>

> [@rodrigo.mocca](#):
>
> even if it appears to be OK

Tabs and spaces can look alike but aren't. Use an editor that can be configured to be consistent. Ignition's editor likes tabs that look like four spaces.

---

<div class="post-metadata">

**Author:** ![rodrigo.mocca](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rodrigo.mocca/32/14947_2.png) [@rodrigo.mocca](https://forum.inductiveautomation.com/u/rodrigo.mocca)\
**Post date:** [August 13, 2020, 6:28pm UTC](https://forum.inductiveautomation.com/t/project-library-script-stopped-working-after-changing-name/37654/5 "2020-08-13T18:28:02Z")

</div>

Thanks for your help!
