<?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: Join field within Python: No output?? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32184#M2548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ive made those changes and i am now trying to run the script in Python. Does it take a long time to run? cause Python has been running the script now for about 10 mins and is still going?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 21:11:35 GMT</pubDate>
    <dc:creator>AllieHartman</dc:creator>
    <dc:date>2012-04-25T21:11:35Z</dc:date>
    <item>
      <title>Join field within Python: No output??</title>
      <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32181#M2545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;has anyone ever done a join field within Python to produce a join in ArcMap in a attribute table? The join works in ArcMap model builder but does not give us the correct script we are looking to use in PythonWin. We have tried using different extensions and whatnot but some how even when there is an exit code of 0 there is no output within ArcMap. Does anyone have suggestions?&amp;nbsp; Any hints that could help us identify the problem at hand? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is an example of script as is right now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #set workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = "E:\python\Final\Dan"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #local parameters&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFeatures = "aslc940_polygon_Project"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerName = "Export_Output_Ashland"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; joinField = "GRID_CODE"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; joinTable = "lulc_gridcode_crosswalk"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; joinField2 = "Code"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldList = "land_cover"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.JoinField_management (inFeatures, joinField, joinTable, joinField2, fieldList)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.GetMessages(2)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 20:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32181#M2545</guid>
      <dc:creator>AllieHartman</dc:creator>
      <dc:date>2012-04-25T20:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Join field within Python: No output??</title>
      <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32182#M2546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try replacing the back slashes in the path to forward slashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: I just tried it and it works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;second edit: after seeing Phil's post below, I should note that I didn't use the fieldlist parameter in my test - you should use his advice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 20:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32182#M2546</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-04-25T20:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Join field within Python: No output??</title>
      <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32183#M2547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt; It's preferable that you post your example script here using code blocks. There is a sticky post at the top of this forum that explains how to do that.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Your value of fieldList is not a list, it's a string. To make a Python list, enclose a string in brackets: &lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;fieldList = ["land_cover"]&lt;/PRE&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; As somebody else pointed out, your workspace variable is not being set correctly. This is probably the problem.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32183#M2547</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2012-04-25T21:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Join field within Python: No output??</title>
      <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32184#M2548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ive made those changes and i am now trying to run the script in Python. Does it take a long time to run? cause Python has been running the script now for about 10 mins and is still going?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32184#M2548</guid>
      <dc:creator>AllieHartman</dc:creator>
      <dc:date>2012-04-25T21:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join field within Python: No output??</title>
      <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32185#M2549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It'll depend on how complicated the join is. Mine finished in about 5 seconds, but I was only joining about 10 features to another 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32185#M2549</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-04-25T21:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join field within Python: No output??</title>
      <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32186#M2550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To give you a ballpark, when I join a 900k row feature class to 900k row table with 20 fields it takes about an hour on a pretty beefy workstation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32186#M2550</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-04-25T21:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Join field within Python: No output??</title>
      <link>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32187#M2551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok thank you for the help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 21:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-within-python-no-output/m-p/32187#M2551</guid>
      <dc:creator>AllieHartman</dc:creator>
      <dc:date>2012-04-25T21:51:03Z</dc:date>
    </item>
  </channel>
</rss>

