Re: Core Data : Undo Delete : Cannot fulfill a fault
Re: Core Data : Undo Delete : Cannot fulfill a fault
- Subject: Re: Core Data : Undo Delete : Cannot fulfill a fault
- From: Dave Fernandes <email@hidden>
- Date: Wed, 28 Sep 2011 22:21:25 -0400
I tried to reproduce this problem in my app and couldn't. I got these types of exceptions in the past when I was using KVO with my managed objects, but I no longer do that. If you aren't either, then I don't have any other suggestions.
In my app, I have parent objects with many child objects that have component objects. The component objects are large and don't get faulted in when opening a document. There is a cascade delete rule from child to component.
I deleted a child object and saved the document. Then I performed an undo operation, and the child and its component were both correctly brought back to life (I could edit both of them), even though the component had never been faulted in before the delete. So Core Data is saving their attributes somewhere other than the persistent store.
On 2011-09-27, at 12:56 PM, Jerry Krinock wrote:
>
> On 2011 Sep 26, at 11:57, Dave Fernandes wrote:
>
>> Does the deleted object have relationships?
>
> Yes. The object is of entity Foo which are classic tree nodes. There is a root Foo; Foo objects have to-one parents and to-many children, etc.
>
>> What is the state of those objects?
>
> It's always the same "exceptional" object which whose deletion is unable to be undone because Core Data could not fulfill a fault. Its parent is an object that was not deleted and therefore does not need to be restored. It has one child which has already been successfully restored at the time the exception occurs.
>
> I now have an AppleScript which reproduces the problem. The Core Data exception does not happen on every run, but on more than half.
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden