Re: Core Data: Error while saving. Multiple validation errors occurred.
Re: Core Data: Error while saving. Multiple validation errors occurred.
- Subject: Re: Core Data: Error while saving. Multiple validation errors occurred.
- From: "Ayers, Joseph" <email@hidden>
- Date: Tue, 14 Dec 2010 18:18:12 -0500
- Acceptlanguage: en-US
- Thread-topic: Core Data: Error while saving. Multiple validation errors occurred.
When I log Userinfo from the save operation,
NSError *error = nil; //Now try saving the data
if (![[self managedObjectContext] save: &error]) {
NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
I get:
2010-12-14 17:40:19.829 Roboplasm[23542:903] Unresolved error Error Domain=NSCocoaErrorDomain Code=1560 UserInfo=0x43f870 "Multiple validation errors occurred.", {
NSDetailedErrors = (
Error Domain=NSCocoaErrorDomain Code=1570 UserInfo=0x43ec90 "TapeDate is a required value.",
Error Domain=NSCocoaErrorDomain Code=1570 UserInfo=0x43f2e0 "ClipDate is a required value.",
Error Domain=NSCocoaErrorDomain Code=1570 UserInfo=0x43f830 "TableDate is a required value."
);
}
Indeed, these are the attributes that I added to the entities that are specified with type "date". I'm at a loss for how to rectify this.
Joseph
On Dec 14, 2010, at 2:49 PM, Nick Zitzmann wrote:
>
> On Dec 14, 2010, at 12:21 PM, Ayers, Joseph wrote:
>
>>> I changed a couple attributes of three properties in my data model. Even if I trash the previous store, I get the error:
>>> Error while saving
>>> Multiple validation errors occurred.
>>>
>>> Any idea what is causing this
>
> Usually it happens because you tried to add or modify several records at once and did not push a value for a required property in more than one of them. I think that error also happens if you left a dangling reference in a relationship property for more than one record.
>
>>> or where to look for a fix?
>
> Check the error's userInfo for more information about what went wrong. The userInfo dictionary will contain more specific information about what went wrong.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
_______________________________________________
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