Re: Can't insert a second record?!
Re: Can't insert a second record?!
- Subject: Re: Can't insert a second record?!
- From: Chuck Hill <email@hidden>
- Date: Mon, 8 Mar 2004 18:38:48 -0800
Usually this means that you have called insertObject on an eo that you
have already inserted and saved.
chuck
On Mar 7, 2004, at 5:20 PM, James Cicenia wrote:
> Here is my error message... seems as though the id isn't getting
> incremented in the second insert?
>
> java.lang.IllegalStateException: recordInsertForObject:
> com.webobjects.eoaccess.EODatabaseContext
> com.webobjects.eoaccess.EODatabaseContext@26172f found a snapshot for
> EO with Global ID:_EOIntegralKeyGlobalID[PortfolioRole
> (java.math.BigDecimal)408] that has been inserted into
> com.webobjects.eocontrol.EOEditingContextcom.webobjects.eocontrol.EOEdi
> tingContext@95ba08. Cannot insert an object that is already in the
> database
>
> Thoughts help?
>
> -James Cicenia_______________________________________________
> WebObjects-dev mailing list
> email@hidden
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.