<?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: Appending- how to avoid duplicates? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71115#M5825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scripting section in the Help:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://server.arcgis.com/en/server/latest/administer/windows/scripting-arcgis-server-administration.htm" title="http://server.arcgis.com/en/server/latest/administer/windows/scripting-arcgis-server-administration.htm"&gt;An overview of scripting ArcGIS Server administration—ArcGIS Server Administration (Windows) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tools from a colleague:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340" title="https://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340"&gt;https://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...you may need to upgrade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Mar 2017 16:11:05 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2017-03-27T16:11:05Z</dc:date>
    <item>
      <title>Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71099#M5809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two point shapefiles, both have the exact same fields in them. There are some new records AND some duplciate records when comparing the two datasets.&lt;/P&gt;&lt;P&gt;I want to use the append tool as I don't want to create a new dataset, I just want to add data to the existing original shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I append the two shapefiles, matching records are appended, thus leaving lots of duplicate records. How can I tell my script to only append new records and ignore duplicates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71099#M5809</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T13:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71100#M5810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they are truly identical.... &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/find-identical.htm"&gt;Find identical&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71100#M5810</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-27T13:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71101#M5811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/delete-identical.htm"&gt;Delete Identical&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71101#M5811</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-03-27T13:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71102#M5812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's only available with an advanced license though. I only have Basic &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes most of the records are duplicates. Maybe there is away to only append records that are new...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71102#M5812</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T13:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71103#M5813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add XY coordinates to your featureclass, then &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm"&gt;Dissolve &lt;/A&gt;on the X,Y fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71103#M5813</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-03-27T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71104#M5814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are multiple seperate points that share the exact same coordinates. So dissolving based on that would combine points together that are infact independent of each other.&lt;/P&gt;&lt;P&gt;There is a unique ID field however... I could dissolve the appended dataset based on that field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71104#M5814</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T14:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71105#M5815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dissolve won't work as it create a new dataset. It's crucial to me that the final dataset, is the existing one. (Lots of ArcMap MXDs link to that shapefile.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71105#M5815</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T14:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71106#M5816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also when appending the new dataset to the original, I want the new dataset to take priority over the existing one. ie. if two records match, then old records are overwritten by the new ones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71106#M5816</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71107#M5817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Data Interoperability extension has a couple of functions for this use case, the ChangeDetector and Matcher transformers.&amp;nbsp; The former identifies added, deleted and unchanged features between two datasets, the latter finds matching features.&amp;nbsp; Both allow you to choose the combination of geometry and attribute tests you need.&amp;nbsp; If you can share your data I can build a sample, either in this thread or via email.&amp;nbsp; I would need to know your preference of 10.5 or Pro 1.4.1 tool version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:35:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71107#M5817</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-03-27T14:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71108#M5818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could have a script write a comment to a text field that are duplicates, then append records that do not have a comment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

shp1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'...path to shapefile1...'&lt;/SPAN&gt;
shp2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'...path to shapefile2...'&lt;/SPAN&gt;

shp1keys &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;#Field arguments is the common field between both datasets&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;shp1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'field_with_dups'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shp1keys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; cursor

&lt;SPAN class="comment token"&gt;#Field arguments with common field plus 'Comment' field to write duplicates&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;shp2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'field_with_dups'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Comment'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; shp1keys&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'DUPLICATE'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; cursor‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71108#M5818</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2021-12-10T22:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71109#M5819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce but the data contains 1000s of records containing confidential tenant information. I doubt I'd be allowed to share &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ideal world, I just need a simple script that deletes the existing dataset and places the new, updated dataset in the same directory and with the same name. That way all the MXDs won't need to be re-sourced each time.&lt;/P&gt;&lt;P&gt;The reason I can't do this method is because of an ever present LOCK file on the existing dataset (it's under constant access by our GIS server...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a script that says:&lt;/P&gt;&lt;P&gt;1. Stop Server GIS service&lt;/P&gt;&lt;P&gt;2. Delete Points.shp&lt;/P&gt;&lt;P&gt;3. Create updated version of Points.shp in same directory with same name.&lt;/P&gt;&lt;P&gt;4. Start Server GIS service&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71109#M5819</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T14:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71110#M5820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes true, but two duplicate records may not always be identical. The newer one may have updated information within it. So how could the script decide which record is the newer and updated record? Thus keeping it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71110#M5820</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71111#M5821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could certainly script that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71111#M5821</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-03-27T15:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71112#M5822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to nitpick on semantics, but duplicate and identical are synonyms.&amp;nbsp; If you are talking about a subset of fields, then what are the fields you want to compare to determine if a record should be updated/overwritten?&amp;nbsp; You have described your overflow workflow goals, but you haven't described the data set beyond being points.&amp;nbsp; The more specifics you share, the more specific the responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71112#M5822</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-03-27T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71113#M5823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3241"&gt;Bruce Harold&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Yes it's the stopping service and starting service I can't figure out.&lt;/P&gt;&lt;P&gt;We have ArcGIS Desktop 10.4 with Python 2.7.10&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;ArcGIS for Server 10.0 with Python 2.6.5 on our seperate server machine (we host a lot of mapping data on this server including a web map interface which the whole company use. It's old but it works and we're reluctant to upgrade the software (no time to!))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71113#M5823</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71114#M5824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course. I haven't gone into details just yet and thoroughly appreciate Mitch's response. But anyway, there are 20 fields and 25,000 records. All the data in these records is subject to change, excluding a couple of ID fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I think I really need is to delete the existing shapefile, and replace with the updated version. However a LOCK file originating from the server (which accesses the shapefile) stops me from deleting this dataset. I need a script which:&lt;/P&gt;&lt;P&gt;1. Stop Server GIS service&lt;/P&gt;&lt;P&gt;2. Delete Points.shp&lt;/P&gt;&lt;P&gt;3. Create updated version of Points.shp in same directory with same name.&lt;/P&gt;&lt;P&gt;4. Start Server GIS service&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71114#M5824</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T15:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71115#M5825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scripting section in the Help:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://server.arcgis.com/en/server/latest/administer/windows/scripting-arcgis-server-administration.htm" title="http://server.arcgis.com/en/server/latest/administer/windows/scripting-arcgis-server-administration.htm"&gt;An overview of scripting ArcGIS Server administration—ArcGIS Server Administration (Windows) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tools from a colleague:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340" title="https://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340"&gt;https://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...you may need to upgrade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 16:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71115#M5825</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-03-27T16:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71116#M5826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally when updating data which is used by a service we truncate then append the new data. That doesn't seem to upset things. Deleting is a no-no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 18:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71116#M5826</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2017-03-27T18:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71117#M5827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that 'Truncate Table' you use? And does your method work even if there's a LOCK file on the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 08:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71117#M5827</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-28T08:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Appending- how to avoid duplicates?</title>
      <link>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71118#M5828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is the data - fgdb or SDE?&lt;/P&gt;&lt;P&gt;Normally for publishing purposes (and not for&amp;nbsp;editable features), we copy over from an enterprise system to a fgdb every night.&lt;/P&gt;&lt;P&gt;That uses truncate and append. Doesn't affect the services based on these features.&lt;/P&gt;&lt;P&gt;Not an expert on how all this works myself, just aware of the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/appending-how-to-avoid-duplicates/m-p/71118#M5828</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2017-03-28T09:37:22Z</dc:date>
    </item>
  </channel>
</rss>

