• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[SOLVED] Re: Core Data: attempt to insert nil key exception on save:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: Core Data: attempt to insert nil key exception on save:


  • Subject: [SOLVED] Re: Core Data: attempt to insert nil key exception on save:
  • From: Paul Collins <email@hidden>
  • Date: Fri, 23 Jun 2006 10:23:48 -0700

Some of the objects in the model did not belong to the named Configuration that the persistent store coordinator was set to use. The error was triggered by a relationship defined in the model between an Entity that had no Configuration and one that did have a Configuration.

A more subtle problem occurs without the relationship property. If your persistent store coordinator is coded to use a named Configuration, and you save objects that have no Configuration in their model definition, the saved XML file has empty strings where entity and property names should be, such as <object type="" id="z102">. No exception or error is reported on -save. I don't know what happens in the other two file formats. (OS X 10.4.6).

--Paul Collins
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Core Data: attempt to insert nil key exception on save: (From: Paul Collins <email@hidden>)
 >Re: Core Data: attempt to insert nil key exception on save: (From: Paul Collins <email@hidden>)

  • Prev by Date: Maintaining "lite" application
  • Next by Date: Re: Document-based apps/Alert sheet
  • Previous by thread: Re: Core Data: attempt to insert nil key exception on save:
  • Next by thread: File system activity reporter
  • Index(es):
    • Date
    • Thread