<?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 Management General Function Failure in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464872#M36405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I did and I tried reinstalling ArcGIS Desktop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even converted the script to Python 3 and ran it with ArcGIS Pro and it still complains about a general function failure although with better error statements (it actually tells me at which field it stopped).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very temperamental , I tried running it once with a small query and it fell over. When I reran the script with the same query, it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 00:57:33 GMT</pubDate>
    <dc:creator>WengNg1</dc:creator>
    <dc:date>2018-04-05T00:57:33Z</dc:date>
    <item>
      <title>Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464868#M36401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trawling around the forums for an answer to an issue with a general function failure on one of my arcpy script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a script that does a Select By Attribute query and export the selection out as another feature class. Then, it does a bit of field mapping through a list and then it also tries to delete unwanted fields from the feature class and does a&amp;nbsp; few Calculate Field operations .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script works fine as is but it starts breaking when it encounters a large dataset complaining about a General Function Failure . I tried debugging and found that the script crashes at the delete field management stage. If I reduce the amount of data queried , it works fine which is bizzare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it works with a smaller dataset, it doesn't look like it is a filegdb locking issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any known bugs with the delete field management arcpy module that causes this crash?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464868#M36401</guid>
      <dc:creator>WengNg1</dc:creator>
      <dc:date>2018-04-04T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464869#M36402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could also be a resource issue rather than a file lock.&amp;nbsp; Can you delete using the toolbox interface instead of the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 11:52:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464869#M36402</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-04T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464870#M36403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, you are quite right. I tried deleting with the toolbox and it returned the same error . It also happens to corrupt the feature class that I'm trying to delete which also happens when I was running the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like a bug to me ? As it is a general function failure, I'm not even sure if it captures any logs .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 00:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464870#M36403</guid>
      <dc:creator>WengNg1</dc:creator>
      <dc:date>2018-04-05T00:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464871#M36404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point, I presume you have tried resetting your profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, you could try a 'repair' in control panel 'add/remove programs'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't work, then reinstall might be needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly... off to tech support with details and data may be your last option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 00:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464871#M36404</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-05T00:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464872#M36405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I did and I tried reinstalling ArcGIS Desktop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even converted the script to Python 3 and ran it with ArcGIS Pro and it still complains about a general function failure although with better error statements (it actually tells me at which field it stopped).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very temperamental , I tried running it once with a small query and it fell over. When I reran the script with the same query, it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 00:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464872#M36405</guid>
      <dc:creator>WengNg1</dc:creator>
      <dc:date>2018-04-05T00:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464873#M36406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmmm. beginning to sound like a data issue or a script issue.&lt;/P&gt;&lt;P&gt;I doubt that you are using anything changed from 2 to 3 (did you run the 2to3.py when you upgraded?) that would impact your script.&lt;/P&gt;&lt;P&gt;Is there anything special about your data?&amp;nbsp; a different codepage/regionality?&amp;nbsp; Does the code work on other data?&lt;/P&gt;&lt;P&gt;If the script isn't really long, then maybe posting here might twig some discussion ( just in case... &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;Code Formatting the basics++&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 01:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464873#M36406</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-05T01:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464874#M36407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Quick update :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've contacted ESRI support on this issue as well as consulted IT within my organisation. We were able to narrow it down to an issue with&amp;nbsp;a new McAfee deployment from IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue was successfully replicated on multiple machines within the organisation and is independent of the script's code. It will randomly corrupt the feature class if you try deleting multiple fields manually in large dataset . We suspect that it might have something to do with a memory scan of some sort but obviously that is very difficult to log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way that stops McAfee from blocking it was to turn off On Access Scanning and Script Scan. However, due to company policies , this cannot be the solution. We've also tried excluding all possible folders related to ESRI but still no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, this is independent of ArcMap versions as well. I've tried it on ArcGIS Pro and it was coming up with the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although not fully tested, I've encountered this issue with other tools as well when working with large datasets. So, it is not specifically a tool failure of any sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 03:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464874#M36407</guid>
      <dc:creator>WengNg1</dc:creator>
      <dc:date>2018-05-09T03:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Delete Field Management General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464875#M36408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weng, good to know, I use McAfee but mine is set for home use I suppose so I haven't encountered the issues you have.&amp;nbsp; Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 03:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-delete-field-management-general-function/m-p/464875#M36408</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-05-09T03:41:43Z</dc:date>
    </item>
  </channel>
</rss>

