Copying an app is not copying all table rows across

I’ve created an app linked to its own database. When I choose to Copy the app I choose to save the database to AppSheets and I tick both the options to copy data.

The app copy completes successfully, but I’m finding a random selection of tables have no rows. Looking under My Account - Database Info and clicking the table usage link, I can see a variety of random tables with 0 rows. Other tables are populated with no problem.

Opening the database editor I can verify that no rows have been copied for these tables.

What’s going on here?

Appsheet databases are weird sometimes. What Ive noticed is there are times where either they need some time to load, They load imediately, or they will fail to generate in the first place. (Also I love appsheets databases awesome datasource and included in my license great perc).

Appsheets Databases (ADB) have a procces when a database is copied it will copy the rows over and will fall under the icon in the top righ location of the window that looks like a sync icon and is called something to the effect of “Long running operations” IF this shows up the table is generally large and and many rows need to be generated. (Great sign and eventually all the rows will appear)

It feels random when it fails to generate the rows when copying a database , but time of day can be an issue if large amounts of requests are being made in that time such as 8-5 on a week day there could maybe be effecting it or even just the request failed to fully proccess on the appsheets server side. Maybe try to copy the app again after hours.

OR you can go to the database specifically you are missing and copy it from there then reconnect to the app. (Painfull but effective)

These are tables with 5 or 6 rows in it. Tried it again this morning with same result. Have submitted a ticket with AppSheets.

I’ve never used a database system that just loses rows or does not sync, so this is not a good intro to AppSheets.

ADB is dodgy in my weak opinion :confused: .. I avoid it like a plague…

I choose to stick with Google sheets as the source right from the start when using Appsheet, I have not experienced missing data with app copies using sheets as source, if it did I would then just copy original sheet data and paste it in new sheet easily…

OK thanks for that suggestion. I’ll give it a try copying to a sheet instead of db. But I’ll also wait to hear what google support has to say about this.

AppSheet Database is a hack and is full of bugs. I strongly recommend against it. Google Sheets is my strongly-preferred alternative.

So if I just copy my existing app and choose to use google sheets, everything should just work as it currently does with the AppSheet database - I’m not missing out on any features or functionality?

I haven’t used AppSheet Database much, but it does have some features Sheets does not. None of those features are needed and are really just distractions. Google Sheets is a far superior platform, easier to use, and much more robust.

I’ll give it a try. Thanks.

Maybe you have hit your row limit for ASDBs? If you are not on a premium AppSheet plan then you have severe limitations on how many databases and rows (across all of those databases, not per database) you can have. It is possible that during the copy operation that it saw you don’t have enough rows to do the copy and just stopped when it hit the max. But, if that is true, then all of your AppSheet apps that use ASDBs will now no longer allow any record adds…

No, most were tiny reference tables with 5-10 rows in them - this App is still a WIP which is why I was making a copy for some experimental changes. Google support is now looking into it.

Having the same issue, this morning…each time I try to make a copy of an existing app using appsheetdb as source and destination the new database has random blank tables. Which tables are populated seems to change every time.

Tangential to this, I tried to copy the same database using the “Copy Database” function and it produces a full copy, but all of the table names start with “Copy of…”. I’m not 100% sure, but I don’t think it did that before. I have a few older backups and none of those have renamed tables….

Please contact Support for help with this. They’ve apparently been making changes to the backend. This might be related to that work.

Thanks for bringing this to our attention. When copying an AppSheet app using an AppSheet Database (ASDB) to a new ASDB, you may not see all of your data immediately. This is because AppSheet copies the data in a background batch process. This can cause a delay, but your data should appear once the process is complete.

We realize the current experience is not ideal when it comes to knowing the status of the copy, and we are actively looking for ways to improve it.

I did the copy and waited over an hour. These are tables with tiny amounts of rows in them - 4 or 5. I would say the total rows across all my tables are about 20.

I reported to google support who ran a test and the copy worked fine. So I tried again and it’s still not copying all rows.

And to echo a previous post about doing a manual copy of the database from the database screen, the idea that anyone would want every table to have the words ‘Copy of ‘ in front of every table name is absurd.

Just an update to anyone following this. 3 hours after initiating the copy of around 20 rows in total - the rows have now appeared in the copied database. Whatever mechanism is being used to do this, is severely flawed.

AppSheet Database itself is and always has been severely flawed. I recommend against using it, and recommend using Google Sheets instead. AppSheet was originally built to use Google Sheets. AppSheet Database came much later, and was an attempt to bolt on an unrelated Google product, Google Tables.

RE: copy of a database from the database screen prefixes all tables with “Copy of “

Thanks for calling this out, a fix has been created for this and should be out early next week.

  1. Try Copying Again During Off-Peak Hours It’s not ideal, but some users have had better luck repeating the copy process late at night or early morning.
  2. Manually Copy Missing Tables Open the original database, export the missing tables manually, and re-import them into the new app’s database. Painful—but effective.
  3. Submit a Support Ticket