<?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: Skip Null Values Attribute Assistant in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430655#M24658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't worry&amp;nbsp;&lt;A href="https://community.esri.com/people/jborgion"&gt;jborgion&lt;/A&gt;&amp;nbsp;, this will probably happen again in the future. It has happend to me countless times and when I have errores in my expressions it is the first thing I look for.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2020 22:36:58 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2020-06-10T22:36:58Z</dc:date>
    <item>
      <title>Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430649#M24652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the attribute assistant to populate a GIS ID which consists of a location ID - Equipment ID. I have been able to get the assistant to work using the following expression in the Value Info field. ([LOCATIONID]+"-"+[EQUIPMENTID]). This returns GIS IDs but some have a null portion. However, I need a way for the attribute assistant to skip (or not populate) if either the location ID or equipment ID is null. Is there a way to do this? I have tried NOT NULL in a variety of ways but was not successful.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 19:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430649#M24652</guid>
      <dc:creator>KarinaLivingston</dc:creator>
      <dc:date>2020-06-09T19:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430650#M24653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this ( or some variation of it) works for you:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;joinChar = "-"
if IsEmpty($feature.LOCATIONID) || IsEmpty($feature.EQUIPMENTID) {
   continue;
}
else {
   var newID = Concatenate([$feature.LOCATIONID,$feature.EQUIPMENTID],joinChar)
   return newID
}&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430650#M24653</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-11T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430651#M24654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Joe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This didn't work but I think it's because I have to put it in the "Value Info" field for the Attribute Assistant. All the other examples I have seen are simple. I've been trying combinations of the following expression but keep getting the same results. I know it's similar to the other expression but I feel like this is taking down the right path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF(IsNull([LOCATIONID]),"",[LOCATIONID] &amp;amp; "-") &amp;amp; IIF(IsNull([EQUIPMENTID]),"",[EQUIPMENTID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to include an OR but it's not working. I want nothing returned if either the LOCATIONID or the EQUIPMENTID have a NULL value. Right now if one or the other has a value it returns the value with a blank for the other value.&lt;BR /&gt;EX: I would like the first example to return empty since the second value is null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example" class="jive-emoji image-1 jive-image" height="54" src="https://community.esri.com/legacyfs/online/496108_Example.PNG" width="460" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430651#M24654</guid>
      <dc:creator>KarinaLivingston</dc:creator>
      <dc:date>2020-06-10T15:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430652#M24655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not surprised it didn't work, I'm a hack at best with arcade; the code here is from an attribute rule that was provided to me, and then cobbled together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want seems like it should be possible;&amp;nbsp; I'll summon &lt;EM&gt;the&lt;/EM&gt; goto guy for arcade:&amp;nbsp; &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ I bet you have a suggestion....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 17:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430652#M24655</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-10T17:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430653#M24656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/4422" target="_blank"&gt;Joe Borgione&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/369288" target="_blank"&gt;Karina Livingston&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could use something like the expression below (this will only return a value when both attributes are not empty):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LOCATIONID&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;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;EQUIPMENTID&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;return&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LOCATIONID &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"-"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;EQUIPMENTID&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="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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some reasons why Joe's code did not work is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When using a variable it should always be declared: so line 1 should be &lt;STRONG&gt;var joinChar = "-"&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;When using if the condition should always be inside brackets.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Karina's expression, it is important that you access the attributes using either $feature.FieldName or $feature["FieldName"]. It is not possible to use [FieldName] in Arcade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430653#M24656</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T19:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430654#M24657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When using a variable it should always be declared: so line 1 should be&amp;nbsp;&lt;/SPAN&gt;var joinChar = "-"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;hahaha; that's the pythonsita in me shining through...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 20:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430654#M24657</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-10T20:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430655#M24658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't worry&amp;nbsp;&lt;A href="https://community.esri.com/people/jborgion"&gt;jborgion&lt;/A&gt;&amp;nbsp;, this will probably happen again in the future. It has happend to me countless times and when I have errores in my expressions it is the first thing I look for.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 22:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430655#M24658</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-10T22:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430656#M24659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joe and Xander,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate you guys helping me out. I can't use Arcade because I am using the Attribute Assistant for ArcMap. I have to input the expression into the Dynamic Value table in the Value Info field. The syntax I have been using is from the posts I have found online and online documentation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm going to try some of these variations to see if it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 12:43:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430656#M24659</guid>
      <dc:creator>KarinaLivingston</dc:creator>
      <dc:date>2020-06-11T12:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430657#M24660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh shoot!&amp;nbsp; My blunder!&amp;nbsp; I've been using attribute rules extensively along with arcade so when I read your post, that's what I was thinking, not attribute assistant.&amp;nbsp; My apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, I would avoid the whole generate ID approach and try a nested IIF() function , but looking at he online help for AA, the IIF() explicitly states ' ...&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;functions cannot be used on Null values.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;What if you were to first calc all your &amp;lt;Nulll&amp;gt; values to equal '' (blank, not null) or 'NA' and then use the IIF () function that way.&amp;nbsp; (Personally I'm not a fan of blank values, so I'd prefer NA or some other notation).&amp;nbsp; As I recall, the IIF() function in AA can be challenging (at least for me they were), so first play with it so one half of your desired results work, and then 'nest' the the next part in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;Again, sorry for chasing down the wrong rabbit hole.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430657#M24660</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-11T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430658#M24661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/klivi001FPUA"&gt;klivi001FPUA&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind that ArcMap + Attribute Assistant is being replaced by ArcGIS Pro +&amp;nbsp; Attribute Rules. At some point you will want to start moving things over.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:29:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430658#M24661</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-11T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Null Values Attribute Assistant</title>
      <link>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430659#M24662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No worries! Thanks so much, this makes sense. I was going in circles reading post after post. &lt;BR /&gt;&lt;BR /&gt;I work for a small utility company which means we are behind most, we are currently transitioning to 10.6.1 and are not sure when we will be able to make the move to ArcGIS Pro. I see all the demos and new capabilities and can't wait but for now, we have to find workarounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/skip-null-values-attribute-assistant/m-p/430659#M24662</guid>
      <dc:creator>KarinaLivingston</dc:creator>
      <dc:date>2020-06-11T13:56:41Z</dc:date>
    </item>
  </channel>
</rss>

