<?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: Comparing Two Feature Classes and Updating One of Them in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247407#M14075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so if we get rid of the "*" as field list it would look something like this. &lt;EM&gt;Please note that the code has not been tested on any data.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14089875898688860 jive_text_macro" jivemacro_uid="_14089875898688860"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def createMatchingFieldList(fc1, fc2):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst1 = [fld.name for fld in arcpy.ListFields(fc1)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst2 = [fld.name for fld in arcpy.ListFields(fc2)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return list(set(lst1) &amp;amp; set(lst2))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def createWhereClause(fc, fld_name, value):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if len(arcpy.ListFields(fc, fld_name)) == 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld = arcpy.ListFields(fc, fld_name)[0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if fld.type == "String":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = "{0} = '{1}'".format(arcpy.AddFieldDelimiters(fc, fld_name), value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = "{0} = {1}".format(arcpy.AddFieldDelimiters(fc, fld_name), value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return where&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def getPrimaryFieldValues(fc, field):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return [r[0] for r in arcpy.da.SearchCursor(fc, [field])]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def getSelectCursor(fc, flds, whereClause):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.da.SearchCursor(fc, flds, whereClause)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def diff(a, b):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return list(set(a) - set(b))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#source = arcpy.GetParameterAsText(0)&lt;/P&gt;
&lt;P&gt;#destination = arcpy.GetParameterAsText(1)&lt;/P&gt;
&lt;P&gt;#fieldName = arcpy.GetParameterAsText(2)&lt;/P&gt;
&lt;P&gt;source = r"C:\tempdelete\PL_TO_LINE.gdb\PL\VERT_TO_POINIT"&lt;/P&gt;
&lt;P&gt;destination = r"C:\tempdelete\PL_TO_LINE.gdb\PL\VERT_TO_POINIT_DEST"&lt;/P&gt;
&lt;P&gt;fieldName = "ROUTE_LINK_NO"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# create a list of field names which are in both featureclasses&lt;/P&gt;
&lt;P&gt;flds = createMatchingFieldList(source, destination)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sourceValues = getPrimaryFieldValues(source, fieldName)&lt;/P&gt;
&lt;P&gt;destinationValues = getPrimaryFieldValues(destination, fieldName)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;additions = diff(sourceValues, destinationValues)&lt;/P&gt;
&lt;P&gt;deletions = diff(destinationValues, sourceValues)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;with arcpy.da.InsertCursor(destination, flds) as insertCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for a in additions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = createWhereClause(source, fieldName, a)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertRows = getSelectCursor(source, flds, where)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for r in insertRows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertCursor.insertRow(r)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for d in deletions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = createWhereClause(destination, fieldName, d)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(destination, flds, where) as deleteCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for d in deleteCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deleteCursor.deleteRow()&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 17:27:07 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2014-08-25T17:27:07Z</dc:date>
    <item>
      <title>Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247398#M14066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to automate the production of a feature class with daily updates. I would like to use a Python Script do this. The basic concept is there is a SQL table that is updated with addresses, the script needs to pull that table into a intermediate file geodatabase, geocoded it, compare the geocoded results to the existing SDE feature class, and remove any old entries from the SDE feature class, append any new features, and leave alone any that are the same. I get the first chunk of my script to do what I want it to do.&amp;nbsp; When I get to the compare and update part, my initial line of thinking will not work in all cases (especially when there are only removals). I know there has to be a more elegant way of doing the compare and update portion. Any suggestions?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the portion that does not work all the time:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Put in error trapping in case an error occurs when running tool&lt;BR /&gt;CoMGIS_SDE_Warrants = #Path to SDE Feature Class&lt;BR /&gt;try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # Make a layer from the feature class&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(MAW_GeoCode,"newCompare_lyr")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # Selecting all existing features&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("newCompare_lyr", "INTERSECT", CoMGIS_SDE_Warrants, "", "NEW_SELECTION")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; # Selecting only new features&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("newCompare_lyr", "INTERSECT", CoMGIS_SDE_Warrants, "", "SWITCH_SELECTION")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # Write the selected features to a new featureclass&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.Append_management("newCompare_lyr", CoMGIS_SDE_Warrants,"TEST","","")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("newCompare_lyr")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # Make a layer from the Existing Features&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(CoMGIS_SDE_Warrants,"existCompare_lyr")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # Selecting all existing features&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("existCompare_lyr", "INTERSECT", MAW_GeoCode, "", "NEW_SELECTION")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; # Selecting only Non-Active Warrants&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("existCompare_lyr", "INTERSECT", MAW_GeoCode, "", "SWITCH_SELECTION")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; # Delete Non-Active Warrants&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.DeleteFeatures_management("existCompare_lyr")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("existCompare_lyr")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;except:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()&lt;/P&gt;&lt;P&gt;print "Success"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 20:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247398#M14066</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2014-08-21T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247399#M14067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you have a common primary field in your FGDB and SDE Feature Class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Iterate through FGDB FC (A) and SDE FC (B), and create two lists of primary fields.&lt;/LI&gt;&lt;LI&gt;A - B, will give list of additions in FGDB (Use Insert cursor to insert features to SDE)&lt;/LI&gt;&lt;LI&gt;B - A will give list of deletions in SDE (Delete features from SDE)&lt;/LI&gt;&lt;LI&gt;Use Geometry equals, if you want to compare geometry and update SDE geometry.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference links:&lt;/P&gt;&lt;P&gt;List Difference - &lt;A href="http://stackoverflow.com/questions/6486450/python-compute-list-difference" title="http://stackoverflow.com/questions/6486450/python-compute-list-difference"&gt;Python, compute list difference - Stack Overflow&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Insert Cursor - &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w0000000t000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w0000000t000000"&gt;ArcGIS Help 10.1&lt;/A&gt;‌&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w0000000t000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w0000000t000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018w0000000t000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Update Cursor - &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/UpdateCursor/018w00000014000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/UpdateCursor/018w00000014000000/"&gt;ArcGIS Help 10.1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Geometry Equals - &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000"&gt;ArcGIS Help 10.1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 00:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247399#M14067</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-22T00:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247400#M14068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Riyas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for confirming what I need to do. I get the concepts, but do not know how to get there. I do have a primary field, which would be the Warrant ID. It looks like 2007-031. I looked at the List Difference link you sent, and did more digging. I guess I am not seeing how to do this. This is by the far the most advanced thing I have attempted to tackle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 16:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247400#M14068</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2014-08-22T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247401#M14069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached script should do the trick for you. modify the source, destination and fieldName to point to your script parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 00:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247401#M14069</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-25T00:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247402#M14070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Riyas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the script. After seeing what is going on, I have a better understanding of what is going on. Hopefully,&amp;nbsp; I will be able to apply this knowledge in the future. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the script with the changed parameters, I get a run time error of "An invalid SQL statement was used. [MAW_Geocode]".&amp;nbsp; MAW_Geocode is the source parameter (the intermediate file geodatabase feature class).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It hits in the line:&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for r in insertRows:&lt;/P&gt;&lt;P&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;&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; insertCursor.insertRow(r)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 14:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247402#M14070</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2014-08-25T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247403#M14071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the code from &lt;A href="https://community.esri.com/migrated-users/55033"&gt;Riyas Deen&lt;/A&gt;‌ a bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14089798812105733" jivemacro_uid="_14089798812105733"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def createWhereClause(fc, fld_name, value):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if len(arcpy.ListFields(fc, fld_name)) == 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld = arcpy.ListFields(fc, fld_name)[0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if fld.type == "String":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = "{0} = '{1}'".format(arcpy.AddFieldDelimiters(fc, fld_name), value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = "{0} = {1}".format(arcpy.AddFieldDelimiters(fc, fld_name), value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return where&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def getPrimaryFieldValues(fc, field):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return [r[0] for r in arcpy.da.SearchCursor(fc, [field])]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def getSelectCursor(fc, whereClause):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.da.SearchCursor(fc, ["*"], whereClause)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def diff(a, b):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return list(set(a) - set(b))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#source = arcpy.GetParameterAsText(0)&lt;/P&gt;
&lt;P&gt;#destination = arcpy.GetParameterAsText(1)&lt;/P&gt;
&lt;P&gt;#fieldName = arcpy.GetParameterAsText(2)&lt;/P&gt;
&lt;P&gt;source = r"C:\tempdelete\PL_TO_LINE.gdb\PL\VERT_TO_POINIT"&lt;/P&gt;
&lt;P&gt;destination = r"C:\tempdelete\PL_TO_LINE.gdb\PL\VERT_TO_POINIT_DEST"&lt;/P&gt;
&lt;P&gt;fieldName = "ROUTE_LINK_NO"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sourceValues = getPrimaryFieldValues(source, fieldName)&lt;/P&gt;
&lt;P&gt;destinationValues = getPrimaryFieldValues(destination, fieldName)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;additions = diff(sourceValues, destinationValues)&lt;/P&gt;
&lt;P&gt;deletions = diff(destinationValues, sourceValues)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;with arcpy.da.InsertCursor(destination, ["*"]) as insertCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for a in additions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = createWhereClause(source, fieldName, a)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertRows = getSelectCursor(source, where)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for r in insertRows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertCursor.insertRow(r)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for d in deletions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = createWhereClause(destination, fieldName, d)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(destination, ["*"], where) as deleteCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for d in deleteCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deleteCursor.deleteRow()&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you define your field name?&lt;/P&gt;&lt;P&gt;Is the intermediate geodatabase a file geodatabase or a personal one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 15:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247403#M14071</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-25T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247404#M14072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source = "//fdrive/GIS/Depts/PD/proj/ActiveWarrants/ActiveWarrants.gdb/MAW_Geocode"&lt;/P&gt;&lt;P&gt;destination = "//fdrive/GIS/Depts/PD/proj/ActiveWarrants/SDE to MFLDSQL4.sde/CoMGIS.SDE.Warrants"&lt;/P&gt;&lt;P&gt;fieldName = "WarrentNumber"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is a text field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intermediate geodatabase is a file geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 15:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247404#M14072</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2014-08-25T15:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247405#M14073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now get a different error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.1\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "F:\Home\GIS\Depts\PD\proj\ActiveWarrants\Test2.py", line 39, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertCursor.insertRow(r)&lt;/P&gt;&lt;P&gt;TypeError: value #1 - unsupported type: tuple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247405#M14073</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2014-08-25T16:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247406#M14074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May have something to do with the fields setting, which is "*":&lt;/P&gt;&lt;P&gt;&lt;EM&gt;When using "*", geometry values will be returned in a tuple of the x,y-coordinates (equivalent to the SHAPE@XY token).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be better to construct a list with the field names...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247406#M14074</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-25T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247407#M14075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so if we get rid of the "*" as field list it would look something like this. &lt;EM&gt;Please note that the code has not been tested on any data.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14089875898688860 jive_text_macro" jivemacro_uid="_14089875898688860"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def createMatchingFieldList(fc1, fc2):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst1 = [fld.name for fld in arcpy.ListFields(fc1)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst2 = [fld.name for fld in arcpy.ListFields(fc2)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return list(set(lst1) &amp;amp; set(lst2))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def createWhereClause(fc, fld_name, value):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if len(arcpy.ListFields(fc, fld_name)) == 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld = arcpy.ListFields(fc, fld_name)[0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if fld.type == "String":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = "{0} = '{1}'".format(arcpy.AddFieldDelimiters(fc, fld_name), value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = "{0} = {1}".format(arcpy.AddFieldDelimiters(fc, fld_name), value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return where&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def getPrimaryFieldValues(fc, field):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return [r[0] for r in arcpy.da.SearchCursor(fc, [field])]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def getSelectCursor(fc, flds, whereClause):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.da.SearchCursor(fc, flds, whereClause)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def diff(a, b):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return list(set(a) - set(b))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#source = arcpy.GetParameterAsText(0)&lt;/P&gt;
&lt;P&gt;#destination = arcpy.GetParameterAsText(1)&lt;/P&gt;
&lt;P&gt;#fieldName = arcpy.GetParameterAsText(2)&lt;/P&gt;
&lt;P&gt;source = r"C:\tempdelete\PL_TO_LINE.gdb\PL\VERT_TO_POINIT"&lt;/P&gt;
&lt;P&gt;destination = r"C:\tempdelete\PL_TO_LINE.gdb\PL\VERT_TO_POINIT_DEST"&lt;/P&gt;
&lt;P&gt;fieldName = "ROUTE_LINK_NO"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# create a list of field names which are in both featureclasses&lt;/P&gt;
&lt;P&gt;flds = createMatchingFieldList(source, destination)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sourceValues = getPrimaryFieldValues(source, fieldName)&lt;/P&gt;
&lt;P&gt;destinationValues = getPrimaryFieldValues(destination, fieldName)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;additions = diff(sourceValues, destinationValues)&lt;/P&gt;
&lt;P&gt;deletions = diff(destinationValues, sourceValues)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;with arcpy.da.InsertCursor(destination, flds) as insertCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for a in additions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = createWhereClause(source, fieldName, a)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertRows = getSelectCursor(source, flds, where)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for r in insertRows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertCursor.insertRow(r)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for d in deletions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = createWhereClause(destination, fieldName, d)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(destination, flds, where) as deleteCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for d in deleteCursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deleteCursor.deleteRow()&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 17:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247407#M14075</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-25T17:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247408#M14076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp; I ran it, tested, and it worked like a charm.&amp;nbsp; I will spend some time to truly understanding what is all going on in the script you posted.&amp;nbsp; Thank you again for helping out a newbie at python scripting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 18:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247408#M14076</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2014-08-25T18:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247409#M14077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember that &lt;A href="https://community.esri.com/migrated-users/55033"&gt;Riyas Deen&lt;/A&gt;‌ did most of the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help you a little in the process of understanding the code, here goes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a number of functions that can be reused and help to make the code more readable&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;line 3 - 6 (createMatchingFieldList) uses list comprehensions to create a list of the field names in both featureclasses. The lists are converted to sets which van be used with the &amp;amp; to create a set with only those elements that exist in both sets. The List() converts the resulting set to list&lt;/LI&gt;&lt;LI&gt;Line 8 - 15 (createWhereClause) uses the type of the field (&lt;EM&gt;the code will only handle string and numeric fields correctly&lt;/EM&gt;) and the arcpy.AddFieldDelimiters to add quotes or brackets to the field depending on the datasource. This is powerful way of making code run correctly on different types of data (shapefiles, file,&amp;nbsp; personal and enterprise geodatabases)&lt;/LI&gt;&lt;LI&gt;line 17 and 18 (getPrimaryFieldValues) uses again a list comprehension to create a list of values in a given field. It actually loop through the data and returns the first field r[0] and adds it to a list (hence the square brackets).&lt;/LI&gt;&lt;LI&gt;line 20 and 21 (getSelectCursor) creates a search cursor with the given fields and where clause.&lt;/LI&gt;&lt;LI&gt;line 23 and 24 (diff) returns a list of element which are in list a, but not in list b.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rest of the code does the job:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;lines 34 - 40 contains the calls to the various functions (creating the list of fields, the list of values for both featureclasses and determining the difference)&lt;/LI&gt;&lt;LI&gt;lines 42 - 47 creates an insert cursor on the destination and loop through the elements in "additions" and inserts the rows (from the source) into the destination&lt;/LI&gt;&lt;LI&gt;lines 49 to 53 uses an update cursor on the destination to remove those features that are in the destination, but not in the source.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 18:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247409#M14077</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-25T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247410#M14078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The python script you shared here was very useful, thanks!&lt;/P&gt;&lt;P&gt;The add function insert new records and delete function remove old records, is it possible to update attribute value if the record exist in both tables/features?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247410#M14078</guid>
      <dc:creator>AimeiChen</dc:creator>
      <dc:date>2015-12-08T20:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247411#M14079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose that is possible, but what would you like to register in the destination featureclass is a feature ID still exists, but attributes have changed? Should the record be marked as changed or do you want to overwrite the field values? Be aware that only the listed fields (those that both featureclasses have) will be checked to see if attributes changed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 00:01:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247411#M14079</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-12-09T00:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247412#M14080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;Thanks for your quick reply!&lt;/P&gt;&lt;P&gt;I have a feature layer, 10 attribute fields were captured in GIS and 20 fields were from City Works and rest were our inputs. In GIS, the feature layer is identical to the 10 fields in the destination features. So I'd like to send GIS updates to the layer automatically (overwrite the 10 field values) and keep updating/editing the rest attributes. Is it possible to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 14:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247412#M14080</guid>
      <dc:creator>AimeiChen</dc:creator>
      <dc:date>2015-12-09T14:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247413#M14081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aimei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you figure this out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 20:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247413#M14081</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2019-12-18T20:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Two Feature Classes and Updating One of Them</title>
      <link>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247414#M14082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;my solution is exporting the feature layer into File geo database, split it into three layers and update them accordingly. then merge them into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aimei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 13:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/comparing-two-feature-classes-and-updating-one-of/m-p/247414#M14082</guid>
      <dc:creator>AimeiChen</dc:creator>
      <dc:date>2019-12-19T13:34:08Z</dc:date>
    </item>
  </channel>
</rss>

