<?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: Field Calculator for not null fields in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282196#M12263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/42774"&gt;Andrew Ingall&lt;/A&gt;‌ Did Dan's reply give you what you needed?&amp;nbsp; If so, could you mark this as answered - maybe share back how you did this in Arcade?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, we should try to get an answer posted here.&amp;nbsp; I know &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ is handy with Arcade!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2018 15:08:52 GMT</pubDate>
    <dc:creator>KoryKramer</dc:creator>
    <dc:date>2018-11-12T15:08:52Z</dc:date>
    <item>
      <title>Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282194#M12261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the field calculator to concatenate various fields into one new field.&amp;nbsp; The ArcGIS Arcade Guide gives the following example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #5c2699;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;([&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;'red'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;'blue'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;'green'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;], &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;'/'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;which gives&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;red/blue/green.&amp;nbsp; This works fine when all of the fields contain a value, but how can i concatenate only the fields that are not null&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;I am trying to concatenate address details , so for example&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;field1 = building name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;field2 = building number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;field3 = road name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;field4 = area&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;field5 = town&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;in my example the building name or area could be null, so i end up with:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;,12,A Road,,Town - so i need to remove the additional field separators ','&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;Thanks for any help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 18:38:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282194#M12261</guid>
      <dc:creator>AndrewIngall1</dc:creator>
      <dc:date>2018-11-08T18:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282195#M12262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arcade... no, someone else can translate this example from python&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# ---- pretend data, representing field values&lt;/SPAN&gt;

field1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'building name'&lt;/SPAN&gt;
field2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&amp;nbsp; None
field3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'road name'&lt;/SPAN&gt;
field4 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; None
field5 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'town'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# --- put them into a list... you could put the whole list in, I just simplied it&lt;/SPAN&gt;

flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;field1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field5&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;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; flds &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- result&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'building name, road name, town'&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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282195#M12262</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282196#M12263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/42774"&gt;Andrew Ingall&lt;/A&gt;‌ Did Dan's reply give you what you needed?&amp;nbsp; If so, could you mark this as answered - maybe share back how you did this in Arcade?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, we should try to get an answer posted here.&amp;nbsp; I know &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ is handy with Arcade!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 15:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282196#M12263</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2018-11-12T15:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282197#M12264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Kory Kramer - I actually went down the FME route to concatenate the field together - I could not get my head around how to do it in ArcGIS Pro with Arcade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 07:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282197#M12264</guid>
      <dc:creator>AndrewIngall1</dc:creator>
      <dc:date>2018-11-13T07:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282198#M12265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for future reference, you could use something like this in Arcade next time:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// replace the field names according to your data&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; field1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"field1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; field2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"field2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; field3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"field3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; field4 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"field4"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; field5 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"field5"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fields_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;field1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field5&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fields_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fields_in&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fields_in&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; Null&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; j &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fields_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fields_out&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;j&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fields_in&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; label &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fields_out&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;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; label&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will only&amp;nbsp;omit Null values and not empty strings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know Dan, this is much longer than the Python snippet you provided...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:40:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282198#M12265</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T13:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282199#M12266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And longer than in Avenue too &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 17:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282199#M12266</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-13T17:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282200#M12267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your python example, is None actually Null or some other way of showing empty data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 16:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282200#M12267</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2020-06-05T16:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282201#M12268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL Null gets mapped to Python None in cursors and the Field Calculator, so one can use Python None to test how SQL Null will behave with a code snippet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2020 02:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/282201#M12268</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-06-06T02:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1244560#M63864</link>
      <description>&lt;P&gt;Hi, Xander&lt;/P&gt;&lt;P&gt;Thanks for the solution to this concatenation task. When i use your code in ArcGIS pro 2.9.5 field calculator tool in model builder, i am getting an error &lt;EM&gt;'identifier expected&lt;/EM&gt;' on line 17:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var field1 = $feature.utm_check;
var field2 = $feature.township_match;
var field3 = $feature.range_match;
var field4 = $feature.section_match;
var field5 = $feature.DPA_match;
var field6 = $feature.county_match;

var fields_in = [field1, field2, field3, field4, field5, field6];
var fields_out = [];
for (var i = 0; i &amp;lt; Count(fields_in); i++) { 
    if (fields_in[i] != Null) {
        var j = Count(fields_out);
        fields_out[j] = fields_in[i];
    }
}

var label = Concatenate(fields_out, ",");
return label;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide any guidance on this syntax error please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 16:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1244560#M63864</guid>
      <dc:creator>Andra</dc:creator>
      <dc:date>2022-12-30T16:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1244613#M63872</link>
      <description>&lt;P&gt;Update - I was able to use Dan's python suggestion to concatenate the fields, but i am still curious about the above error if there is a simple solution. thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;', '.join([str(i) for i in [ !utm_check!, !township_match!, !range_match!, !section_match!, !DPA_match!, !county_match!] if i])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-a&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 18:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1244613#M63872</guid>
      <dc:creator>Andra</dc:creator>
      <dc:date>2022-12-30T18:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1244770#M63895</link>
      <description>&lt;P&gt;Not sure how it could get much simpler.&amp;nbsp; If the passing of field names is removed, the code boils down to:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;', '.join([str(i) for i in [ ] if i])&lt;/LI-CODE&gt;&lt;P&gt;That is pretty simple and compact.&amp;nbsp; The bulk of the line is in field names, and you can't remove them.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 16:13:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1244770#M63895</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-01-02T16:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator for not null fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1516850#M86645</link>
      <description>&lt;P&gt;I know this thread is old, but in case anyone comes across this searching for this solution as I did, I got the code to work by replacing the full quotes "" with single quotes '' on line 17 when used in an AGOL custom field&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 18:28:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-for-not-null-fields/m-p/1516850#M86645</guid>
      <dc:creator>KevinN_CSJ</dc:creator>
      <dc:date>2024-08-08T18:28:00Z</dc:date>
    </item>
  </channel>
</rss>

