Print Page | Close Window

This row has been removed from a table and does not have any data

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=191
Printed Date: 12-Jun-2026 at 5:43am


Topic: This row has been removed from a table and does not have any data
Posted By: Customer
Subject: This row has been removed from a table and does not have any data
Date Posted: 12-Jul-2007 at 3:08pm

I'm getting the following exception in my WinForms application.  The
PrePODataRow class you see in the stack trace is built by the ORM.  Has
anyone seen this, and are there any tips on preventing this type of error
from occurring? 


"This row has been removed from a table and does not have any data"




Replies:
Posted By: IdeaBlade
Date Posted: 12-Jul-2007 at 3:09pm
You are getting the RowNotInTableException .
 
http://msdn2.microsoft.com/en-us/library/system.data.rownotintableexception.aspx - http://msdn2.microsoft.com/en-us/library/system.data.rownotintableexception.aspx
 
We have been seeing this error more and more frequently.  It has been typically caused by removing an entity from the PersistenceManager cache through either PM.Clear()) or PM.Remove().  Although the row (i.e., Business Object) is successfully removed from the cache, references may still exist to the Entity typically in an EntityList, but also possibly through an Event Handler, Property Descriptor on the entity, or a control on a Grid.  When your software tries to access this missing Entity, you will get the RowNotInTableException.



Print Page | Close Window