<?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 : EntitySaveOperation.Cancelled is true</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : EntitySaveOperation.Cancelled is true</description>
  <pubDate>Mon, 13 Apr 2026 09:56:27 -700</pubDate>
  <lastBuildDate>Sun, 20 Mar 2011 22:16:04 -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=2449</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>EntitySaveOperation.Cancelled is true : I was not able to reproduce this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=10222#10222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2449<br /><strong>Posted:</strong> 20-Mar-2011 at 10:16pm<br /><br /><div>I was not able to reproduce this issue.</div><div> </div><div>I tried adding/deleting orders from employees and or customers but had no issues.</div><div> </div><div>I created a model similar to NorthwindIB (the difference is that CustomerID is Serial instead of Guid) to test it.</div><div> </div><div>Can you provide a test case reproducing the problem?</div><div> </div><div>Silvio.</div>]]>
   </description>
   <pubDate>Sun, 20 Mar 2011 22:16:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=10222#10222</guid>
  </item> 
  <item>
   <title>EntitySaveOperation.Cancelled is true : Hi danjal,  I&amp;#039;m working...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9730#9730</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2449<br /><strong>Posted:</strong> 20-Jan-2011 at 5:01pm<br /><br />Hi danjal,<DIV>&nbsp;</DIV><DIV>I'm working on getting informix working with VS2010/DevForce2010.</DIV><DIV>&nbsp;</DIV><DIV>Once I get this working, I will run some tests and figure out what's going on.</DIV><DIV>&nbsp;</DIV><DIV>It's still unclear to me why you are using SetModified. What do you mean by "<SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT size=3 face=Calibri><EM>get things working/response</EM></FONT></SPAN>"?</DIV>]]>
   </description>
   <pubDate>Thu, 20 Jan 2011 17:01:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9730#9730</guid>
  </item> 
  <item>
   <title>EntitySaveOperation.Cancelled is true : We found something interesting...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9706#9706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=946" rel="nofollow">danjal</a><br /><strong>Subject:</strong> 2449<br /><strong>Posted:</strong> 19-Jan-2011 at 2:32am<br /><br /><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT face=Calibri><FONT size=3>We found something interesting yesterday!<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT face=Calibri><FONT size=3>I do not know if this is a DevForce issue or a Informix database issue.<o:p></o:p></FONT></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT face=Calibri><FONT size=3>We have experienced huge problems when adding/removing child entities to/from a parent entity´s navigation property and subsequently saving to the database.<o:p></o:p></FONT></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT face=Calibri><FONT size=3>The interesting bit that we have found is that this problems can have something to do with the fact that if the parent entity has fields that are set to Nullable = false and that these fields are empty when we save, the save operation gets cancelled without any error or exception – in some cases we are only interested in updating the parent navigation property.<o:p></o:p></FONT></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT face=Calibri><FONT size=3>Does anyone have any input one this?<o:p></o:p></FONT></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT face=Calibri>Setting the parent entity to SetModified is my attempt to hammer at everything to gets things working/response </FONT></SPAN><SPAN style="FONT-FAMILY: Wingdings; mso-ansi-: EN-US; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings; mso-char-: symbol" lang=EN-US><SPAN style="mso-symbol-font-family: Wingdings; mso-char-: symbol">J</SPAN></SPAN><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT face=Calibri> sorry.<o:p></o:p></FONT></SPAN></FONT></P>]]>
   </description>
   <pubDate>Wed, 19 Jan 2011 02:32:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9706#9706</guid>
  </item> 
  <item>
   <title>EntitySaveOperation.Cancelled is true : Hi danjal,   Why are you settingp_currentTheme...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9681#9681</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2449<br /><strong>Posted:</strong> 18-Jan-2011 at 4:10pm<br /><br />Hi danjal, <DIV>&nbsp;</DIV><DIV>Why are you setting&nbsp;<SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US>p_currentTheme</SPAN> to modified? (There is no need to do that)</DIV><DIV>&nbsp;</DIV><DIV>When you add/remove a child_entity to/from a parent_entity's navigation property, the parent_entity's state remains Unchanged and only the child_entity's state is set to Modified (or remains/is set to Added, if the child_entity is a new entity)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>sbelini</DIV>]]>
   </description>
   <pubDate>Tue, 18 Jan 2011 16:10:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9681#9681</guid>
  </item> 
  <item>
   <title>EntitySaveOperation.Cancelled is true : How is newValue being instantiated?...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9675#9675</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2449<br /><strong>Posted:</strong> 18-Jan-2011 at 9:21am<br /><br />How is newValue being instantiated? You certainly don't want to be calling "SetModified" are you adding this new user to the entity manager cache? <br>]]>
   </description>
   <pubDate>Tue, 18 Jan 2011 09:21:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9675#9675</guid>
  </item> 
  <item>
   <title>EntitySaveOperation.Cancelled is true : I have an entity of type Theme...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9674#9674</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=946" rel="nofollow">danjal</a><br /><strong>Subject:</strong> 2449<br /><strong>Posted:</strong> 18-Jan-2011 at 4:05am<br /><br /><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US>I have an entity of type Theme and another entity of type User.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US>My theme entity has a list of users that have access to this theme.<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US>I add a new user to have access to a theme like this:<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US>p_currentTheme.p_usersWithAccess.Add(newValue);<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-ansi-: EN-US" lang=EN-US>p_currentTheme.EntityAspect.SetModified();<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><FONT size=3><FONT face=Calibri>This works fine in cache, but when saving the changes to the database, I see that EntitySaveOperation.Cancelled gets set to true. Is there any way to debug this further to see what is actually wrong?<o:p></o:p></FONT></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-US" lang=EN-US><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P>]]>
   </description>
   <pubDate>Tue, 18 Jan 2011 04:05:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2449&amp;PID=9674#9674</guid>
  </item> 
 </channel>
</rss>