<?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: Trouble with using Update cursor to delete rows. - URGENT help required ! in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137382#M4680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone!? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 08:13:50 GMT</pubDate>
    <dc:creator>KamrulKashem</dc:creator>
    <dc:date>2012-10-05T08:13:50Z</dc:date>
    <item>
      <title>Trouble with using Update cursor to delete rows. - URGENT help required !</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137381#M4679</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;I am trying to develop a python script that I can create into a tool later on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;General Process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the arcpy.PointDistance_analysis tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. User selects input feature and near feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. User sets search radius&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. User sets the number of records to return in the table rather than all the records&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tool then creates the output table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sadly, it does not allow sorting before hand so i used the sort function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a few loops regarding the sort due to not understanding why the function does not overwrite the previous table called 'sorted_out_table'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the sort i need a new unique identifier as the OBJECT ID becomes obsolete to use as it is not in order.. So i create an FID and include a code block to create sequential numbering&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally i want to create a update cursor to delete the rows that are higher than the user specified, i.e. 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have commented out the 'getparameter' functions and used examples just to test it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the error I receive:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Processing Point Distance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Processing Sort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sorted_out_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TestingSort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Completed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Update Cursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding new field FID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculating FID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deleting Rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "H:\Pointdistancescript.py", line 63, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.UpdateCursor(sorted_out_table,"FID &amp;gt; '%d'" %(int(records_return),),"","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\__init__.py", line 841, in UpdateCursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.updateCursor(*args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 362, in updateCursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.UpdateCursor(*gp_fixargs(args)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An invalid SQL statement was used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An invalid SQL statement was used. [sorted_out_table]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gets right down to the Update cursor successfully.. Why is it failing? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HERE is the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy
import os

arcpy.env.workspace = r"pathto.gdb"
arcpy.env.overwriteOutput = True



#&amp;nbsp;&amp;nbsp;&amp;nbsp; in_features = arcpy.GetParameterAsText(0)
in_features = r"pathtoPointDistance.shp"
#&amp;nbsp;&amp;nbsp;&amp;nbsp; near_features = arcpy.GetParameterAsText(1)
near_features = r"pathtonearfeatures.lyr"


#&amp;nbsp;&amp;nbsp;&amp;nbsp; search_radius = arcpy.GetParameterAsText(2)
search_radius = "20 Meters"

#records_return = arcpy.GetParameterAsText(3)
records_return = 5

#&amp;nbsp;&amp;nbsp;&amp;nbsp; out_table = arcpy.GetParameterAsText(4)
out_table = r"pathtoPointDistanceAnalysis\OUTPUTTABLE"

print "Processing Point Distance"
arcpy.PointDistance_analysis(in_features, near_features, out_table, search_radius)


print "Processing Sort"

arcpy.env.workspace = r"pathto.gdb"
arcpy.env.overwriteOutput = True

# I have to delete the table from memory because the sort function does not allow overwrite?

for tbl in arcpy.ListTables():
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print tbl
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if tbl != "OUTPUTTABLE": #
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(tbl)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError: 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.GetMessages(2)


#Sort by distance - This messes up the order of OBJECT ID

arcpy.Sort_management(out_table, "sorted_out_table", ["DISTANCE"])

print "Completed"

sorted_out_table = "sorted_out_table"

print "Update Cursor"


print "Adding new field FID"

arcpy.AddField_management(sorted_out_table,"FID","DOUBLE","","","","","","","")


print "Calculating FID"

#Calculate FID using codeblock - THIS WORKS - TESTED

arcpy.CalculateField_management(sorted_out_table, "FID", "autoIncrement()", "PYTHON_9.3", "rec=0\\ndef autoIncrement():\\n global rec\\n pStart = 1 #adjust start value, if req'd \\n pInterval = 1 #adjust interval value, if req'd\\n if (rec == 0): \\n&amp;nbsp; rec = pStart \\n else: \\n&amp;nbsp; rec = rec + pInterval \\n return rec\\n")

print "Deleting Rows"


#FAILS BELOW

rows = arcpy.UpdateCursor(sorted_out_table,"FID &amp;gt; '%d'" %(records_return,) ,"","")


for row in rows:

&amp;nbsp;&amp;nbsp;&amp;nbsp; print row.getValue("FID")
&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.deleteRow(row)

del row, rows
&amp;nbsp;&amp;nbsp;&amp;nbsp; 

print "Done Updating now deleting"


print "Deleted"
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:44:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137381#M4679</guid>
      <dc:creator>KamrulKashem</dc:creator>
      <dc:date>2012-10-04T14:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with using Update cursor to delete rows. - URGENT help required !</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137382#M4680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone!? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 08:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137382#M4680</guid>
      <dc:creator>KamrulKashem</dc:creator>
      <dc:date>2012-10-05T08:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with using Update cursor to delete rows. - URGENT help required !</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137383#M4681</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;SPAN&gt;I am not particularly great with python so I'm guessing that %d thing in the whereclause of the cursor is some clever pyhton thing going on? My suggestion is to simplify that into something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sql = r"FID &amp;gt; " + str(records_return)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then place the whereclause with sql string in the update cursor, its also makes it a lot easier to understand and debug!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also check that you are using the correct syntax for the field name, do you put in [] for example (e.g. [FID] &amp;gt; .....)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just an idea...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 12:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137383#M4681</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-10-07T12:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with using Update cursor to delete rows. - URGENT help required !</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137384#M4682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I am not particularly great with python so I'm guessing that %d thing in the whereclause of the cursor is some clever pyhton thing going on? My suggestion is to simplify that into something like:&lt;BR /&gt;&lt;BR /&gt;sql = r"FID &amp;gt; " + str(records_return)&lt;BR /&gt;&lt;BR /&gt;Then place the whereclause with sql string in the update cursor, its also makes it a lot easier to understand and debug!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also check that you are using the correct syntax for the field name, do you put in [] for example (e.g. [FID] &amp;gt; .....)?&lt;BR /&gt;&lt;BR /&gt;Just an idea...&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THANK YOU THANK YOU THANK YOU! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It worked a treat, i had been thinking of doing the SQL expression outside of the function but it skipped my mind to turn it into a string field like that! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much Hornbydd!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137384#M4682</guid>
      <dc:creator>KamrulKashem</dc:creator>
      <dc:date>2012-10-08T08:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with using Update cursor to delete rows. - URGENT help required !</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137385#M4683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm, i knew it was not over! It seems when i turn this into a tool for ArcGIS it gives me errors back down at the deleting rows section!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added messages to my script to make it easier to see where it is giving me an error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about the cluttered script! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know why it is asking for 'row' to be defined in the for in loop? The script works fine outside of the toolbox with set parameters, but now when I test it with parameters, using the same ones as I did before but selecting them in the tool window instead i get errors!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my script updated with arcpy.AddMessage functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os

arcpy.env.workspace = r"pathto.gdb"
arcpy.env.overwriteOutput = True



in_features = arcpy.GetParameterAsText(0)
near_features = arcpy.GetParameterAsText(1)
search_radius = arcpy.GetParameterAsText(2)
records_return = arcpy.GetParameterAsText(3)

out_table = r"PathtoOutTable.dbf"

arcpy.AddMessage("Processing Point Distance")
arcpy.PointDistance_analysis(in_features, near_features, out_table, search_radius)
arcpy.AddMessage("Completed Point Distance")


arcpy.env.workspace = r"pathto.gdb"
arcpy.env.overwriteOutput = True

arcpy.AddMessage("Deleting Previous Tables")
for tbl in arcpy.ListTables():
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print tbl
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if tbl != "TestingSort":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(tbl)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError: 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.GetMessages(2)

del tbl
arcpy.AddMessage("Completed Deleting Tables")

arcpy.AddMessage("Processing Sort")
arcpy.Sort_management(out_table, "sorted_out_table", ["DISTANCE"])
arcpy.AddMessage("Completed Sorting Tables")

sorted_out_table = "sorted_out_table"
 
arcpy.AddMessage("Adding new field FID")
arcpy.AddField_management(sorted_out_table,"FID","DOUBLE","","","","","","","")
arcpy.AddMessage("Completed New Field FID")


arcpy.AddMessage("Calculating FID")
arcpy.CalculateField_management(sorted_out_table, "FID", "autoIncrement()", "PYTHON_9.3", "rec=0\\ndef autoIncrement():\\n global rec\\n pStart = 1 #adjust start value, if req'd \\n pInterval = 1 #adjust interval value, if req'd\\n if (rec == 0): \\n&amp;nbsp; rec = pStart \\n else: \\n&amp;nbsp; rec = rec + pInterval \\n return rec\\n")
arcpy.AddMessage("Completed Calculation")


arcpy.AddMessage("Search Cursor to delete rows")
sql = r"FID &amp;gt; " + str(records_return)
rows = arcpy.UpdateCursor(sorted_out_table,sql,"","")
arcpy.AddMessage("Processing Update Cursor")



for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.deleteRow(row)
del row, rows
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
arcpy.AddMessage("Deleted Rows")

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error i am getting in the Geoprocessing window shows that the script gets to the message ''Processing Update Cursor" and fails on the for row in rows section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can i do to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: PointDistance &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Mon Oct 08 11:14:52 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Running script PointDistance...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Processing Point Distance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Completed Point Distance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Processing Sort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deleting Previous Tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Completed Deleting Tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Completed Sorting Tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding new field FID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Completed New Field FID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculating FID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Completed Calculation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Search Cursor to delete rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Processing Update Cursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type 'exceptions.NameError'&amp;gt;: name 'row' is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (PointDistance).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Mon Oct 08 11:15:41 2012 (Elapsed Time: 49.00 seconds)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137385#M4683</guid>
      <dc:creator>KamrulKashem</dc:creator>
      <dc:date>2021-12-11T07:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with using Update cursor to delete rows. - URGENT help required !</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137386#M4684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove row from rows.deleteRow(row)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for row in rows:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.deleteRow()&amp;nbsp; 
del row, rows&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-with-using-update-cursor-to-delete-rows/m-p/137386#M4684</guid>
      <dc:creator>AndrewKeith3</dc:creator>
      <dc:date>2021-12-11T07:37:53Z</dc:date>
    </item>
  </channel>
</rss>

