# Locking error trying remove a global script

**URL:** <https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768>\
**Category:** Ignition\
**Created:** [June 2, 2016, 9:14am UTC](https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768 "2016-06-02T09:14:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyudes](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@eyudes](https://forum.inductiveautomation.com/u/eyudes)\
**Post date:** [June 2, 2016, 9:14am UTC](https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768/1 "2016-06-02T09:14:39Z")

</div>

Hello everyone,

I have a problem using some scripts in the shared library. Firstly, I created a script file in my project but then I decided to move it to the shared library, to do it, I dragged the script to the scripting global zone. Since that point I cannot open the script file and if I try to remove or rename it, a message appears:  
“Unable to retrieve lock for resource ‘ScriptsName’. The resource has been changed. please update your project.”

For giving more information, the next lines appear in the output console when I do double click on the script to open it:

`Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
	at com.inductiveautomation.ignition.designer.scripteditor.workspace.ScriptWorkspace.askOpenReadOnly(ScriptWorkspace.java:184)
	at com.inductiveautomation.ignition.designer.scripteditor.workspace.ScriptWorkspace.openScript(ScriptWorkspace.java:167)
	at com.inductiveautomation.ignition.designer.scripteditor.workspace.ModuleNode.onDoubleClick(ModuleNode.java:97)
	at com.inductiveautomation.ignition.designer.navtree.NavTreePanel$MouseListener$1.run(NavTreePanel.java:649)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)`  
In contrast, I can copy and paste the script and my code is there.

If any one can help me I will be thankful. Thanks.

Regards, Enrique.

P.D. I am using 7.8.2 version

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [June 2, 2016, 4:51pm UTC](https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768/2 "2016-06-02T16:51:55Z")

</div>

Hi there,

Silly questions. Did you update your project? There is a button next to your save button in the designer for updating/refreshing your project. Click on it and then try to open your script file. If that doesn’t work then close your designer and reopen it.

Best,

---

<div class="post-metadata">

**Author:** ![eyudes](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@eyudes](https://forum.inductiveautomation.com/u/eyudes)\
**Post date:** [June 3, 2016, 6:10am UTC](https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768/3 "2016-06-03T06:10:49Z")

</div>

[quote=“nmudge”]Hi there,

Silly questions. Did you update your project? There is a button next to your save button in the designer for updating/refreshing your project. Click on it and then try to open your script file. If that doesn’t work then close your designer and reopen it.

Best,[/quote]  
Thank you for your reply. These were the first things I did but with no success. Even I tried to create a new project but neither I can open the files.

Any more ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [June 3, 2016, 3:51pm UTC](https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768/4 "2016-06-03T15:51:06Z")

</div>

😊 I was able to replicate this in 7.8.4. I’ll open a ticket to get it fixed.

---

<div class="post-metadata">

**Author:** ![eyudes](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@eyudes](https://forum.inductiveautomation.com/u/eyudes)\
**Post date:** [June 6, 2016, 6:00am UTC](https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768/5 "2016-06-06T06:00:47Z")

</div>

> [@KathyApplebaum](#):
>
> :oops: I was able to replicate this in 7.8.4. I'll open a ticket to get it fixed.

Ok, thank you. If you get any further information inform us please.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [June 6, 2016, 1:58pm UTC](https://forum.inductiveautomation.com/t/locking-error-trying-remove-a-global-script/11768/6 "2016-06-06T13:58:23Z")

</div>

Can you email support and have them open a ticket for you? Ask them to link to Fogbugz 7201 – they’ll know what this means. That will trigger us to notify you when it’s fixed.
