Data loss after updates

Just a heads up for anybody with an app in the store that saves any kind of data to its documents directory. My first update was posted to the store today, and I have had a few users report that their data is lost after an update. I know that this does not always happen, as I was able to update the app on my personal phone (using the App Store app on the phone) without losing data, but at least one user followed the exact same process and did lose their data.

Posted on Jul 28, 2008 6:37 PM

Reply
37 replies

Aug 17, 2008 9:43 PM in response to clurey

It is still happening, as I released an update since the last firmware update and still had a few reports of it. In my case the data is stored in an sqlite db, but that is irrelevant. The app's Documents directory (and presumably everything else) is infrequently getting wiped out during updates and there is no rhyme or reason as to why it does or does not happen.

Aug 18, 2008 4:45 AM in response to Doug Dawson

Doug,

My data is being stored in an SQLite database in the application's documents directory. And I can't disagree with you more about the NSUserDefaults issue -- a user's preferences should not be considered disposable. Maybe on another platform they should but, but that seems entirely counterintuitive to the experience that Apple users expect from their platform.

I filed a Radar on this (dupe 6108734 if you're having the same issues), but haven't received any response yet.

An app upgrade should be a seamless, painless experience, without worry or expectation of calamity. Full stop.

Chris

Aug 18, 2008 10:15 AM in response to admanimal

My own experience thus far has been that:

1) If I update from iTunes with a backup, I'm fine.

2) If I update from the App Store on the phone, I end up briefly with two copies of the app... and the old one (along with my data) goes away to be replaced by the new one. (I also have to rearrange my springboard icons to get the new one back where the old one was. Grr!)

2a) If I then sync with iTunes /before running the app/, it restores the data from my iTunes backup.

2b) If I download the app and run it before synching with iTunes, new data is created and I am in trouble.

...this is just my own observations thus far, I haven't really tried to put together a firm list or really tested the theory. But maybe this provides a jumping-off point for others...

Aug 29, 2008 10:00 PM in response to admanimal

I have been unable to update my app to the next version (which has already been completed) since I have received data loss reports when I updated the app before. My app is user data centric and data loss is fatal.

Once our app is launched, we are responsible for troubles. But what can we do when our app hasn't been started, or even hasn't been installed?

This is installer's problem and Apple must know it. Apple has to protect our user's data by announcing this issue.

Sep 12, 2008 1:04 PM in response to admanimal

I got an email response from Apple today regarding the radar bug I had filed on this issue. It's the fairly stock "we think this is fixed with the latest OS update":

"We believe this issue has been addressed in OS X iPhone 2.1. ... Please let us know whether or not you continue to experience this issue with the newly released software by updating this bug report"

My experience shows that this is not an actual claim that it is fixed. I get these lots of times after software updates. I think they clear the queue in this manner.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Data loss after updates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.