# Templates errors

**URL:** <https://discourse.stonehearth.net/t/templates-errors/35817>\
**Category:** Bug Reports\
**Created:** [June 7, 2018, 9:00am UTC](https://discourse.stonehearth.net/t/templates-errors/35817 "2018-06-07T09:00:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [June 7, 2018, 9:00am UTC](https://discourse.stonehearth.net/t/templates-errors/35817/1 "2018-06-07T09:00:50Z")

</div>

856  
i ad the template.  
[templates.zip](https://discourse.stonehearth.net/uploads/short-url/nNawkNa3G72yLF6xFjVzBvrN8hC.zip) (78.3 KB)  
I made a Building, saved as Template.  
i click on the new template but it does not come in to the game.

The only error who comes was:  
But not always 1 of 10 tries.

release-856 (x64)[M]  
stonehearth/lib/building/template\_utils.lua:401: attempt to index field ‘header’ (a nil value)  
stack traceback:  
[C]: ?  
stonehearth/lib/building/template\_utils.lua:401: in function ‘load\_template\_as\_temp’  
…services/client/building/building\_client\_service.lua:895: in function ‘?’  
…services/client/building/building\_client\_service.lua:948: in function \<…services/client/building/building\_client\_service.lua:941\>

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [June 7, 2018, 12:41pm UTC](https://discourse.stonehearth.net/t/templates-errors/35817/2 "2018-06-07T12:41:29Z")

</div>

Old save (-.-)

New Game all ok.
