<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : New error saving Entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : New error saving Entities</description>
  <pubDate>Wed, 10 Jun 2026 10:02:55 -700</pubDate>
  <lastBuildDate>Tue, 20 Jul 2010 16:16:43 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1961</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>New error saving Entities : There might be difficulty when...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7703#7703</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 20-Jul-2010 at 4:16pm<br /><br /><P>There might be difficulty when there are large graphs with multiple paths between two objects although it *should* be able to figure that out.&nbsp; Other dependencies that DevForce is not aware of could also cause problems (e.g. triggers).</P><DIV></DIV>]]>
   </description>
   <pubDate>Tue, 20 Jul 2010 16:16:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7703#7703</guid>
  </item> 
  <item>
   <title>New error saving Entities : I&amp;#039;ll review the schema changes...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7663#7663</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 16-Jul-2010 at 9:28am<br /><br />I'll review the schema changes in other areas that were made before the version upgrade to see what was introduced.  Are there specific patterns, other than the circularity you mentioned, that you know to be "complex"?  I have about 430 entities defined in my Model, does size affect complexity?  Anything else you can think of to look for?]]>
   </description>
   <pubDate>Fri, 16 Jul 2010 09:28:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7663#7663</guid>
  </item> 
  <item>
   <title>New error saving Entities : A few notes (you can find these...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7652#7652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 15-Jul-2010 at 5:19pm<br /><br />A few notes (you can find these in the API reference for PersistenceOrder):<DIV>&nbsp;</DIV><DIV>Any entity types that are not specified will be treated as if appearing after the specified types. </DIV><DIV>&nbsp;</DIV><DIV>Processing of a save operation will be handled internally in the following sequence: </DIV><DIV>1)&nbsp; First all deletes for all tables will be processed in the inverse order to that specified by the PersistenceOrder.<BR>2)&nbsp; Next inserts and updates will be processed in the specified PersistenceOrder.<BR></DIV><DIV>Manually specifying the order for all types is a hassle, as you noted.&nbsp; You can call get on PersistenceOrder to get the default ordering of types first, then&nbsp;move the few that are problematic to the correct location, and finally call set on PersistenceOrder to use the corrected ordering.</DIV><DIV>&nbsp;</DIV><DIV>We didn't appear to change the code in the area from v3.6.4.1 to v3.6.10.0, so I'm not sure why this is showing up now.&nbsp; If you made&nbsp;schema/relationship changes/additions to other areas, it's possible that the graph is complex enough or has a circularity that DevForce is having trouble resolving it.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 15 Jul 2010 17:19:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7652#7652</guid>
  </item> 
  <item>
   <title>New error saving Entities : I&amp;#039;m attempting the workaround...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7647#7647</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 15-Jul-2010 at 10:21am<br /><br />I'm attempting the workaround you directed me to, but it just seems to be pushing the problem around.  I created the following list of 4 types:<ul><li>BillHeader</li><li>BillHeaderExtension</li><li>BillLineItem</li><li>BillLineItemExtension</li></ul> and set them into the PersistenceManager's DefaultSaveOptions.PersistenceOrder.  The effect of the change was immediate, any transaction involving any of the 4 types began to fail, but with other "save order" related errors.  I tried adding more types to the list, and each time I did, those items would no longer be the source an error, but others would.<br /><br />Am I going to have to define the save order for each entity in my model?]]>
   </description>
   <pubDate>Thu, 15 Jul 2010 10:21:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7647#7647</guid>
  </item> 
  <item>
   <title>New error saving Entities : RTFM?  Gotcha, will do. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7642#7642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 15-Jul-2010 at 6:05am<br /><br />RTFM?  Gotcha, will do.]]>
   </description>
   <pubDate>Thu, 15 Jul 2010 06:05:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7642#7642</guid>
  </item> 
  <item>
   <title>New error saving Entities : Yes we are. See the &amp;#034;Persistence...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7634#7634</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 14-Jul-2010 at 6:24pm<br /><br />Yes we are.&nbsp; See the "Persistence Order" section of the Developers Guide.&nbsp; You have the option to specify the save order if the system cannot reliably figure it out for you.]]>
   </description>
   <pubDate>Wed, 14 Jul 2010 18:24:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7634#7634</guid>
  </item> 
  <item>
   <title>New error saving Entities : Are the &amp;#034;Classic&amp;#034; boards...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7631#7631</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 14-Jul-2010 at 1:29pm<br /><br />Are the "Classic" boards still being monitored by IdeaBlade folks?]]>
   </description>
   <pubDate>Wed, 14 Jul 2010 13:29:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7631#7631</guid>
  </item> 
  <item>
   <title>New error saving Entities : We recently updated from v3.6.4.1...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7610#7610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1961<br /><strong>Posted:</strong> 13-Jul-2010 at 9:10am<br /><br />We recently updated from v3.6.4.1 to v3.6.10.0, and are now encountering a frustrating, intermittent error. The error is <font face="Courier New, Courier, mono">IdeaBlade.Persistence.PersistenceManagerSaveException: Save failed - The INSERT statement conflicted with the FOREIGN KEY constraint "FK_BillLineItemExtension_BillLineItem".</font> It appears that the "child" (BillLineItemExtension) record is being INSERTed prior to the "parent" (BillLineItem) record.<br /><br />I've verified the following:<br /><ul><li>The entities are being created and added to the PersistenceManager in the correct order</li><li>The code hasn't changed in several years</li><li>Retrying the specific bill without changes to the code or the bill results in a successful save.</li></ul><br />The error is not specific to the BillLineItem - BillLineItemExtension entities/tables, there are several parent/child scenarios that will intermittently demonstrate the problem. This is just the one I picked to put in the post.<br /><br />Any ideas?<br /><br />Thanks,<br />Dan]]>
   </description>
   <pubDate>Tue, 13 Jul 2010 09:10:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1961&amp;PID=7610#7610</guid>
  </item> 
 </channel>
</rss>