<?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 Iterate through rows and update cursor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253206#M66721</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am writing a small Python script in ArcGIS and I am trying to loop through rows as can be seen in the figure below. However, I recieve an error saying that my file does not exist, even though I have copied the file path. The file has a data type: 'File Geodatabase Feature Class'.&lt;/P&gt;&lt;P&gt;I have also exported this feature class as a .shp shapefile. However I still recieve the same error.&lt;/P&gt;&lt;P&gt;So my question is how can make sure that my file is found so that my code works (if it is written correctly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_file_no_exist.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61671iE632217794CCF904/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error_file_no_exist.PNG" alt="Error_file_no_exist.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 10:00:54 GMT</pubDate>
    <dc:creator>MarcEsmeijer</dc:creator>
    <dc:date>2023-01-31T10:00:54Z</dc:date>
    <item>
      <title>Iterate through rows and update cursor</title>
      <link>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253206#M66721</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am writing a small Python script in ArcGIS and I am trying to loop through rows as can be seen in the figure below. However, I recieve an error saying that my file does not exist, even though I have copied the file path. The file has a data type: 'File Geodatabase Feature Class'.&lt;/P&gt;&lt;P&gt;I have also exported this feature class as a .shp shapefile. However I still recieve the same error.&lt;/P&gt;&lt;P&gt;So my question is how can make sure that my file is found so that my code works (if it is written correctly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_file_no_exist.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61671iE632217794CCF904/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error_file_no_exist.PNG" alt="Error_file_no_exist.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 10:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253206#M66721</guid>
      <dc:creator>MarcEsmeijer</dc:creator>
      <dc:date>2023-01-31T10:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate through rows and update cursor</title>
      <link>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253236#M66723</link>
      <description>&lt;P&gt;a shapefile would be in a folder and the *.shp file extension would be expected&lt;/P&gt;&lt;P&gt;your path contains spaces which isn't good and leading numbers for folders aren't great either.&lt;/P&gt;&lt;P&gt;Is the W drive local? a zip drive etc.&lt;/P&gt;&lt;P&gt;The file path, when you create a new one, should be raw encoded, (the little preceeding 'r') so try putting the shapefile into a simple folder path like&lt;/P&gt;&lt;P&gt;r"c:\data\my_shapefile.shp"&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 11:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253236#M66723</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-01-31T11:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate through rows and update cursor</title>
      <link>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253243#M66724</link>
      <description>&lt;P&gt;Thankyou it worked!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 12:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253243#M66724</guid>
      <dc:creator>MarcEsmeijer</dc:creator>
      <dc:date>2023-01-31T12:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate through rows and update cursor</title>
      <link>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253336#M66727</link>
      <description>&lt;P&gt;Dan mentioned several potential issues, please elaborate on what specifically "it" is that worked.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253336#M66727</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-01-31T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate through rows and update cursor</title>
      <link>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253513#M66738</link>
      <description>&lt;P&gt;Replacing the spaces within the pathname by an undersquat made sure that the error dissapeared and the code could run.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 20:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/iterate-through-rows-and-update-cursor/m-p/1253513#M66738</guid>
      <dc:creator>MarcEsmeijer</dc:creator>
      <dc:date>2023-01-31T20:05:34Z</dc:date>
    </item>
  </channel>
</rss>

