• 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
Error with deleting object in WebObjects and Microsoft SQLServer 2005
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error with deleting object in WebObjects and Microsoft SQLServer 2005


  • Subject: Error with deleting object in WebObjects and Microsoft SQLServer 2005
  • From: Freddie Tilley <email@hidden>
  • Date: Mon, 26 Oct 2009 12:39:58 +0100

I have a Tree object linking to itself via a parent id and when I set
the child relationship to cascade.

But when I delete the parent object (with children), I get the following error:

com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression
failed: : Next exception:SQL State:23000 -- error code: 547 -- msg:
The DELETE statement conflicted with the SAME TABLE REFERENCE
constraint "Tree_parent_FK". The conflict occurred in database
"TreeDatabase", table "dbo.Tree", column 'parentID'.

It looks like the cascade isn't working.

Is there a workaround/fix for this problem?

I'm using WebObjects 5.4.3
SQLServer 2005
And Chuck Hills MicrosoftPlugIn

--
Freddie Tilley
 _______________________________________________
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

  • Follow-Ups:
    • Re: Error with deleting object in WebObjects and Microsoft SQLServer 2005
      • From: Chuck Hill <email@hidden>
    • Re: Error with deleting object in WebObjects and Microsoft SQLServer 2005
      • From: Simon <email@hidden>
  • Prev by Date: Re: Setting bindings in wizard-like page components
  • Next by Date: Re: Error with deleting object in WebObjects and Microsoft SQLServer 2005
  • Previous by thread: Re: Component design question
  • Next by thread: Re: Error with deleting object in WebObjects and Microsoft SQLServer 2005
  • Index(es):
    • Date
    • Thread