<?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 JoinField General Function Failure in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/joinfield-general-function-failure/m-p/638153#M49735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having an issue with the arcpy.JoinField_management() function. Most of the time (but NOT always), it fails in several of my scripts, although it is structurally no different than example 2 in ArcGIS help: that is, a feature class and a table, both imported into a geodatabase, and the JoinField used to join the table to the feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error I get is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR 999999: Error executing function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;General function failure [featureclassname]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (JoinField).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;looking into the script of the function, the exact point of failure is: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.JoinField_management(*gp_fixargs((in_data, in_field, join_table, join_field, fields), True)))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return retval
&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I do to solve this problem? My impression is that it's a cache/memory issue, since it doesn't always fail. Is there a way to clear memory in arcpy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated - I've been struggling with this for weeks. I'm happy to provide more code or data if that's useful to explain the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 05:49:33 GMT</pubDate>
    <dc:creator>DavidSchoenholzer</dc:creator>
    <dc:date>2013-08-22T05:49:33Z</dc:date>
    <item>
      <title>JoinField General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/joinfield-general-function-failure/m-p/638153#M49735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having an issue with the arcpy.JoinField_management() function. Most of the time (but NOT always), it fails in several of my scripts, although it is structurally no different than example 2 in ArcGIS help: that is, a feature class and a table, both imported into a geodatabase, and the JoinField used to join the table to the feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error I get is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR 999999: Error executing function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;General function failure [featureclassname]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (JoinField).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;looking into the script of the function, the exact point of failure is: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.JoinField_management(*gp_fixargs((in_data, in_field, join_table, join_field, fields), True)))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return retval
&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I do to solve this problem? My impression is that it's a cache/memory issue, since it doesn't always fail. Is there a way to clear memory in arcpy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated - I've been struggling with this for weeks. I'm happy to provide more code or data if that's useful to explain the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joinfield-general-function-failure/m-p/638153#M49735</guid>
      <dc:creator>DavidSchoenholzer</dc:creator>
      <dc:date>2013-08-22T05:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: JoinField General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/joinfield-general-function-failure/m-p/638154#M49736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear ESRI,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please take care of this problem or tell me where the mistake on my side is. This is forcing me to use GIS solutions in Matlab, which means I might discontinue my usage of your product. Merging tables to one another is a fundamental feature of any data management software, so there is no way ArcGIS can be used without.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Sep 2013 20:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joinfield-general-function-failure/m-p/638154#M49736</guid>
      <dc:creator>DavidSchoenholzer</dc:creator>
      <dc:date>2013-09-14T20:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: JoinField General Function Failure</title>
      <link>https://community.esri.com/t5/python-questions/joinfield-general-function-failure/m-p/638155#M49737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Dear ESRI,&lt;BR /&gt;&lt;BR /&gt;please take care of this problem or tell me where the mistake on my side is. This is forcing me to use GIS solutions in Matlab, which means I might discontinue my usage of your product. Merging tables to one another is a fundamental feature of any data management software, so there is no way ArcGIS can be used without.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;David&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am interested in an answer as well. I teach an Intro to GIS course where we are unable to complete a spatial join and save to a new *.mdg (using the Join GUI).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JJM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 17:40:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joinfield-general-function-failure/m-p/638155#M49737</guid>
      <dc:creator>JessicaMitchell</dc:creator>
      <dc:date>2013-09-18T17:40:03Z</dc:date>
    </item>
  </channel>
</rss>

