<?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 : Error : Null Entity cannot be modified</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Error : Null Entity cannot be modified</description>
  <pubDate>Thu, 11 Jun 2026 09:18:42 -700</pubDate>
  <lastBuildDate>Tue, 05 Feb 2008 16:32:25 -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=673</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>Error : Null Entity cannot be modified : Figured out what the problem was....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2510#2510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=101" rel="nofollow">JulianBenjamin</a><br /><strong>Subject:</strong> 673<br /><strong>Posted:</strong> 05-Feb-2008 at 4:32pm<br /><br />Figured out what the problem was.&nbsp; I was using two different PersistenceManagers, one to retrieve the data, and the other to save the data.]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 16:32:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2510#2510</guid>
  </item> 
  <item>
   <title>Error : Null Entity cannot be modified : But it&amp;#039;s not a NullEntity,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2508#2508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=101" rel="nofollow">JulianBenjamin</a><br /><strong>Subject:</strong> 673<br /><strong>Posted:</strong> 05-Feb-2008 at 11:46am<br /><br />But it's not a NullEntity, because that record actually exists in the database.]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 11:46:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2508#2508</guid>
  </item> 
  <item>
   <title>Error : Null Entity cannot be modified : You need to use UpdateNullEntity()....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2506#2506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 673<br /><strong>Posted:</strong> 05-Feb-2008 at 9:43am<br /><br />You need to use <FONT size=2><strong>UpdateNullEntity().</strong> <DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>The DevForce Developer's Guide says this:</DIV><DIV><P>The null entity cannot be changed, deleted, or saved. But the savvy developer can redefine a null entity&#8223;s default property responses by overriding the <FONT face="Lucida C&#111;nsole,Lucida C&#111;nsole"><strong>UpdateNullEntity()</strong> </FONT>method in the entity&#8223;s Developer class. She could change the <FONT face="Lucida C&#111;nsole,Lucida C&#111;nsole"><strong>Address.City</strong> </FONT>property, for example, so that it returns the string "&lt;unknown&gt;". </P><DIV></DIV><P><FONT size=1><FONT size=2>See this tutorial if you want an example:</P><DIV></DIV><img src="http://www.ideablade.com/forum/uploads/20080205_124415_UpdateNullEntit.JPG" height="384" width="676" border="0" /></FONT></FONT></DIV></FONT><span style="font-size:10px"><br /><br />Edited by davidklitzke - 05-Feb-2008 at 9:44am</span>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 09:43:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2506#2506</guid>
  </item> 
  <item>
   <title>Error : Null Entity cannot be modified : I&amp;#039;m getting the following...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2503#2503</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=101" rel="nofollow">JulianBenjamin</a><br /><strong>Subject:</strong> 673<br /><strong>Posted:</strong> 05-Feb-2008 at 6:35am<br /><br />I'm getting the following error when setting a value of a related entity.<DIV>&nbsp;</DIV><DIV>I have a ItemData entity, and it's related ProductDescription record (joined via ItemNumber in the Entity Relations tab).</DIV><DIV>&nbsp;</DIV><DIV>When I retrieve the ItemData record, I can use ItemData.ProductDescription.ItemText and get the value, as the record exists in the ProductDescription table.&nbsp; However, when saving the data, I'm assigning a value to the ItemText field in the ItemData.ProductDescription object using ItemData.ProductDescription.ItemText = x and I get a Null Entity Cannot be modified error.</DIV><DIV>&nbsp;</DIV><DIV>Any ideas?&nbsp; I've pasted the exception below.</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0033ff>IdeaBlade.Util.IdeaBladeException was unhandled by user code<BR>&nbsp; Message="Null entity cannot be modified"<BR>&nbsp; Source="IdeaBlade.Persistence"<BR>&nbsp; StackTrace:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.Persistence.EntityTable.OnColumnChanging(DataColumnChangeEventArgs pArgs)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Data.DataRow.set_Item(DataColumn column, Object value)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.Persistence.Entity.SetColumnValue(DataColumn pSetColumn, Object pValue)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at ComNET.Data.ProductDescriptionDataRow.SetItemTextImpl(String value) in D:\code\CatalogManager\CatalogManager.Data\ComNET.Data\ProductDescriptionDataRow.cs:line 488<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at ComNET.Data.ProductDescriptionDataRow.set_ItemText(String value) in D:\code\CatalogManager\CatalogManager.Data\ComNET.Data\ProductDescriptionDataRow.cs:line 480<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at CatalogManager.ItemDetail.btnSave_Click(Object sender, EventArgs e) in D:\code\CatalogManager\CatalogManager\ItemDetail.aspx.cs:line 211<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at DevExpress.Web.ASPxEditors.ASPxButton.OnClick(EventArgs e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at DevExpress.Web.ASPxEditors.ASPxButton.RaisePostBackEvent(String eventArgument)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at DevExpress.Web.ASPxClasses.ASPxWebControl.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<BR>&nbsp; InnerException: <BR></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 06:35:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=673&amp;PID=2503#2503</guid>
  </item> 
 </channel>
</rss>