# \[BUG-13211\] Windows and Templates turned into folders

**URL:** <https://forum.inductiveautomation.com/t/bug-13211-windows-and-templates-turned-into-folders/29019>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [October 11, 2019, 6:43am UTC](https://forum.inductiveautomation.com/t/bug-13211-windows-and-templates-turned-into-folders/29019 "2019-10-11T06:43:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ald](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@ald](https://forum.inductiveautomation.com/u/ald)\
**Post date:** [October 11, 2019, 6:43am UTC](https://forum.inductiveautomation.com/t/bug-13211-windows-and-templates-turned-into-folders/29019/1 "2019-10-11T06:43:29Z")

</div>

**I have encounted a problem where when i open the project in the design launcher most of my windows and templates are now gone and replaced by folders with the same name. In the gateway diagnostic logs i have about 15 notifications every 10 seconds pushing this message(This is just for one of the windows/templates):**

com.inductiveautomation.ignition.common.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN\_OBJECT but was STRING at line 1 column 1 path $

at com.inductiveautomation.ignition.common.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)

at com.inductiveautomation.ignition.common.gson.Gson.fromJson(Gson.java:927)

at com.inductiveautomation.ignition.common.gson.Gson.fromJson(Gson.java:865)

at com.inductiveautomation.ignition.gateway.project.ProjectFileTree$ProjectFileVisitor.createResourceNode(ProjectFileTree.java:485)

at com.inductiveautomation.ignition.gateway.project.ProjectFileTree$ProjectFileVisitor.preVisitDirectory(ProjectFileTree.java:421)

at com.inductiveautomation.ignition.gateway.project.ProjectFileTree$ProjectFileVisitor.preVisitDirectory(ProjectFileTree.java:347)

at java.base/java.nio.file.Files.walkFileTree(Unknown Source)

at java.base/java.nio.file.Files.walkFileTree(Unknown Source)

at com.inductiveautomation.ignition.gateway.project.ProjectFileTree.lambda$create$12(ProjectFileTree.java:271)

at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)

at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)

at com.inductiveautomation.ignition.gateway.project.ProjectFileTree.create(ProjectFileTree.java:269)

at com.inductiveautomation.ignition.gateway.project.ProjectFileWatcher.scanProjectsDir(ProjectFileWatcher.java:65)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: java.lang.IllegalStateException: Expected BEGIN\_OBJECT but was STRING at line 1 column 1 path $

at com.inductiveautomation.ignition.common.gson.stream.JsonReader.beginObject(JsonReader.java:385)

at com.inductiveautomation.ignition.common.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)

**The schedual backup also stopped working so i was hoping anyone maybe have a solution to this problem as atm, alot of work is gone…**

---

<div class="post-metadata">

**Author:** ![ald](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@ald](https://forum.inductiveautomation.com/u/ald)\
**Post date:** [October 11, 2019, 9:03am UTC](https://forum.inductiveautomation.com/t/bug-13211-windows-and-templates-turned-into-folders/29019/2 "2019-10-11T09:03:05Z")

</div>

For some unknown reason the “referance.json” got cleared on some components,  
**Solved the issue** by going into the “reference.json” document under each component at  
C:\Program Files\Inductive Automation\data\projects\XXXXXX\com.inductiveautomation.vision  
and adding a script based on the “reference.json” file on the components that were working.  
Thankfully not much work was lost!

---

<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 11, 2019, 4:03pm UTC](https://forum.inductiveautomation.com/t/bug-13211-windows-and-templates-turned-into-folders/29019/3 "2019-10-11T16:03:54Z")

</div>

This ‘resources getting turned into folders’ bug is an issue high on our priority list, that we’re hoping to have fixed in 8.0.6.

---

<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:** [October 21, 2019, 4:06pm UTC](https://forum.inductiveautomation.com/t/bug-13211-windows-and-templates-turned-into-folders/29019/4 "2019-10-21T16:06:28Z")

</div>

This issue was fixed in the 8.0.6 nightly build that was uploaded today (10/21).
