# Renaming folder loses tags. Cannot rename or delete folder. Cannot create new tags or folder

**URL:** <https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939>\
**Category:** Ignition\
**Created:** [September 2, 2019, 3:54am UTC](https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939 "2019-09-02T03:54:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gavin.strack](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gavin.strack/32/10064_2.png) [@gavin.strack](https://forum.inductiveautomation.com/u/gavin.strack)\
**Post date:** [September 2, 2019, 3:54am UTC](https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939/1 "2019-09-02T03:54:14Z")

</div>

I encountered a problem today. Imported some tags via JSON to create a new sub-folder and tags. This all worked fine and tag values were updating.

As the new sub-folder had the same name as the parent folder, I renamed the sub-folder by adding “\_Alarms” to the end of its name. However, when I expand the sub-folder, all of the tags have disappeared.

I tried to rename the folder back to the original name but when I press enter to input the sub-folder rename, the name goes back to “xxx\_Alarms”. No errors are shown.

When I try and delete the sub-folder I get the error “Bad unknown”.

When I try and import via XML again it starts the import process and when it reaches the “Reading tags…” step the progress bar seems to be stuck. After a long time, I get a long list of errors including “Bad\_Failure - tag already exists” and “Bad\_NotFound - Parent tag not found”).

If I try and create a new sub-folder with the original name (e.g. PLC1) it creates a new folder but automatically renames it PLC2.

It’s like the original sub-folder still exists in the database, but is not being displayed on the tree view.

Any ideas on how to resolve? I don’t need to keep any history. I can delete tags, folders if required.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 2, 2019, 12:42pm UTC](https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939/2 "2019-09-02T12:42:24Z")

</div>

Try restarting your tag provider from the gateway webpage. I raised a bug report for this a while back, can’t remember the status of it, I’ll link it in here when I have time.

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [September 5, 2019, 6:48pm UTC](https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939/3 "2019-09-05T18:48:13Z")

</div>

@gavin.strack Are you still seeing this? What version are you using?

---

<div class="post-metadata">

**Author:** ![gavin.strack](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gavin.strack/32/10064_2.png) [@gavin.strack](https://forum.inductiveautomation.com/u/gavin.strack)\
**Post date:** [September 9, 2019, 1:27am UTC](https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939/4 "2019-09-09T01:27:28Z")

</div>

I’ve restarted the device connections and OPC server. No effect. The problem continues. No response from my tech support ticket either.

---

<div class="post-metadata">

**Author:** ![chris3145](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@chris3145](https://forum.inductiveautomation.com/u/chris3145)\
**Post date:** [September 9, 2019, 3:54pm UTC](https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939/5 "2019-09-09T15:54:50Z")

</div>

The workaround I’ve been using: Import your tags into a random junk folder, copy whatever you imported and paste it somewhere else, then delete the original import. I have all sorts of issues with the imported folder, but a copy of it seems to work fine.

The only way I’ve found to fix the imported folder that’s all messed up is deleting the parent folder that contains it.

---

<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:** [September 9, 2019, 4:24pm UTC](https://forum.inductiveautomation.com/t/renaming-folder-loses-tags-cannot-rename-or-delete-folder-cannot-create-new-tags-or-folder/27939/6 "2019-09-09T16:24:33Z")

</div>

> [@gavin.strack](#):
>
> I’ve restarted the device connections and OPC server.

Did you try Nick's advice to restart the tag provider? I wouldn't expect restarting the OPC server to help this case.
