<?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 Join Field Not Working in Pro Toolbox in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393323#M17394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I&amp;nbsp;added a table to table conversion from the csv with field mapping to reformat the RecordID to text and Useable Area field (text number&amp;nbsp;&lt;SPAN&gt;to float) and it worked running the tool in ArcGIS Pro.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2018 20:16:05 GMT</pubDate>
    <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
    <dc:date>2018-11-01T20:16:05Z</dc:date>
    <item>
      <title>Arcpy Join Field Not Working in Pro Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393319#M17390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Python script that joins a csv table to a geodatabase feature class. This works fine when I run the script in IDLE(2.7.13), but when I run this script from a toolbox in ArcGIS Pro, the field values are all null after the join. I&amp;nbsp;made sure that the&amp;nbsp;script is compatible with Python 3, and ran the Analyze Tools for Pro tool and found no issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyRows_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;csvReport&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"roomReport"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;JoinField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TextString"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"roomReport"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"RecordID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; joinFields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"roomReport"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CalculateField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SiteFloor"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"!Site! + ' ' + !Floor!"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PYTHON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CalculateField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"UsableSF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"int(round(float(!UsableArea!)))"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PYTHON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing that is very confusing is that the join field from the featureClass is called "Text" in the attribute table. This matches to the "RecordID" in the csv table. When I run the script standalone, "TextString" works (this script was written by&amp;nbsp;someone else so I'm not sure about this discrepancy). When I run the script in the Pro toolbox, I get an error &lt;STRONG&gt;"field 'TextString' does not exist in the table"&lt;/STRONG&gt; which is what I would expect to happen. I've tried adding a field called "TextString" to the featureClass, and calculating it's value as "Text" but this hasn't worked. If I change the match field to "Text" in the script, it also doesn't work.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393319#M17390</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2021-12-11T18:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Join Field Not Working in Pro Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393320#M17391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A screen grab of the two tables would help since it isn't clear from your description what fields actually exist in both tables and whether the text case matches in both.&amp;nbsp; The two fields that you are using to join can have different names, but their contents, including text case must be identical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:09:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393320#M17391</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-01T17:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Join Field Not Working in Pro Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393321#M17392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue might also be&amp;nbsp;arcpy.CopyRows_management, because in standalone Python, four rows are copied from the csv to the featureClass with no issues. Run in the toolbox in Pro, all of these fields are there but the values are null.&amp;nbsp;Only two of the four fields are actually calculated in the code snippet above. I looked at the formatting, and the "Text" field from the featureClass is indeed a text field. The RecordID field in the csv is general format. I tried saving it as a text field, but the issue persists. It doesn't work in Pro with the field named either "Text" or "TextString" but it works in IDLE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;featureClass:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CSV:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/426910_text_field.PNG" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;IMG alt="" class="image-2 jive-image" height="356" src="https://community.esri.com/legacyfs/online/426938_record_ID.PNG" width="96" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393321#M17392</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2018-11-01T17:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Join Field Not Working in Pro Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393322#M17393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;left justified is usually text, right justified is usually numbers.&amp;nbsp; I would do the join after you make the csv a gdb table to confirm whether the csv column is being treated as text or numbers.&amp;nbsp; If it is being treated as numbers, then you will need to convert the column to a new text column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 18:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393322#M17393</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-01T18:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Join Field Not Working in Pro Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393323#M17394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I&amp;nbsp;added a table to table conversion from the csv with field mapping to reformat the RecordID to text and Useable Area field (text number&amp;nbsp;&lt;SPAN&gt;to float) and it worked running the tool in ArcGIS Pro.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 20:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-join-field-not-working-in-pro-toolbox/m-p/393323#M17394</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2018-11-01T20:16:05Z</dc:date>
    </item>
  </channel>
</rss>

