<?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: Arcpy delete field in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236122#M26606</link>
    <description>&lt;P&gt;Do you have Pro running with the layer when using your standalone script?&lt;/P&gt;&lt;P&gt;Perhaps follow the reboot suggestion in the error's help&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-02551-02575-002557.htm" target="_blank"&gt;002557: Cannot delete field &amp;lt;value&amp;gt; from &amp;lt;value&amp;gt;.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 19:57:39 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-11-29T19:57:39Z</dc:date>
    <item>
      <title>Arcpy delete field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236104#M26605</link>
      <description>&lt;DIV&gt;Hi, I've got a question on&lt;PRE&gt;arcpy.DeleteField_management&lt;/PRE&gt;as it's not working correctly each time in my stand alone script. I keep getting the ERROR 002557: Cannot delete field (random field) from layer when using the keep fields option. It's not the same field each time, just a random field and only happens about half the times that I run the script. It works when put in the Python window in Pro. Any thoughts would be appreciated&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:20:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236104#M26605</guid>
      <dc:creator>ArnhamnS</dc:creator>
      <dc:date>2022-11-29T19:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy delete field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236122#M26606</link>
      <description>&lt;P&gt;Do you have Pro running with the layer when using your standalone script?&lt;/P&gt;&lt;P&gt;Perhaps follow the reboot suggestion in the error's help&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-02551-02575-002557.htm" target="_blank"&gt;002557: Cannot delete field &amp;lt;value&amp;gt; from &amp;lt;value&amp;gt;.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236122#M26606</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-11-29T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy delete field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236129#M26607</link>
      <description>&lt;P&gt;No the layer is not in Pro when the script is running. I created a script tool and run it that way with a blank Pro map. It's not open in any other program, and isn't read only. It's weird that it works about half the times that I run it other times it fails on a random field that it can't delete.&amp;nbsp; I use the keep fields option parameter since it was easier with so many fields. It will work if you copy and paste into the python window every time.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 20:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236129#M26607</guid>
      <dc:creator>ArnhamnS</dc:creator>
      <dc:date>2022-11-29T20:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy delete field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236158#M26608</link>
      <description>&lt;P&gt;Is the data on a local drive, network share or in an enterprise geodatabase?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 20:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236158#M26608</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2022-11-29T20:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy delete field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236166#M26609</link>
      <description>&lt;P&gt;It's on a local drive, in a file geodatabase&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236166#M26609</guid>
      <dc:creator>ArnhamnS</dc:creator>
      <dc:date>2022-11-29T21:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy delete field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236177#M26610</link>
      <description>&lt;P&gt;does your script tool have the featureclass/layer as a parameter and you select the field to delete? or is it a parameter-less script?&amp;nbsp; If it is the latter, try adding the required parameters and see if it succeeds.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect it to work flawlessly if running from the python window within Pro since it is "aware" of its surrounds and a parameterless tool may not be.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:39:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236177#M26610</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-11-29T21:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy delete field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236810#M26611</link>
      <description>&lt;P&gt;Sorry for the late reply. Yes the script tool has the feature class as a parameter initially but once it gets to this step it has gone thru a couple other processes. The actual delete fields part is now a hard-coded feature class from these previous steps. It did the same error now in the python window, but after deleting all data and running again it worked. But still no luck as running as a script tool&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 15:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-delete-field/m-p/1236810#M26611</guid>
      <dc:creator>ArnhamnS</dc:creator>
      <dc:date>2022-12-01T15:10:24Z</dc:date>
    </item>
  </channel>
</rss>

