<?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: Populate Field if NULL in State &amp; Local Government Questions</title>
    <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70899#M443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is IIF, not IFF, give that a shot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 20:39:45 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2018-09-11T20:39:45Z</dc:date>
    <item>
      <title>Attribute Assistant: Populate Field if NULL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70895#M439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a field (EventID) in our database (APDM) that behaves as the unique identifier for each feature .&amp;nbsp; We have used a class extension that would generate a GUID value and populate this field only if the field was NULL.&amp;nbsp; Is it possible to have Attribute Assistant behave in this same fashion?&amp;nbsp; I have tried using the GUID option, the Copy Field option and even the Expression option (IIF [EVENID] is Null, [GlobalID] else "Do Nothing")(this is not the exact expression I used).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how we might be able to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 17:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70895#M439</guid>
      <dc:creator>MikeLong</dc:creator>
      <dc:date>2012-11-27T17:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Populate Field if NULL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70896#M440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use the Expression method to detect a null field&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF(IsNull([EventID]),[GlobalID],[EventID])&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 15:41:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70896#M440</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2012-12-03T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Populate Field if NULL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70897#M441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mike, that worked.&amp;nbsp; I had to make a minor change since the destination is a text field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF(IsNull([EventID]),"[GlobalID]","[EventID]")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 19:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70897#M441</guid>
      <dc:creator>MikeLong</dc:creator>
      <dc:date>2012-12-04T19:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Populate Field if NULL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70898#M442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp;tried the same thing, but I get a Type Mismatch error.&amp;nbsp; Do you know what might cause this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row Info&lt;BR /&gt;Row Number 29&lt;BR /&gt;TableName: Building&lt;BR /&gt;FieldName: CityVillage&lt;BR /&gt;ValueInfo: IFF(isNull([CityVillage]), [Township], [CityVillage])&lt;BR /&gt;ValueMethod: EXPRESSION&lt;BR /&gt;On Create: 1&lt;BR /&gt;On Change: 1&lt;/P&gt;&lt;P&gt;Checking for Subtype Restriction&lt;BR /&gt;Field Name: City Village was found at index: 20&lt;BR /&gt;Trying: EXPRESSION&lt;BR /&gt;replace field: Township with a value&lt;BR /&gt;replace field: CityVillage with a value&lt;BR /&gt;replace field: CityVillage with a value&lt;BR /&gt;Checking to verify there is a field to store the expression&lt;BR /&gt;Expression to be eval: IFF(True, "OAKLAND", "")&lt;BR /&gt;ERROR: evaluating the expression for feature in Building with OID of 15859&lt;BR /&gt;System.Runtime.InteropServices.COMException (0x800A000D): Type mismatch: 'IFF'&lt;BR /&gt;at MSScriptControl.ScriptControlClass.Eval(String Expression)&lt;BR /&gt;at ArcGIS4LocalGovernment.AttributeAssistantEditorExtension.SetDynamicValues(IObject inObject, String mode, List`1&amp;amp; ChangeFeatureList, List`1&amp;amp; NewFeatureList, List`1&amp;amp; ChangeFeatureGeoList) in C:\Projects\GitHub\local-government-desktop-addins\Attribute Assistant Add In\AttributeAssistantAddIn\AttributeAssistantEditorExtension.cs:line 12514&lt;BR /&gt;Finished: EXPRESSION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 20:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70898#M442</guid>
      <dc:creator>JeremiahMartin</dc:creator>
      <dc:date>2018-09-11T20:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Populate Field if NULL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70899#M443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is IIF, not IFF, give that a shot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 20:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70899#M443</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2018-09-11T20:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Populate Field if NULL</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70900#M444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm an idiot!&amp;nbsp; That was it.&amp;nbsp; I stared at this forever and didn't catch that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You rock and thanks for the fast reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 20:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-populate-field-if-null/m-p/70900#M444</guid>
      <dc:creator>JeremiahMartin</dc:creator>
      <dc:date>2018-09-11T20:56:35Z</dc:date>
    </item>
  </channel>
</rss>

