# Getting Error while adding blocks or performing any action 

**URL:** https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541
**Category:** Issues / Bugs
**Created:** [December 12, 2022, 4:52pm UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541 "2022-12-12T16:52:09Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![kkk2](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kkk2](https://community.thunkable.com/u/kkk2)
#### Post date: [December 12, 2022, 4:52pm UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/1 "2022-12-12T16:52:10Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fa0342c2212984706074dc916cde14eeca09f9e9.png)

This is the error I am encountering while performing any function relation to blocks.

Anyone going over the same problem or has a fix to it?

Let me know.

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 12, 2022, 6:58pm UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/2 "2022-12-12T18:58:31Z")

</div>

@kkk2 Thanks for posting. Can you please share a link to your project with us so that we can get more context as to why this may be happening? It is always best to share images of your blocks or a link to your project when requesting help here.

Thank you!

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 12, 2022, 7:03pm UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/3 "2022-12-12T19:03:38Z")

</div>

There’s always a direct cause for this and that specific error will usually appear when connecting two specific blocks (and will go away when disconnecting them). Do you notice that happening? It’s often related to Data Source blocks or `set variable` blocks. If not, then as @conroy33 suggested, having a link the project is necessary to determine the problem.

---

<div class="post-metadata">

### Author: ![kkk2](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kkk2](https://community.thunkable.com/u/kkk2)
#### Post date: [December 13, 2022, 7:28am UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/4 "2022-12-13T07:28:56Z")

</div>

I got it fixed somehow. the `get property of object` was the root cause ( whenever I added that block in if else, it caused an error ).

I was using if, elseif, else for the code block below. but seems like that was the issue for some reason.

So I changed it to using 3 times if for checking.

This did solve my problem.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/45c45951152af24e7d4a1fda8784a68880d900aa.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 13, 2022, 8:18am UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/5 "2022-12-13T08:18:07Z")

</div>

Glad you got it working! If you need to speed up your code, you could:

1. use `if/elseif` blocks instead of multiple `if` blocks
2. assign `stored variable rowid` to an app variable once and then use the app variable everywhere you have the stored variable.

---

<div class="post-metadata">

### Author: ![kkk2](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kkk2](https://community.thunkable.com/u/kkk2)
#### Post date: [December 13, 2022, 10:47am UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/6 "2022-12-13T10:47:22Z")

</div>

I don’t really know if you saw the reply clearly lol.  
I used multiple ifs because adding the get property of object in if else was causing the error.  
after switching to multiple ifs, the error vanished.

also I am using stored variable because its the main identifier of the account. I want to keep it for ever so yeah.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 13, 2022, 3:38pm UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/7 "2022-12-13T15:38:49Z")

</div>

Sorry, I did miss that! Skipped right to the screenshot.

But just so you know, accessing stored variables is a slow process. Much slower than app variables. If speed isn’t an issue, you can ignore that. But if it is, then you transfer the values of the stored variables temporarily to app variables and use the app variables throughout your code. Then, any time the app variable value changes, you save it back to the stored variable. That way, you save the values permanently but speed up the project.

---

<div class="post-metadata">

### Author: ![kkk2](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kkk2](https://community.thunkable.com/u/kkk2)
#### Post date: [December 13, 2022, 3:45pm UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/8 "2022-12-13T15:45:23Z")

</div>

Thanks for the info!

Will implement it.

---

<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, 1:12pm UTC](https://community.thunkable.com/t/getting-error-while-adding-blocks-or-performing-any-action/2176541/9 "2024-11-08T13:12:40Z")

</div>


