Overview:
When attempting to sync CRM on the iPad, the user receives the following error: Sync Failed - Refresh unsuccessful. The user activity log shows an error in the following format:
<Database> failed to save. The operation couldn’t be completed. (NSSQLiteErrorDomain error <Number>.)
Examples of this error may start with:
- Database failed to save
- MOCSaveError Database failed to save
- DescribeLayout failed to save
It may also contain the term: NSSQLiteErrorDomain = 1.
Root Cause:
SQLite errors are often caused by corruption of the offline database.
Another potential cause of this issue can be when the device is running out of RAM during the sync process. This can sometimes occur when Enhanced Sync is enabled on an object with a large number of records.
Solution:
Admins should review the VMOCs for associated objects (if any) to the error based on the Activity Log. It may be necessary to restructure VMOCs to reduce the record count, or to remove Enhanced Sync from the object.
The user should perform a database refresh. If the error is preventing the user from logging in to the app, the user may have to uninstall and reinstall the app to accomplish this.
Before uninstalling and reinstalling the app, it is recommended to make a backup for the data on the offline device: How to Recover the VTrans Folder (iPad) in CRM?
Additionally, the user should ensure that the device has sufficient storage space to perform the sync. Issues may arise if the device runs out of storage mid-sync.
Related Documentation:
N/A