<?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: Reconcile Error (Underlying DBMS Violation of Primary Key) in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281295#M16132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the solution for this primary key violation error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Save all your users' edits and disconnect all your users from the SDE/SQL Server geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. From SQL Server Management Studio, create a full database backup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. From SDE server, run following command to identify any orphaned, duplicated records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o diagnose_tables -d SQLSERVER -D &amp;lt;database_name&amp;gt; -s &amp;lt;SQLSERVER_instance_name&amp;gt; -u &amp;lt;sysadmin_user&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note, you need to use your actual database settings to replace those &amp;lt;&amp;gt; values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. If you do see any orphaned, duplicated records from step 3, please run following command to fix those problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o repair_tables -d SQLSERVER -D &amp;lt;database_name&amp;gt; -s &amp;lt;SQLSERVER_instance_name&amp;gt; -u &amp;lt;sysadmin_user&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. You can now try reconciling the problematic version again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2012 20:07:48 GMT</pubDate>
    <dc:creator>BenLin</dc:creator>
    <dc:date>2012-01-03T20:07:48Z</dc:date>
    <item>
      <title>Reconcile Error (Underlying DBMS Violation of Primary Key)</title>
      <link>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281292#M16129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are having a curious reconcile issue within our database.&amp;nbsp; I've attached the following error message I am getting when attempting reconcile with the QAQC version and my own version created from QAQC.&amp;nbsp; I don't really understand this error, but what I am getting out of it is that it is explaining that there is an issue with duplicate primary key values within the table from my version?&amp;nbsp; Note, the primary keys are the object ID and Global IDs so I have no control over these, obviously.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some background info on this table is that it is a table we manage that has the information for all subdivision, annexation, development plans, etc. and is a stand alone table at the root of the database.&amp;nbsp; The table is versioned, and the edits are being pushed to the base tables.&amp;nbsp; We are working in a SQL 2005 database.&amp;nbsp; If anyone can provide any sort of feedback on this error I thank you in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 16:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281292#M16129</guid>
      <dc:creator>NickKenczka</dc:creator>
      <dc:date>2011-11-23T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reconcile Error (Underlying DBMS Violation of Primary Key)</title>
      <link>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281293#M16130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was just wondering if anyone had any idea as to how I can resolve this issue.&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281293#M16130</guid>
      <dc:creator>NickKenczka</dc:creator>
      <dc:date>2011-12-15T13:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reconcile Error (Underlying DBMS Violation of Primary Key)</title>
      <link>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281294#M16131</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;BR /&gt;&lt;SPAN&gt;Since you are doing reconcile, that means this is a versioned table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If correct then you mentioned you have primary key on objectid and global id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean by global id ? is that not sde_state_id?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is not sde_state_id then primary key should be on objectid and sde_state_id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you try to reconcile, same row gets created in a new sde state id.. Since you are not having sde state id hence this might be the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 06:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281294#M16131</guid>
      <dc:creator>ManojGarg</dc:creator>
      <dc:date>2011-12-20T06:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reconcile Error (Underlying DBMS Violation of Primary Key)</title>
      <link>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281295#M16132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the solution for this primary key violation error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Save all your users' edits and disconnect all your users from the SDE/SQL Server geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. From SQL Server Management Studio, create a full database backup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. From SDE server, run following command to identify any orphaned, duplicated records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o diagnose_tables -d SQLSERVER -D &amp;lt;database_name&amp;gt; -s &amp;lt;SQLSERVER_instance_name&amp;gt; -u &amp;lt;sysadmin_user&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note, you need to use your actual database settings to replace those &amp;lt;&amp;gt; values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. If you do see any orphaned, duplicated records from step 3, please run following command to fix those problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o repair_tables -d SQLSERVER -D &amp;lt;database_name&amp;gt; -s &amp;lt;SQLSERVER_instance_name&amp;gt; -u &amp;lt;sysadmin_user&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. You can now try reconciling the problematic version again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 20:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/281295#M16132</guid>
      <dc:creator>BenLin</dc:creator>
      <dc:date>2012-01-03T20:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reconcile Error (Underlying DBMS Violation of Primary Key)</title>
      <link>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/1552715#M45438</link>
      <description>&lt;P&gt;Hello Nick&lt;BR /&gt;&lt;BR /&gt;Disconnect all your database connections&amp;nbsp;&lt;BR /&gt;then Run the Repair Version Tables Tool, on The Child Version u want to&amp;nbsp; reconcile,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If the tool finishes&amp;nbsp; then you will be able to Reconcile and Post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 10:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reconcile-error-underlying-dbms-violation-of/m-p/1552715#M45438</guid>
      <dc:creator>Kaone3000</dc:creator>
      <dc:date>2024-10-28T10:06:22Z</dc:date>
    </item>
  </channel>
</rss>

