<?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 Concatenate text from two fields not working in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/concatenate-text-from-two-fields-not-working/m-p/413340#M13963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within ArcPro 2.4, I'm trying to calculate a new field from two existing fields. The first field is an ID field of type text, and the second is a full date and time field of type Date. I want to separate the two with an underscore. I use the following in the Field Calculator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/453885_dfgdfgdfgdf.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Problem is, my results end up being &amp;lt;Null&amp;gt; for the new column AKEY. The new column AKEY is type text, with 8000 length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2019 21:32:39 GMT</pubDate>
    <dc:creator>MalcolmLittle</dc:creator>
    <dc:date>2019-07-22T21:32:39Z</dc:date>
    <item>
      <title>Concatenate text from two fields not working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/concatenate-text-from-two-fields-not-working/m-p/413340#M13963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within ArcPro 2.4, I'm trying to calculate a new field from two existing fields. The first field is an ID field of type text, and the second is a full date and time field of type Date. I want to separate the two with an underscore. I use the following in the Field Calculator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/453885_dfgdfgdfgdf.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Problem is, my results end up being &amp;lt;Null&amp;gt; for the new column AKEY. The new column AKEY is type text, with 8000 length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 21:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/concatenate-text-from-two-fields-not-working/m-p/413340#M13963</guid>
      <dc:creator>MalcolmLittle</dc:creator>
      <dc:date>2019-07-22T21:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate text from two fields not working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/concatenate-text-from-two-fields-not-working/m-p/413341#M13964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; datetime

idval &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'1'&lt;/SPAN&gt;

nw &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; datetime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;datetime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;now&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"{}_{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;idval&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nw&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'1_2019-07-22 17:36:38.897392'&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;/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;python formatter will convert anything to a string which can be used in concatenation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/concatenate-text-from-two-fields-not-working/m-p/413341#M13964</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T18:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate text from two fields not working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/concatenate-text-from-two-fields-not-working/m-p/413342#M13965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Pro thinks your Python expression is valid, so if you are getting lots of Null, it makes me wonder if you have a selection on the table so you are only calculating for a small subset of records but looking at all the records afterwards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 00:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/concatenate-text-from-two-fields-not-working/m-p/413342#M13965</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-07-23T00:39:36Z</dc:date>
    </item>
  </channel>
</rss>

