What is it?
SmartViews has a feature called "Reset Local DB," or "Cache Reset" as it was called before v462.1100. When you make changes in SmartViews, those changes don't immediately get pushed to the Cloud; instead, they are only made in a local database that is only visible to the user who makes those changes on that machine. When you click Sync in SmartViews, that pushes the changes from your local database up into the Cloud, and it also pulls down any changes that other users have pushed to the Cloud that aren't in your local database yet.
Resetting your local database/cache does a few things. First, it creates a backup of your local database in the SmartViews root directory. After that, it essentially performs a one-way sync: It pulls down a fresh copy of what is in the Cloud to your user. This means that any changes you've made on your end since your last successful sync (i.e. changes you've made that aren't in the Cloud database) will no longer exist in the main database, but they can be found in the backup if you need to find them again.
How do I reset?
There are two ways to perform the reset. First, if you hold down the Ctrl key while opening SmartViews, you will be prompted to reset your Local DB / cache. Click yes to reset. This may take a few moments.
Second, if you are on SmartViews v452.1000 or later, you can get the prompt to pop up by going to the (i) icon on the login screen and clicking either "Reset Local DB" (v462+) or "Cache Reset" (v452).
How do I restore a backup?
In the SmartViews root directory, you will find a file called "SmartViews_[your-user-key].sdf". If you've performed a local DB reset, you will also see a file with the same name but with the date and time of the reset appended to the file extension. The first file is your local database file, and the second file is the backup that was created by the reset.
You can find your user key in your SmartViews invite email, or from the (i) icon on the login screen.
If you lost unsynced data in your reset such as a new View that you wrote or a layout that you created, you can access them by restoring the backup. To do this, delete your local database (the one that ends in just ".sdf"), or rename it or move it to your Desktop. Then, rename the backup and remove the appended date and time so that the file extension is just ".sdf" so that SmartViews will recognize it as the local database file. Close and reopen SmartViews to be able to access the old database on sign-in, and you should find anything that was lost after you reset.
When should I reset?
There are a number of scenarios in which a Local DB / cache reset can be helpful or even necessary:
- You have made changes in SmartViews that you do not want to put out to other users. This is mostly applicable for designers and admins who want to test something locally and then revert it back.
- You forgot your password and have had it changed by an admin. Since you need to login to sync, the only way your local database will be able to get the new password from the cloud is by resetting it.
- SmartViews - Error “The specified table does not exist [sv_Users]” - Azure Cloud Database (zohodesk.com)
- You are getting an error when trying to sync. Older versions of SmartViews have been prone to occasional conflicts when certain changes are made locally or in the cloud. A cache reset may be needed to resolve that.
- You want to create a backup of your local database.