drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 132 forks source link

Error merging: Error Domain=CDEErrorDomain Code=201 "(null)" #226

Closed vivekpathania closed 8 years ago

vivekpathania commented 8 years ago

I am using ensembles in my IOS app with Core Data & Dropbox . I was was working perfectly till i added a new model (light weight migration) and updated my device to IOS 9.1 . Now it does not pull the old data from DropBox though i can see all the old files are still their in DropBox . I am stuck with this error every time i try to merge .

I have even tried deleting the app from one of my device and reinstalling it still it starts fresh and does not pull in the old data . Any help in retrieving the old data would be just great .

Thanks .

drewmccormack commented 8 years ago

That error is usually caused by something only half uploading data. You could clear the cloud data and releech to upload the data again.

To debug, you could use this to see more detail

CDESetLoggingLevel(CDELogLevelVerbose);

Drew

drewmccormack commented 8 years ago

If you have data on one device, the easiest solution is to delete Dropbox data and let that device upload.

If the only data you have is in the cloud, you should be careful. Using the verbose logging, you can see which files are a problem. You could move those out of Dropbox, then delete the app, restart the device and install again. With the problem files gone, hopefully it will pull down the data.

Note that this situation should not arise in Ensenbles 2, only in Ensembles v1.

Kind regards, Drew

On 09 Apr 2016, at 12:39, Vivek Pathania notifications@github.com wrote:

I am using ensembles in my IOS app with Core Data & Dropbox . I was was working perfectly till i added a new model (light weight migration) and updated my device to IOS 9.1 . Now it does not pull the old data from DropBox though i can see all the old files are still their in DropBox . I am stuck with this error every time i try to merge .

I have even tried deleting the app from one of my device and reinstalling it still it starts fresh and does not pull in the old data . Any help in retrieving the old data would be just great .

Thanks .

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

vivekpathania commented 8 years ago

Thanks Drew that helped me fix the issue and pull the old data from the cloud .

Its a a great library thanks :-)