# Cannot save custom items, keep getting error when accessing build menu

**URL:** <https://discourse.stonehearth.net/t/cannot-save-custom-items-keep-getting-error-when-accessing-build-menu/28825>\
**Category:** Other Reports\
**Tags:** duplicate\
**Created:** [February 22, 2017, 11:30am UTC](https://discourse.stonehearth.net/t/cannot-save-custom-items-keep-getting-error-when-accessing-build-menu/28825 "2017-02-22T11:30:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jabberwockie](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jabberwockie/32/53925_2.png) [@Jabberwockie](https://discourse.stonehearth.net/u/Jabberwockie)\
**Post date:** [February 22, 2017, 11:30am UTC](https://discourse.stonehearth.net/t/cannot-save-custom-items-keep-getting-error-when-accessing-build-menu/28825/1 "2017-02-22T11:30:18Z")

</div>

**Summary:**  
Tried to make a template (big one) and when I attempted to save it, it broke. When accessing build menu the error will repeat itself occasionally and templates will not save.

**Steps to reproduce:**

1. Create Template
2. 
3. 

**Expected Results:**  
Template is created  
**Actual Results:**  
Error when accessing creations  
**Notes:**

**Attachments:**

**Version Number and Mods in use:**  
release-701 (x64)  
**System Information:**  
release-701 (x64)  
stonehearth/lib/build\_util.lua:612: attempt to index local ‘template’ (a nil value)  
stack traceback:  
[C]: ?  
stonehearth/lib/build\_util.lua:612: in function 'get\_custom\_templates’  
stonehearth/call\_handlers/build\_call\_handler.lua:44: in function \<stonehearth/call\_handlers/build\_call\_handler.lua:43\>

and

release-701 (x64)  
c++ exception: lua runtime error  
stack traceback:

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [February 22, 2017, 1:09pm UTC](https://discourse.stonehearth.net/t/cannot-save-custom-items-keep-getting-error-when-accessing-build-menu/28825/2 "2017-02-22T13:09:33Z")

</div>

A post was merged into an existing topic: [Templates not shown](https://discourse.stonehearth.net/t/templates-not-shown/28527)

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [February 22, 2017, 1:09pm UTC](https://discourse.stonehearth.net/t/cannot-save-custom-items-keep-getting-error-when-accessing-build-menu/28825/3 "2017-02-22T13:09:33Z")

</div>


