# Issue with upgrading from a previous installed version of an app

**URL:** https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899
**Category:** Issues / Bugs
**Created:** [September 14, 2023, 11:13pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899 "2023-09-14T23:13:10Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![finbarr.mccarthytl32](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@finbarr.mccarthytl32](https://community.thunkable.com/u/finbarr.mccarthytl32)
#### Post date: [September 14, 2023, 11:13pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/1 "2023-09-14T23:13:10Z")

</div>

I created an apk Android build (version 28) and downloaded it to my phone. This version worked on Web Viewer.  
I launched the app and it stopped on a block that clears a table. All tables used by the app are cleared in a series of blocks and I had just copied a previous one, changed the table being cleared and built the app.  
I deleted the offending block and recreated it again as there are random issues with builds and moving or deleting a block and reinserting it again (on every screen) seems to fix it. I also opened and closed the table.  
However, having created the apk for Build 29, it failed again at the block that clears a newly added table.  
I then tried uninstalling the app completely from my phone, and installing Build 29 again, and this worked.  
It seems that there may be a problem when an app is upgraded from one installed build to another.

---

<div class="post-metadata">

### Author: ![finbarr.mccarthytl32](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@finbarr.mccarthytl32](https://community.thunkable.com/u/finbarr.mccarthytl32)
#### Post date: [September 14, 2023, 11:31pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/2 "2023-09-14T23:31:56Z")

</div>

While the Build 29 apk worked on my phone, Build 30 (created for iOS) is hanging on my iPhone.

---

<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: [September 15, 2023, 7:41pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/3 "2023-09-15T19:41:27Z")

</div>

Hey @finbarr.mccarthytl32  
Could you please share a screenshot of the blocks that are crashing the app?

---

<div class="post-metadata">

### Author: ![finbarr.mccarthytl32](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@finbarr.mccarthytl32](https://community.thunkable.com/u/finbarr.mccarthytl32)
#### Post date: [September 15, 2023, 8:00pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/4 "2023-09-15T20:00:49Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0ffd9566d8ccd9e6709a795655c8d62e9c58db9a.png)  
The block that was failing is ‘delete all rows in Text\_01 in Table 5’  
A couple of builds back, the same thing happened on the block ‘delete all rows in Text\_01 in Table 4’.

---

<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: [September 18, 2023, 5:51pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/5 "2023-09-18T17:51:20Z")

</div>

Hello @finbarr.mccarthytl32  
Thank you for sharing the screenshot.  
Have you tried to set the error Block into a label?  
What was the error?

---

<div class="post-metadata">

### Author: ![finbarr.mccarthytl32](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@finbarr.mccarthytl32](https://community.thunkable.com/u/finbarr.mccarthytl32)
#### Post date: [September 19, 2023, 2:52pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/6 "2023-09-19T14:52:58Z")

</div>

Hi Ioannis,

As you can see from the blocks in the screenshot, clearing all rows in Table 5 is identical except for the label change and table change to the block that clears all rows in Table 4.  
The way I got around the problem was to delete the block 'delete all rows in Table 5, and pasting it back in again (i.e. no change to the block except the cut and paste).  
However, it was unexpected behaviour and completely random - blocks on other screens had changed, so I don’t understand why this block failed on this screen before I cut and pasted 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: [September 22, 2023, 8:20pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/7 "2023-09-22T20:20:47Z")

</div>

Hello @finbarr.mccarthytl32!  
Is it possible that you added these blocks and then made a change to the structure of the Table?  
Did you change for example the Table name or the type (App/Stored)?

---

<div class="post-metadata">

### Author: ![finbarr.mccarthytl32](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@finbarr.mccarthytl32](https://community.thunkable.com/u/finbarr.mccarthytl32)
#### Post date: [September 25, 2023, 3:14pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/8 "2023-09-25T15:14:27Z")

</div>

Hi Ioannis,  
Nope.  
Table 5 was added.  
Then the blocks to delete all rows in Table 5 were added.  
It worked on Web Viewer, but failed on Android and iOS.  
I cut and pasted the blocks back in again. It worked on Web Viewer and worked on Android and iOS.

---

<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:33pm UTC](https://community.thunkable.com/t/issue-with-upgrading-from-a-previous-installed-version-of-an-app/2595899/9 "2024-11-08T13:33:31Z")

</div>


