<?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: Attribute Assistant Expression help in Water Utilities Questions</title>
    <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15826#M46</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I am trying to do is populate a unit description field.&amp;nbsp; A text field verbally describing the asset's attributes.&amp;nbsp; The difficulty with this is that I need to say when I don't have attributes. i.e.; ASBUILT NONE, MANHOLE DEPTH UNKNOWN. As opposed to ASBUILT 05-1515, MANHOLE DEPTH 5.7FT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what I attempted to do was evaluate if the attribute had a value or not and then populate accordingly.&amp;nbsp; Well this works fine if it's a new feature.&amp;nbsp; But when I find that my manhole depth is incorrect because the invert was set to "0" and I "&amp;lt;null&amp;gt;" the data the attribute assistant fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I was trying to use the ="" where I could because the isnull has a syntax error when the value IS NULL. I attempted to us Cstr() to force it to work too. Oh well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Words are such a sorry example of actual work.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can only hope this explanation will help in the understanding of the previous post.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 20:29:29 GMT</pubDate>
    <dc:creator>LarryPhillips</dc:creator>
    <dc:date>2011-09-16T20:29:29Z</dc:date>
    <item>
      <title>Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15820#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Where can I find documentation on what type of arguments work with the expression value method in the DynamicTable for the infrastructure editing toolbar's attribute assistant?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having some trouble with data types among other things.&amp;nbsp; One example looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...IIF([INSTDATE]="","NONE",YEAR([INSTDATE]))...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get an error of wrong data type while this work fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...", YEAR INSTALLED " &amp;amp; YEAR([INSTDATE])...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the "" because I could not figure out the syntax for ISNULL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get alot of syntax errors not knowing what functions/operators work with the Expression Value Method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 20:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15820#M40</guid>
      <dc:creator>LarryPhillips</dc:creator>
      <dc:date>2011-09-15T20:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15821#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After we translate the fields to values, we pass the expression to the MSScriptControl.ScriptControlClass object.&amp;nbsp; I think you want to us the isNull expression, so like below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF(isNull([FIELD]),TrueValue,FalseValue)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 11:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15821#M41</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2011-09-16T11:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15822#M42</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Row Info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Row Number 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableName: SWR_Manholes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldName: UNITDESC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValueInfo: IIF(isNull([MHDPTH]),"UNKNOWN",[MHDPTH])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValueMethod: EXPRESSION&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Create: 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Change: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order: 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Checking for Subtype Restriction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Field in the Field Name is not found: value(25)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trying: EXPRESSION&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace field: MHDPTH with a value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace field: MHDPTH with a value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR: evaluating the expression for feature in SWR Manholes with OID of 24849&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Syntax error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finished: EXPRESSION&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;After we translate the fields to values, we pass the expression to the MSScriptControl.ScriptControlClass object.&amp;nbsp; I think you want to us the isNull expression, so like below:&lt;BR /&gt;&lt;BR /&gt;IIF(isNull([FIELD]),TrueValue,FalseValue)&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:25:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15822#M42</guid>
      <dc:creator>LarryPhillips</dc:creator>
      <dc:date>2011-09-16T13:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15823#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you download the beta and try that?&amp;nbsp; I fixed a bug that might be the cause of your issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 15:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15823#M43</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2011-09-16T15:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15824#M44</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I have the Beta installed and tested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The isNull still doesn't work, the same way it didn't work before.&amp;nbsp; If there &lt;/SPAN&gt;&lt;STRONG&gt;is&lt;/STRONG&gt;&lt;SPAN&gt; a value it passes a "false" if the value is &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;null&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt; I get a syntax error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF([INSTDATE]="","NONE",YEAR([INSTDATE]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First run results: INSTDATE=somevalue I get the year of that value!&amp;nbsp; yeah.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First run results: INSTDATE=&amp;lt;null&amp;gt; I get "NONE"! yeah.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run results: INSTDATE=somevalue then set it to null I get a data type error. Boo!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run results: INSTDATE=&amp;lt;null&amp;gt; then set a date I get the year of that date! yeah!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more issue, when I set a nonstring data type fields (ie; Double) ="" I get a data type error if it is null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's to me wishing there was an emoticon beating it's head against the wall because thats how I feel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 18:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15824#M44</guid>
      <dc:creator>LarryPhillips</dc:creator>
      <dc:date>2011-09-16T18:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15825#M45</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot set a non string field to an empty string.&amp;nbsp; Even an empty string is a string.&amp;nbsp; If you are trying to set a value as null, I am not sure you can.&amp;nbsp; We would need to translate a value you entered as null to a true null value.&amp;nbsp; Would you want use to translate &amp;lt;Null&amp;gt; to null?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 19:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15825#M45</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2011-09-16T19:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15826#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I am trying to do is populate a unit description field.&amp;nbsp; A text field verbally describing the asset's attributes.&amp;nbsp; The difficulty with this is that I need to say when I don't have attributes. i.e.; ASBUILT NONE, MANHOLE DEPTH UNKNOWN. As opposed to ASBUILT 05-1515, MANHOLE DEPTH 5.7FT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what I attempted to do was evaluate if the attribute had a value or not and then populate accordingly.&amp;nbsp; Well this works fine if it's a new feature.&amp;nbsp; But when I find that my manhole depth is incorrect because the invert was set to "0" and I "&amp;lt;null&amp;gt;" the data the attribute assistant fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I was trying to use the ="" where I could because the isnull has a syntax error when the value IS NULL. I attempted to us Cstr() to force it to work too. Oh well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Words are such a sorry example of actual work.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can only hope this explanation will help in the understanding of the previous post.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 20:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15826#M46</guid>
      <dc:creator>LarryPhillips</dc:creator>
      <dc:date>2011-09-16T20:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15827#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I posted an updated version that handles IsNull a little better.&amp;nbsp; I tested you equation you sent me and it works if you remove the YEAR() part.&amp;nbsp; A IIF statement in VB evaluated both true and false parts, so you cannot pass a null in and define a process on it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Article explaining the IIF statement - &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/27ydhh0d(v=vs.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/27ydhh0d(v=vs.80).aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Beta Version - &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/20000-Beta-Versions"&gt;http://forums.arcgis.com/threads/20000-Beta-Versions&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 16:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15827#M47</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2011-09-19T16:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15828#M48</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much!!&amp;nbsp; The isnull works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also did not realize the iif statement evaluated both true/false parts.&amp;nbsp; So now when I evaluate the is null I populate a string "SetFromSomeField" and then use the Replace() to set it, works with Year() too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run_order | Value_info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | [UNITDESC] &amp;amp; ", MH DEPTH " &amp;amp; IIF(isNull([MHDPTH]),"UNKNOWN","SetMhDpth") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | REPLACE([UNITDESC],"SetMhDpth",[MHDPTH] &amp;amp; "FT")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 19:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15828#M48</guid>
      <dc:creator>LarryPhillips</dc:creator>
      <dc:date>2011-09-19T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15829#M49</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, &lt;/P&gt;&lt;P&gt;I know this is an old post , but is it possible in the current version of Attribute Assistant to set string or numeric fields to Null,&amp;nbsp; if yes then how we can simply set the field to Null ?&lt;/P&gt;&lt;P&gt;The only reference I could find and it didn't work with me was below, I have tried VBNull and Null in the IIF below but also didn't work :&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;A class="" href="http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-attribute-operations/#expression" title="http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-attribute-operations/#expression"&gt;Attribute operations - Attribute Assistant | ArcGIS Solutions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;To set values as null, use an empty string:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Invalid&lt;/STRONG&gt;: &lt;CODE&gt;IIF([LOCDESC]=0, "&amp;lt;NULL&amp;gt;", [LOCDESC])&lt;/CODE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Valid&lt;/STRONG&gt;: &lt;CODE&gt;IIF([LOCDESC]=0, "", [LOCDESC])&lt;/CODE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 05:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15829#M49</guid>
      <dc:creator>SamAdam</dc:creator>
      <dc:date>2017-03-14T05:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15830#M50</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the log file reporting, reviewing the code &amp;lt;Null&amp;gt; should work, try without the " " around it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 00:50:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15830#M50</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2017-03-15T00:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15831#M51</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that none of the following combinations of configurations sets the field to Null:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression&amp;nbsp; : IIF(1 = 1 , Null, Null)&amp;nbsp; =&amp;gt; this results in an empty string instead of Null. Log file looks fine with no errors&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log File :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trying: EXPRESSION&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Checking to verify there is a field to store the expression&lt;BR /&gt;Expression to be eval: iif(1 = 1,Null,Null)&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting Value to: &lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finished: EXPRESSION&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression : IIF(1 = 1 , &amp;lt;Null&amp;gt;,&amp;lt;Null&amp;gt;) =&amp;gt; this does nothing as it is considered syntactically incorrect as per log file:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log File :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Trying: EXPRESSION&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Checking to verify there is a field to store the expression&lt;BR /&gt;Expression to be eval: iif(1 = 1,&amp;lt;Null&amp;gt;,&amp;lt;Null&amp;gt;)&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR: evaluating the expression for feature in AA_VOne with OID of 1&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Syntax error&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finished: EXPRESSION&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression&amp;nbsp; : IIF(1 = 1 , "", "")&amp;nbsp; =&amp;gt; this results in an empty string instead of Null which doesn't align with the online reference in my previous post above. Log file looks fine with no errors:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log File :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Trying: EXPRESSION&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Checking to verify there is a field to store the expression&lt;BR /&gt;Expression to be eval: iif(1 = 1,"","")&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting Value to: &lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finished: EXPRESSION&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression&amp;nbsp; : IIF(1 = 1 , vbNull, vbNull)&amp;nbsp; =&amp;gt; this results in the value of the vbNull which is 1 string instead of Null. Log file looks fine with no errors&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log File :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trying: EXPRESSION&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Checking to verify there is a field to store the expression&lt;BR /&gt;Expression to be eval: iif(1 = 1,vbNull,vbNull)&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting Value to: 1&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finished: EXPRESSION&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression : IIF(1 = 1 , &amp;lt;Null&amp;gt;,&amp;lt;Null&amp;gt;) =&amp;gt; this does nothing as it is considered syntactically incorrect as per log file:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log File :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Checking to verify there is a field to store the expression&lt;BR /&gt;Expression to be eval: &amp;lt;Null&amp;gt;&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR: evaluating the expression for feature in AA_VOne with OID of 1&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Syntax error&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finished: EXPRESSION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 00:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15831#M51</guid>
      <dc:creator>SamAdam</dc:creator>
      <dc:date>2017-03-17T00:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Expression help</title>
      <link>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15832#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After trying many combination , the correct way to set the field to null is what is mentioned in the documentation as 'Invalid' below !&lt;/P&gt;&lt;P&gt;You have to use (in the simplest case) &lt;STRONG&gt;Expression = "&amp;lt;Null&amp;gt;"&lt;/STRONG&gt; . that will work with string or numeric field data type , and can also be used in IIF expression or any complex VBScript expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Empty sting as mentioned below will never set the field to Null, regardless of the data type of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsolutions.arcgis.com%2Fshared%2Fhelp%2Fattribute-assistant%2Fdocumentation%2Fmethods-attribute-operations%2F%23expression" rel="nofollow" target="_blank"&gt;Attribute operations - Attribute Assistant | ArcGIS Solutions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;To set values as null, use an empty string:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Invalid&lt;/STRONG&gt;: &lt;CODE&gt;IIF([LOCDESC]=0, "&amp;lt;NULL&amp;gt;", [LOCDESC])&lt;/CODE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Valid&lt;/STRONG&gt;: &lt;CODE&gt;IIF([LOCDESC]=0, "", [LOCDESC])&lt;/CODE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 00:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/attribute-assistant-expression-help/m-p/15832#M52</guid>
      <dc:creator>SamAdam</dc:creator>
      <dc:date>2017-03-17T00:04:30Z</dc:date>
    </item>
  </channel>
</rss>

