# Code crashes thunkable

**URL:** <https://community.thunkable.com/t/code-crashes-thunkable/1033981>\
**Category:** Questions about Thunkable X\
**Created:** [December 12, 2020, 2:53pm UTC](https://community.thunkable.com/t/code-crashes-thunkable/1033981 "2020-12-12T14:53:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roumak-coder](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@roumak-coder](https://community.thunkable.com/u/roumak-coder)\
**Post date:** [December 12, 2020, 2:53pm UTC](https://community.thunkable.com/t/code-crashes-thunkable/1033981/1 "2020-12-12T14:53:56Z")

</div>

Whenever this code runs, the thunkble live crashes -

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/9713835cd928a81bb6c3ffd2881c65f42e9c39ef.png)  
Please help!!

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 12, 2020, 4:08pm UTC](https://community.thunkable.com/t/code-crashes-thunkable/1033981/2 "2020-12-12T16:08:20Z")

</div>

I see a few issues:

1. The realtime DB key does not appear to have a slash ( / ) between the values.
2. There are muliple asynchronous calls to the realtime db. This will cause a lot of issues (see related thread and solution [Wrapping Asynchronous (then do) blocks into a Synchronous Function resolves unpredictable results](http://community.thunkable.com/t/wrapping-asynchronous-then-do-blocks-into-a-synchronous-function-resolves-unpredictable-results/910511))
3. Try using the CLOUD blocks. They are easier, faster, and more reliable. Here is how to make a straight conversion from realtimedb to cloud variables [Thunkable Hack - Deep Firebase JSON data manipulation without using GET or SAVE Blocks](http://community.thunkable.com/t/thunkable-hack-deep-firebase-json-data-manipulation-without-using-get-or-save-blocks/975738)

---

<div class="post-metadata">

**Author:** ![roumak-coder](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@roumak-coder](https://community.thunkable.com/u/roumak-coder)\
**Post date:** [December 13, 2020, 7:00am UTC](https://community.thunkable.com/t/code-crashes-thunkable/1033981/3 "2020-12-13T07:00:23Z")

</div>

> [@drted](#):
>
> The realtime DB key does not appear to have a slash ( / ) between the values.

Where should I put the slash?

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 13, 2020, 12:00pm UTC](https://community.thunkable.com/t/code-crashes-thunkable/1033981/4 "2020-12-13T12:00:55Z")

</div>

> [@drted](#):
>
> Thunkable Hack - Deep Firebase JSON data manipulation without using GET or SAVE Blocks

Check out the link [Thunkable Hack - Deep Firebase JSON data manipulation without using GET or SAVE Blocks](http://community.thunkable.com/t/thunkable-hack-deep-firebase-json-data-manipulation-without-using-get-or-save-blocks/975738)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 13, 2020, 12:46pm UTC](https://community.thunkable.com/t/code-crashes-thunkable/1033981/5 "2020-12-13T12:46:45Z")

</div>

@roumak-coder,  
Firebase shows the contents as tree like structure or file folder appearance. However, when coding you need “/” between keys and sub-keys or nodes and child-nodes

Example: main-key/sub-key/sub-sub-key

Hope that helps to clarify.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:19pm UTC](https://community.thunkable.com/t/code-crashes-thunkable/1033981/6 "2024-11-08T12:19:48Z")

</div>


