<?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 Arcpy Search Cursor Looping through columns to search for specific values in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-search-cursor-looping-through-columns-to/m-p/1114255#M62907</link>
    <description>&lt;P&gt;I am comparing the data in Two shape File Ex: Existing.Shp and UpdatedRecently.shp. Existing.shp files has 3110 Records and Updated.shp has 410 records total and 110 duplicated records from Existing.shp. Logic: Location and Date Field was taken using SearchCursor and parsing in Updated.shp for finding and removing Duplicate records[110 Records].The remaining 300 records has to added in Existing.shp file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: For Loop- It's not resetting to First Row.In the debug session. The last record is retained in the Loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;Kilroy &lt;SPAN&gt;in &lt;/SPAN&gt;Trows://Last record of For loop first execution Retained&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;tdy == Kilroy[&lt;SPAN&gt;4&lt;/SPAN&gt;]:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(tdy)&lt;BR /&gt;    &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Inner Else"&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;continue&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 19:17:24 GMT</pubDate>
    <dc:creator>ManoharDevGis</dc:creator>
    <dc:date>2021-11-04T19:17:24Z</dc:date>
    <item>
      <title>Arcpy Search Cursor Looping through columns to search for specific values</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-search-cursor-looping-through-columns-to/m-p/1114255#M62907</link>
      <description>&lt;P&gt;I am comparing the data in Two shape File Ex: Existing.Shp and UpdatedRecently.shp. Existing.shp files has 3110 Records and Updated.shp has 410 records total and 110 duplicated records from Existing.shp. Logic: Location and Date Field was taken using SearchCursor and parsing in Updated.shp for finding and removing Duplicate records[110 Records].The remaining 300 records has to added in Existing.shp file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: For Loop- It's not resetting to First Row.In the debug session. The last record is retained in the Loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;Kilroy &lt;SPAN&gt;in &lt;/SPAN&gt;Trows://Last record of For loop first execution Retained&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;tdy == Kilroy[&lt;SPAN&gt;4&lt;/SPAN&gt;]:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(tdy)&lt;BR /&gt;    &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Inner Else"&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;continue&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 19:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-search-cursor-looping-through-columns-to/m-p/1114255#M62907</guid>
      <dc:creator>ManoharDevGis</dc:creator>
      <dc:date>2021-11-04T19:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Search Cursor Looping through columns to search for specific values</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-search-cursor-looping-through-columns-to/m-p/1114336#M62911</link>
      <description>&lt;P&gt;A few of suggestions before going any further.&amp;nbsp; First; it's your best interest to leave shapefiles behind and use file geodatabase feature classes instead. Second; provide the rest of you code, as the little snippet provided isn't enough to grasp the situation. Third; be sure you are using the arcpy.da.SearchCursor and not the old style cursors.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 22:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-search-cursor-looping-through-columns-to/m-p/1114336#M62911</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-11-04T22:17:57Z</dc:date>
    </item>
  </channel>
</rss>

