<?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.management.JoinField ERROR 999999 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262514#M66024</link>
    <description>&lt;P&gt;Good thought! Thank you. I will jump back in and check out the tool history. I figured there was a way to see the command line history, but wasn't quite sure where to look.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 16:18:55 GMT</pubDate>
    <dc:creator>coolflippers</dc:creator>
    <dc:date>2023-02-28T16:18:55Z</dc:date>
    <item>
      <title>arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262257#M66001</link>
      <description>&lt;P&gt;When I run this:&amp;nbsp;arcpy.management.JoinField("gssurgo_poly","MUKEY","M:/public/fw3540_labs/2022/lab7/gSSURGO_MI.gdb/mapunit","Mapunit key",["Legend Key","Mapunit Key","Mapunit Name","Mapunit Symbol"])&lt;/P&gt;&lt;P&gt;I get the dreaded 9's, and nothing changes in my table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this (note I have changed from Alias to Field Name):&amp;nbsp;arcpy.management.JoinField("gssurgo_poly","MUKEY","M:/public/fw3540_labs/2022/lab7/gSSURGO_MI.gdb/Mapunit","Mapunit key",["mukey","lkey","musym","muname"])&lt;/P&gt;&lt;P&gt;I get the dreaded 9's, but the four fields populate as Null values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this:&amp;nbsp;arcpy.management.AddJoin("gssurgo_poly","MUKEY","M:/public/fw3540_labs/2022/lab7/gSSURGO_MI.gdb/Mapunit","Mapunit key")&lt;/P&gt;&lt;P&gt;All the fields populate as Null values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run it in the tool:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coolflippers_0-1677551629809.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63810iF4F270D682749305/image-size/medium?v=v2&amp;amp;px=400" role="button" title="coolflippers_0-1677551629809.png" alt="coolflippers_0-1677551629809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Runs like a dream.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coolflippers_1-1677551657758.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63811i98BB0F96685CD998/image-size/medium?v=v2&amp;amp;px=400" role="button" title="coolflippers_1-1677551657758.png" alt="coolflippers_1-1677551657758.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a bug, or am I missing something obvious?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 02:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262257#M66001</guid>
      <dc:creator>coolflippers</dc:creator>
      <dc:date>2023-02-28T02:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262259#M66002</link>
      <description>&lt;P&gt;I get similar issues with AddJoin. Works fine in the tool. In the python script, I get ERROR 160637: The name of an entry in the CodedValueDomain is empty.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 02:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262259#M66002</guid>
      <dc:creator>coolflippers</dc:creator>
      <dc:date>2023-02-28T02:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262264#M66003</link>
      <description>&lt;P&gt;And then, after importing the table, still no dice:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.management.JoinField("gssurgo_poly","MUKEY","Mapunit","Mapunit key")&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 9027, in JoinField&lt;BR /&gt;raise e&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 9024, in JoinField&lt;BR /&gt;retval = convertArcObjectToPythonObject(gp.JoinField_management(*gp_fixargs((in_data, in_field, join_table, join_field, fields, fm_option, field_mapping), True)))&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Join Table: Dataset Mapunit does not exist or is not supported&lt;BR /&gt;Failed to execute (JoinField).&lt;/P&gt;&lt;P&gt;arcpy.management.JoinField("gssurgo_poly","MUKEY","Mapunit","mukey")&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 9027, in JoinField&lt;BR /&gt;raise e&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 9024, in JoinField&lt;BR /&gt;retval = convertArcObjectToPythonObject(gp.JoinField_management(*gp_fixargs((in_data, in_field, join_table, join_field, fields, fm_option, field_mapping), True)))&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Join Table: Dataset Mapunit does not exist or is not supported&lt;BR /&gt;Failed to execute (JoinField).&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 02:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262264#M66003</guid>
      <dc:creator>coolflippers</dc:creator>
      <dc:date>2023-02-28T02:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262268#M66004</link>
      <description>&lt;P&gt;when running from a tool or in the python window, the current workspace is known.&lt;/P&gt;&lt;P&gt;If you are using a separate python ide, it is best to specify the workspace, eg.&lt;/P&gt;&lt;P&gt;arcpy.env.workspace =&amp;nbsp;"C:/data/data.gdb"&lt;/P&gt;&lt;P&gt;assuming&amp;nbsp;"gssurgo_poly" is in that geodatabase and your other file requires a full path to locate it&lt;/P&gt;&lt;P&gt;or specify the full paths to both&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 03:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262268#M66004</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-02-28T03:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262354#M66012</link>
      <description>&lt;P&gt;You're using an alias as join field ("Mapunit key"), that might be the problem. Try with the actual field name.&lt;/P&gt;&lt;P&gt;If you can run it from the tool, then go to the geoprocessing history, right-click on the successfull tool run, send the code to the Python Window, and analyze the command.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 08:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262354#M66012</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-02-28T08:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262512#M66023</link>
      <description>&lt;P&gt;Dan, thank you for this. I noticed in my code that I didn't take into account that the tables are in the parent folder and the feature class is within the child folder. Re-ran, without success, but will jump back in once if I have the time.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262512#M66023</guid>
      <dc:creator>coolflippers</dc:creator>
      <dc:date>2023-02-28T16:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262514#M66024</link>
      <description>&lt;P&gt;Good thought! Thank you. I will jump back in and check out the tool history. I figured there was a way to see the command line history, but wasn't quite sure where to look.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1262514#M66024</guid>
      <dc:creator>coolflippers</dc:creator>
      <dc:date>2023-02-28T16:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.JoinField ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1302087#M70504</link>
      <description>&lt;P&gt;I'm not OP, but changing from field alias to the actual field name solved this issue for me&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ERROR 160637:&amp;nbsp;The name of an entry in the CodedValueDomain is empty.)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 16:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-joinfield-error-999999/m-p/1302087#M70504</guid>
      <dc:creator>AndrewHiggins1</dc:creator>
      <dc:date>2023-06-22T16:00:09Z</dc:date>
    </item>
  </channel>
</rss>

