<?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 Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile) in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430326#M16614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon taking a closer look at your workflow, why don't you suggest all the 3 editors to delete and recreate their versions after reconcile/post with the Admin version is done.&amp;nbsp; That is also a recommended workflow to recreate your versions from time to time.&lt;/P&gt;&lt;P&gt;You can automate this as a script as well if needed, to be executed at the desired day/time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 04:14:19 GMT</pubDate>
    <dc:creator>AsrujitSengupta</dc:creator>
    <dc:date>2014-08-21T04:14:19Z</dc:date>
    <item>
      <title>sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430316#M16604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am managing a production workflow with about a half-dozen editors in a versioned environment set up against a single ArcSDE instance (SQL Server 2008).&amp;nbsp; Every once in a while something will happen where the editors will begin getting errors on reconcile about duplicate keys.&amp;nbsp; Upon looking into the issue, I discovered that though there are two physical records in the geometry (duplicates) but only one record in the business table and the system will not allow a delete of the object(s).&amp;nbsp; My initial thought was "multi-part feature" so explode, of course the result was "no multipart features found...".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since it would not let the editor reconcile, I have been able to delete the affected version and recreate it minimizing the losses but it's still a loss...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the thing.&amp;nbsp; I am using Excel to track and report editing progress.&amp;nbsp; I do this by executing sql queries (built and tested in SQL Server) through Excel data connections to read the contents into a worksheet, pivot the results and create graphs and charts.&amp;nbsp; This is nothing new.&amp;nbsp; I've been doing this for years and have never had a problem before.&amp;nbsp; However, I've surmised that the error happens when there are active editing sessions and I run the reports.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have therefore suspended the use of tracking progress using Excel but now I am faced with reporting progress some other way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone understands what may be happening here I would appreciate some insight so I can plan a new path for reporting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave Jenkins&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 19:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430316#M16604</guid>
      <dc:creator>DavidJenkins</dc:creator>
      <dc:date>2013-04-16T19:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconc</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430317#M16605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;are you installed available patches for sql server and arcgis?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 18:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430317#M16605</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-04-17T18:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconc</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430318#M16606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;are you installed available patches for sql server and arcgis?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I'm somewhat a stickler for such things.&amp;nbsp; I try to pushed forward as much as possible with all patches unless there's a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since my last post I've completely disassociated my reports from the database but we occasionally have the same issue.&amp;nbsp; The editors will be working when all of the sudden one of them will have the error "cannot insert duplicate key" upon reconcile.&amp;nbsp; Then another one will get it and another... and so on.&amp;nbsp; Upon monitoring the issue more closely we're closing in on the fact that the issues seem to occur "around" the same time of day.&amp;nbsp; I'm working with our IT department to see if they're performing any maintenance during these times but it seems unlikely.&amp;nbsp; I'm wondering if it may be related to communication disruptions with the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave Jenkins&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 18:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430318#M16606</guid>
      <dc:creator>DavidJenkins</dc:creator>
      <dc:date>2013-04-17T18:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430319#M16607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saw your post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having exactly the same issue and cannot figure out why it is happening.&amp;nbsp; Same thing as you report, every now and again we're getting duplicate primary key errors when GIS officers attempt to reconcile.&amp;nbsp; ESRI support have thus far been stumped as well.&amp;nbsp; We can go for months without issue - then boom, we cannot get rid of the issue no matter what we try. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you have any luck at all in figuring this out? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 01:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430319#M16607</guid>
      <dc:creator>TerryAdams</dc:creator>
      <dc:date>2014-08-21T01:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430320#M16608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did "sdegdbrepair -o daignose_table" report any inconsistency?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 02:20:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430320#M16608</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-08-21T02:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430321#M16609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unsure of the command used I admit (not done by me), but yes, after the last reconcile / post we have duplicates reported in each of the editors' (3 of) versions when we run a command line check.&amp;nbsp; We do have a command line repair tool ESRI alerted us to which fixes the problem.&amp;nbsp; However, this requires all users to be disconnected from the system which has implications in our environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To perhaps make the situation more clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Editor 1 reconcile/post with admin version&lt;/P&gt;&lt;P&gt;Editor 2 reconcile/post with admin version&lt;/P&gt;&lt;P&gt;Editor 3 reconcile/post with admin version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Editor 2 reconcile with admin version&lt;/P&gt;&lt;P&gt;Editor 1 reconcile with admin version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to get all 3 editors versions the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Admin Reconcile / Post with SDE default.&lt;/P&gt;&lt;P&gt;Admin compress the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If editor1, 2 or 3 then tries to reconcile again....... duplicate primary Key is reported.&amp;nbsp; This would - upon some research - appear to be a standard SQL duplicate primary key error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load in the suspect dataset into arcmap.&lt;/P&gt;&lt;P&gt;open the attribute table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you find is that when you select one of the 'duplicated' features,the attribute table will report 2 selected features, I assume because there are two entries in the database using the same primary key. You can also try highlighting one feature from the attribute table and you will also get two features being reported as selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone who's had this happen and can share info about it we'd like to hear from you.&amp;nbsp; We are stumped. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 02:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430321#M16609</guid>
      <dc:creator>TerryAdams</dc:creator>
      <dc:date>2014-08-21T02:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430322#M16610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"sdegdbrepair -o daignose_table"&lt;/SPAN&gt; and report the output here. it may provide a better insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/geodatabase/10.0/admin_cmds/support_files/whnjs.htm" title="http://help.arcgis.com/en/geodatabase/10.0/admin_cmds/support_files/whnjs.htm"&gt;ArcSDE Administration Command Reference&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Server:&amp;nbsp; sdegdbrepair -o diagnose_tables -d SQLSERVER -V ALL -s sqlserver_instance_name -p sa -u sa_password -D test -i sde:sqlserver:sqlserver_instance_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle:&amp;nbsp; sdegdbrepair -o diagnose_tables -d ORACLE11G -V ALL -u sde -p sde_password@oracle_netservice_name -s server_name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 02:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430322#M16610</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-08-21T02:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430323#M16611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Asrujit - thanks for your help. Appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Output from the command is as follows.&amp;nbsp; This *was* the command we were using as it turns out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #1f497d;"&gt;***&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #1f497d;"&gt;402 duplicate rows found in&lt;BR /&gt;ARCSDE.GISDBA.COB_HOUSE_NOS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; Versions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;SPATIALOFFICER1.SpatialOfficer1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #1f497d;"&gt;Diagnose Tables: 235&lt;BR /&gt;multiversioned tables examined,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;1 multiversioned tables had orphaned, duplicate, missing or redundant rows.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 03:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430323#M16611</guid>
      <dc:creator>TerryAdams</dc:creator>
      <dc:date>2014-08-21T03:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430324#M16612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So as the output indicates,there are duplicate entries present in the geodatabase which needs to be taken care off. &lt;/P&gt;&lt;P&gt;Now take a full database backup and then run the "sdegdrepair -o repair_tables" command to remove these duplicate records. Make sure that nobody is connected to the geodatabase and working on it when you execute this command. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 03:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430324#M16612</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-08-21T03:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430325#M16613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will take care of the errors for now, however if this is a regular/frequent observation, I would suggest looking into your workflow once more. Maybe discussing with ESRI Tech-Support will give you a better idea. &lt;/P&gt;&lt;P&gt;Also is all the editing done using ArcGIS applications? Or 3rd Party Applications are used to edit\update the data as well? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 03:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430325#M16613</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-08-21T03:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430326#M16614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon taking a closer look at your workflow, why don't you suggest all the 3 editors to delete and recreate their versions after reconcile/post with the Admin version is done.&amp;nbsp; That is also a recommended workflow to recreate your versions from time to time.&lt;/P&gt;&lt;P&gt;You can automate this as a script as well if needed, to be executed at the desired day/time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 04:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430326#M16614</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-08-21T04:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430327#M16615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help again Asrujit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok - so the "&lt;STRONG&gt;sdegdrepair -o&lt;/STRONG&gt; &lt;STRONG&gt;repair_tables&lt;/STRONG&gt;"&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;command is one we're familiar with, and we've run that just now.&amp;nbsp; So problem resolved once again for now.&amp;nbsp; But the underlying cause we're still no closer to solving.&amp;nbsp; The reconcile and post procedure I detailed above is indeed what we were instructed to do by ESRI support after we opened no less than two tickets with them.&amp;nbsp; Can you suggest email contact with someone who could assist further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the editing is done within ESRI ArcMap ver 10.1.&amp;nbsp; ArcGIS 10.1 SP1 for Desktop. We use no 3rd party applications to edit our data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at this point, if anyone can suggest, or see a problem with our workflow then we'd like to hear it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 04:14:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430327#M16615</guid>
      <dc:creator>TerryAdams</dc:creator>
      <dc:date>2014-08-21T04:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430328#M16616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have gone down the path of recreating versions before, and have actually done that again in this instance as well.&amp;nbsp; It really needs to be said though, that you shouldn't have to do this.&amp;nbsp; The issue needs to be resolved instead of using a series of workarounds to temporarily get past these errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you provide us an example or template of the script you'd use to recreate versions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 06:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430328#M16616</guid>
      <dc:creator>TerryAdams</dc:creator>
      <dc:date>2014-08-21T06:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430329#M16617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if this will prevent this issue but we use a weekly maintenance window to compress our protected DEFAULT version to state zero. This requires the editors to reconcile and post before the maintenance kicks off. All versions are deleted that night. Versions needed for applications are recreated with a batch file of sde commands after compression to state zero. The desktop editors create a fresh private version when they begin work the following morning. The same maintenance workflow is required for service packs, upgrades, etc.This has helped maintain the best performance and reduce strange errors like orphaned records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430329#M16617</guid>
      <dc:creator>BillFox</dc:creator>
      <dc:date>2014-08-21T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430330#M16618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dave, I had something like this awhile back before we moved over to sql geometry, only in reverse to what you describe, i.e. more business records than geometry.&amp;nbsp; It was happening because certain editors were copying and pasting records from spreadsheets in a way that was violating the key constraints. &lt;/P&gt;&lt;P&gt;Basically I set up sql scripts to remove the dups and clean any and all dependencies in both directions.&amp;nbsp; I've got some scripts somewhere, I'll see if I can round them up if you don't have this solved-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 16:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430330#M16618</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2014-08-21T16:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430331#M16619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David.&amp;nbsp; Am interested in what you found about your editors copying data from spreadsheets causing the duplicate primary key errors.&amp;nbsp; This is something we theorized could be happening in our situation, but our errors weren't consistent enough to confirm or disprove. I admit though that I still can't fathom how copying data into attribute fields from spreadsheets could cause database primary key errors.&amp;nbsp; Could you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 02:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430331#M16619</guid>
      <dc:creator>TerryAdams</dc:creator>
      <dc:date>2014-08-22T02:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430332#M16620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, there's not much to tell.&amp;nbsp; Prior to our move to SQL Geometry at 10.1, I found that for certain utilities feature classes like hydrants, there would be from time to time more rows in the business table than in the feature (f) table. I discovered that nugget as I was transforming data into Intergraph format via FME.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't even think it was possible to create or otherwise load rows into a feature class using standard ArcGIS front-end methods and not create geometry, but it happened.&amp;nbsp; So it's not a primary key error per say, it's more of a key-constraint violation I would guess.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I suspect had happened is that hydrants data, coming in from an xy event table created from a spreadsheet perhaps had inverted x,y's or were perhaps in a differenent coordinate system, or had differenent units.&amp;nbsp; But because we use well-defined x,y domains, resolution and tolerances I think the information was added to the A and F table but upon, reconcile, post and/or compress, the invalid values in the F table were dropped, but the business rows remained. That's my theory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430332#M16620</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2014-08-25T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: sde duplicate geometry being created (error cannot insert duplicate key on reconcile)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430333#M16621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this answer is a good bit after the question was asked, but it might help someone else.&lt;BR /&gt;&lt;BR /&gt;Scenario:&amp;nbsp; Attempting to add a new record to a geometry table via the arcgis rest service associated with it.&amp;nbsp;&amp;nbsp; We get a duplicate primary key id.&amp;nbsp;&amp;nbsp; The admin log for the arcgis website says the objectid value it's trying to use.&amp;nbsp; We look in the table and there is not only a record in the table with that id, there are more records with objectid values higher than that record.&lt;BR /&gt;&lt;BR /&gt;As far as I can tell, the sde database schema was designed back when DBase II was the bee's knees and it was ported as was to sql server.&amp;nbsp; So, instead of using the built-in increment id feature available in sql server, the existing code was used.&amp;nbsp;&amp;nbsp; There is a next id table per geometry table and that table was out of whack.&lt;BR /&gt;&lt;BR /&gt;The sql server database has a stored procedure that you can execute if you're in that situation.&amp;nbsp; It will increment the next objectid value in that next id table by 1. &amp;nbsp;&amp;nbsp; Obviously, if the next id is 100 less than the highest objectid in the table, you'll need to do so 100 times.&amp;nbsp; (Or open up the stored procedure, figure out what it does, and hack the next id table directly, but that's almost certainly an unsupported behavior.)&lt;BR /&gt;&lt;BR /&gt; Here's a script to invoke it:&lt;BR /&gt;&lt;BR /&gt;USE [YourDatabaseName]&lt;BR /&gt;GO&lt;BR /&gt;DECLARE @return_value int,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @rowid int&lt;BR /&gt;EXEC @return_value = [dbo].[next_rowid]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @owner = N'YourSchemaName',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @table = N'YourTableName',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @rowid = @rowid OUTPUT&lt;BR /&gt;&lt;BR /&gt;SELECT @rowid AS N'@rowid'&lt;BR /&gt;SELECT 'Return Value' = @return_value&lt;BR /&gt;&lt;BR /&gt;That doesn't solve the problem of HOW the next objectid value got out of synch with the data in the table.&amp;nbsp;&amp;nbsp; There appear to be a host of ways to make that happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sde-duplicate-geometry-being-created-error-cannot/m-p/430333#M16621</guid>
      <dc:creator>DavidWendelken</dc:creator>
      <dc:date>2017-04-11T14:29:27Z</dc:date>
    </item>
  </channel>
</rss>

