The iPhone/iOS app is using CoreData + SQLite (NSSQLiteStoreType) + iCloud iOS. When the app starts on first install (or after deleting and reinstalling via xcode), and there is prior app data in iCloud from a prior installation or from other devices in the same account, the following error occurs, then a 60 second retry delay, then a successful migration to iCloud. The result is that user of the app thinks that their data is lost when the app is upgraded. However, after the 60 second delay, the data is restored. The error and some code follows. The iPhone/iOS app is using CoreData + SQLite (