• 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
Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist


  • Subject: Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 06 Feb 2015 17:00:34 +0000
  • Thread-topic: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist

While all of that is true, this is a simple fetch of a previously existing object caused by firing a fault. 

Chuck


On 2015-02-06, 8:58 AM, "David Avendasora" wrote:

How about EOF doing things out-of-(expected)-order?

ec.saveChanges() creates 1 transaction.

Let’s say you’ve made a bunch of changes, one of which results in an EO being deleted (cascade-delete, owned objects, etc), but because other EOs that would have been related to it were added before it was deleted from the ec.

I’ve run into situations where an EO is inserted and then deleted by one saveChanges call, only EOF tried to do the delete first which, obviously, failed. I know EOF does not deal with this on it’s own. I found some code in wonder a while ago that deals, I believe, with the situation of inserting and deleting EOs with flattened join tables (consisting of only a compound PK) in one transaction where it simply removes the insert and delete SQL statements from the query. I can’t remember where I saw it and can’t find it now.

Dave


On Feb 5, 2015, at 1:26 PM, Chuck Hill <email@hidden> wrote:

I can think of a few off-the-wall reasons.

  1. The EOF internal state somehow got scrambled.  Good luck with that one!
  2. Some other process (non-EOF) is connected to the database and had that row locked in a way that prevented it from being read
  3. Some code changed the EODatabase snapshot which resulted in the WHERE clause being wrong and then the code changed it back
  4. Ghosts in the machine



—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™
—————————————————————————————
David Avendasora
Senior Software Abuser
Nekesto, Inc.





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

This email sent to email@hidden

References: 
 >prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist (From: OC <email@hidden>)
 >followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist (From: OC <email@hidden>)
 >Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist (From: Chuck Hill <email@hidden>)
 >Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist
  • Next by Date: Re: limiting popupbutton list with a fetchSpec
  • Previous by thread: Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist
  • Next by thread: solved: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist
  • Index(es):
    • Date
    • Thread