# \[IGN-7506\]Unwanted behavior - dragging a script nowhere adds a (1) to it?

**URL:** <https://forum.inductiveautomation.com/t/ign-7506-unwanted-behavior-dragging-a-script-nowhere-adds-a-1-to-it/72270>\
**Category:** Ignition\
**Tags:** ignition79, ignition80, ignition81\
**Created:** [April 10, 2023, 5:46pm UTC](https://forum.inductiveautomation.com/t/ign-7506-unwanted-behavior-dragging-a-script-nowhere-adds-a-1-to-it/72270 "2023-04-10T17:46:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [April 10, 2023, 5:46pm UTC](https://forum.inductiveautomation.com/t/ign-7506-unwanted-behavior-dragging-a-script-nowhere-adds-a-1-to-it/72270/1 "2023-04-10T17:46:36Z")

</div>

Think this is present at least from 7.9 and I just did it again in 8.1.19.

How to replicate: Make at least two project library scripts. Name them whatever you want. Click to drag one, and go just on top of the other script. Let go. Now the script will be `myLibrary (1)` despite there being no duplicate around and so the (1) is unnecessary. You can do this within script folders as well, make a script package with two scripts, drag a script onto of the other script let go, and it will remain in the exact same name space/position it was but now with a (1) appended to it (well no longer the name space after the (1) is appended which is the issue imo).

I had a project I worked on a customer remotely with a bad connection a few weeks ago and I must have accidentally done this at some point because processes broke due to a script not existing, and I look to find that it is still there but with the (1) appended.

Luckily I had a backup so no real harm done, but it was embarrassing to explain what happened.

I personally don't see what the good faith use of this is supposed to be or do or why it's like this? If you drag and leave script on the same exact level/spot that it was in prior, why change the name at all, if there is no duplicate?

---

<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:** [April 10, 2023, 6:57pm UTC](https://forum.inductiveautomation.com/t/ign-7506-unwanted-behavior-dragging-a-script-nowhere-adds-a-1-to-it/72270/2 "2023-04-10T18:57:52Z")

</div>

Not unique to scripting (happens for alarm pipelines and probably lots of other workspaces), but is definitely something we can and should handle better. I'll file a ticket.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [October 12, 2023, 5:49pm UTC](https://forum.inductiveautomation.com/t/ign-7506-unwanted-behavior-dragging-a-script-nowhere-adds-a-1-to-it/72270/3 "2023-10-12T17:49:20Z")

</div>

Related problem to this I ran into today, though I guess fixing the above would prevent the following -

Was working on a project in 8.1.26 when I accidentally did the above described, dragged a script nowhere, it had the (1) ascribed to it. I right clicked on it, clicked on "revert changes" and instead of changing the name back without the (1), it deleted the entire script.

I exited designer without saving, re-entered and there it was, but gave me a fright for a second. Just posting this for posterity until the aforementioned bug is fixed in case anyone accidentally causes the `(1)` to be appended - do NOT revert changes!

To reproduce -

1. make script, throw something in there
2. save designer/script
3. drag to make (1)
4. revert changes
5. entire script is gone - don't save! exit designer without saving and you'll have the last saved version of the script.

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [October 12, 2023, 6:10pm UTC](https://forum.inductiveautomation.com/t/ign-7506-unwanted-behavior-dragging-a-script-nowhere-adds-a-1-to-it/72270/4 "2023-10-12T18:10:30Z")

</div>

> [@bkarabinchak.psi](#):
>
> clicked on "revert changes" and instead of changing the name back without the (1), it deleted the entire script.

This happens to me as well, only difference being, that it deletes ALL objects of the type I'm trying to revert. 😑 It doesn't happen every time, so i don't know how exactly to replicate it. I don't even bother with the revert changes feature anymore ☹

---

<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:** [October 12, 2023, 6:38pm UTC](https://forum.inductiveautomation.com/t/ign-7506-unwanted-behavior-dragging-a-script-nowhere-adds-a-1-to-it/72270/5 "2023-10-12T18:38:04Z")

</div>

> [@Matthew.gaitan](#):
>
> I don't even bother with the revert changes feature anymore ☹

(Hopefully) fixed in 8.1.34:

> [@Nightly 8.1 Changelogs - 2023](https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2023/68524/148):
>
> Nightly Changelog: 8.1.34-SNAPSHOT-b20231009 Swing Vision IGN-7418: Organize drop target popup menu into folders by template path The dropped template menu in Vision now automatically intelligently builds nested menus for all possible template options, making large projects with many templates easier to manage. Designer IGN-8022: Renaming option not available for Vision folder immediately after creating folder within Vision workspace in designer Fixed an issue where Vision window and templat…

The OP issue with drag and drop renaming/creating invalid names is also actively under development, hopefully fixed in 8.1.34 or 35.
