• 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 "Could Not Merge Changes"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData "Could Not Merge Changes"


  • Subject: CoreData "Could Not Merge Changes"
  • From: Jesse Grosjean <email@hidden>
  • Date: Sat, 13 Aug 2005 11:03:00 -0400

I'm getting a "Could not merge changes" error, the documentation says that this error is caused when two different managed object contexts try to change the same data. But in my case I only have a single managed object context. I can recreate the error this way:

1. save a new managed object context.
2. Insert a new object into the managed object context.
3. change attribute of that object.
4. save managed object context.
5. undo twice, so that the attribute is unset and the object is removed from the managed object context.
6. save managed object context.
7. redo once
8. try to save the managed object context.


At this point I get the "Could not merge changes" error in my application. I also get errors (though different ones) if I try this same test sequence in the the CoreData EventManger example. I can get rid of the problem by setting a merge policy, but I wasn't expecting to have to do this since I'm only using a single managed object context.

Can someone let me know if the above is expected behavior, and what the recommended solution is. I'm happy to set a merge policy if that's what I need to do.

Thanks,
Jesse
_______________________________________________
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


  • Follow-Ups:
    • Re: CoreData "Could Not Merge Changes"
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Screen snapshot example code posted
  • Next by Date: NSTableView, bindings, and a background color
  • Previous by thread: how can button cells in a table view made first responders?
  • Next by thread: Re: CoreData "Could Not Merge Changes"
  • Index(es):
    • Date
    • Thread