• 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
CoreData silently failing to insert?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData silently failing to insert?


  • Subject: CoreData silently failing to insert?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 26 Jan 2009 18:08:06 -0700

I've got another CoreData problem, and this one is quite strange.

In this case, I have an entity that subclasses an abstract entity, and for some very strange reason I cannot diagnose, it will only save managed objects in that entity if the properties have very specific values in them.

Now, I know what you're thinking, but yes, I am validating the objects before inserting them, and they pass the validation, and the object is returned by -insertedObjects prior to the save, and saving does not cause the NSManagedObjectContext to return an error. The save goes absolutely perfectly, except that the objects aren't actually saved.

The objects have zero constraints, except that all properties must be set (and they are; I checked).

I already tried:
* changing the backing store from SQLite to XML; the same thing happened
* setting and changing constraints on some of the properties; nothing changed, although setting one to be too narrow for its normal range did generate expected validation errors
* changing the property names; didn't make a difference
* running the app with or without GC; non
* running the app as either X86 or X86-64; not that either
* running the app with the command line option - com.apple.CoreData.SQLDebug 3, and sure enough, despite the records validating and the MOC returning no errors upon save, no INSERT INTO command is issued to sqlite except for the handful of records with very specific values in them


What do I do now? (And I'm hoping I get an "are you sure it's plugged in?"-type answer that turns out to be correct...)

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


  • Follow-Ups:
    • [SOLVED] Re: CoreData silently failing to insert?
      • From: Nick Zitzmann <email@hidden>
    • Re: CoreData silently failing to insert?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: ass/ssa support
  • Next by Date: Re: Properties and memory management with overrides.
  • Previous by thread: ass/ssa support
  • Next by thread: Re: CoreData silently failing to insert?
  • Index(es):
    • Date
    • Thread