<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic edit actions corrupting database in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-actions-corrupting-database/m-p/402846#M10748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have developed a C# ArcMap (COM) program that processes iTopologicalOperator unions and IFeatureEdit splits on a line Featureclass.&amp;nbsp; I store the edits (in a dictionary) then process the edits when the user presses "Save".&amp;nbsp; Periodically, I get an issue where a feature is corrupted that is FAR AWAY from the area that I am editing.&amp;nbsp; The corrupt feature seems to have nothing to do with any of my edits.&amp;nbsp; When looking at the attributes of the corrupt feature in ArcCatalog, there are a bunch of special characters in the text fields and negative values in the int fields.&amp;nbsp; My program never even looks at the majority of these attributes.&amp;nbsp; It almost seems as if ArcObjects just picks a feature and messes it up!&amp;nbsp; You can see the result depicted in the attached image...the edits occur where the lines are highlighted in blue.&amp;nbsp; Meanwhile, the edits I made are correctly applied to the lines I edited.&amp;nbsp; If a user only edits one feature, then saves...seems like everything works OK.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There seems to be no method to the madness, as a different line seems to be corrupt almost every time...sometimes it affects multiple lines...sometimes it affects no lines.&amp;nbsp; However, if I find a sequence that causes it, I can usually re-create it.&amp;nbsp; It seems to me that memory is getting full somewhere, causing ArcMap to randomly choose a piece of data.&amp;nbsp; Or, maybe something is happening with the spatial reference or something??&amp;nbsp; Anyone ever have this happen??&amp;nbsp; I have been working on it for days and have so far: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-messed with the union and snaptospatialreference...however it doesn't seem to be this, as at one point I just took the Union code COMPLETELY out and still had the issue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-tried putting more stopoperation and startoperations in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-tried putting in more Marshal.ReleaseCom calls&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ANY ideas?&amp;nbsp; This is driving me nuts...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jan 2011 20:40:01 GMT</pubDate>
    <dc:creator>LisaT</dc:creator>
    <dc:date>2011-01-20T20:40:01Z</dc:date>
    <item>
      <title>edit actions corrupting database</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-actions-corrupting-database/m-p/402846#M10748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have developed a C# ArcMap (COM) program that processes iTopologicalOperator unions and IFeatureEdit splits on a line Featureclass.&amp;nbsp; I store the edits (in a dictionary) then process the edits when the user presses "Save".&amp;nbsp; Periodically, I get an issue where a feature is corrupted that is FAR AWAY from the area that I am editing.&amp;nbsp; The corrupt feature seems to have nothing to do with any of my edits.&amp;nbsp; When looking at the attributes of the corrupt feature in ArcCatalog, there are a bunch of special characters in the text fields and negative values in the int fields.&amp;nbsp; My program never even looks at the majority of these attributes.&amp;nbsp; It almost seems as if ArcObjects just picks a feature and messes it up!&amp;nbsp; You can see the result depicted in the attached image...the edits occur where the lines are highlighted in blue.&amp;nbsp; Meanwhile, the edits I made are correctly applied to the lines I edited.&amp;nbsp; If a user only edits one feature, then saves...seems like everything works OK.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There seems to be no method to the madness, as a different line seems to be corrupt almost every time...sometimes it affects multiple lines...sometimes it affects no lines.&amp;nbsp; However, if I find a sequence that causes it, I can usually re-create it.&amp;nbsp; It seems to me that memory is getting full somewhere, causing ArcMap to randomly choose a piece of data.&amp;nbsp; Or, maybe something is happening with the spatial reference or something??&amp;nbsp; Anyone ever have this happen??&amp;nbsp; I have been working on it for days and have so far: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-messed with the union and snaptospatialreference...however it doesn't seem to be this, as at one point I just took the Union code COMPLETELY out and still had the issue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-tried putting more stopoperation and startoperations in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-tried putting in more Marshal.ReleaseCom calls&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ANY ideas?&amp;nbsp; This is driving me nuts...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 20:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/edit-actions-corrupting-database/m-p/402846#M10748</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2011-01-20T20:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: edit actions corrupting database</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-actions-corrupting-database/m-p/402847#M10749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A little more information:&amp;nbsp; I have now taken EVERYTHING out except one button that starts an edit operation/starts editing and one button that stops an edit operation/stops editing...still having the issue.&amp;nbsp; Anyone know why an edit session started via code might corrupt data?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 03:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/edit-actions-corrupting-database/m-p/402847#M10749</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2011-01-25T03:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: edit actions corrupting database</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/edit-actions-corrupting-database/m-p/402848#M10750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, last post...I have found that this is a database issue.&amp;nbsp; It is occurring on multiple test databases so it is hard to track down, however I can make the corruption happen by starting/stopping an edit session in ArcMap.&amp;nbsp; It also occurs when editing a "GUID" field that is denoted as a 40-character string.&amp;nbsp; It is my guess that the brackets "{}" around the GUID are causing the corruption. Will keep testing! But not an ArcObjects issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 17:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/edit-actions-corrupting-database/m-p/402848#M10750</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2011-02-09T17:47:01Z</dc:date>
    </item>
  </channel>
</rss>

