<?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 Value doesn't fall within Domain... in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/value-doesn-t-fall-within-domain/m-p/1370275#M1245</link>
    <description>&lt;P&gt;I have the following code that applies a Yes or a No to the UNIT field, determined by the UNIT_NUM field. IF the UNIT_NUM field has a value, then UNIT should be "Yes". If it is blank, then UNIT should be "No":&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var unitNumber = $feature.UNIT_NUM
var hasValue

IIF(IsEmpty(unitNumber), hasValue = "No", hasValue = "Yes")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The arcade code seems to be fine, however, when I go to add a new address point, I get an error in my Create Features pane that says "Failed to create ADDR_point. Value doesn't fall within Domain: Yes_No&lt;/P&gt;&lt;P&gt;My Yes_No domain is set up like this and is also applied to the UNIT field of my ADDR_point feature class:&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Domain Name = Yes_No&lt;/LI&gt;&lt;LI&gt;Field Type = Text&lt;/LI&gt;&lt;LI&gt;Domain Type = Coded Value Domain&lt;UL&gt;&lt;LI&gt;Code "Yes" - Description: "Yes"&lt;/LI&gt;&lt;LI&gt;Code "No" - Description: "No"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Split &amp;amp; Merge Policy = Default&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I go to add a point, I get the error, but I also notice that when I click on the right arrow seen below...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesBooth_0-1705346697833.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91629i5FF886434F9F405D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesBooth_0-1705346697833.png" alt="JamesBooth_0-1705346697833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;... it opens up the attributes for the new point I'm trying to create and the UNIT field is highlighted with a "N" in the cell. Not a "No", which is what I expected. If I manually select the cell, I can choose "Yes" or "No" and the point will be produced, but I want this to be automatic. Any ideas on where I've gone wrong in any of my syntax?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2024 19:28:24 GMT</pubDate>
    <dc:creator>JamesBooth</dc:creator>
    <dc:date>2024-01-15T19:28:24Z</dc:date>
    <item>
      <title>Value doesn't fall within Domain...</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/value-doesn-t-fall-within-domain/m-p/1370275#M1245</link>
      <description>&lt;P&gt;I have the following code that applies a Yes or a No to the UNIT field, determined by the UNIT_NUM field. IF the UNIT_NUM field has a value, then UNIT should be "Yes". If it is blank, then UNIT should be "No":&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var unitNumber = $feature.UNIT_NUM
var hasValue

IIF(IsEmpty(unitNumber), hasValue = "No", hasValue = "Yes")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The arcade code seems to be fine, however, when I go to add a new address point, I get an error in my Create Features pane that says "Failed to create ADDR_point. Value doesn't fall within Domain: Yes_No&lt;/P&gt;&lt;P&gt;My Yes_No domain is set up like this and is also applied to the UNIT field of my ADDR_point feature class:&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Domain Name = Yes_No&lt;/LI&gt;&lt;LI&gt;Field Type = Text&lt;/LI&gt;&lt;LI&gt;Domain Type = Coded Value Domain&lt;UL&gt;&lt;LI&gt;Code "Yes" - Description: "Yes"&lt;/LI&gt;&lt;LI&gt;Code "No" - Description: "No"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Split &amp;amp; Merge Policy = Default&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I go to add a point, I get the error, but I also notice that when I click on the right arrow seen below...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesBooth_0-1705346697833.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91629i5FF886434F9F405D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesBooth_0-1705346697833.png" alt="JamesBooth_0-1705346697833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;... it opens up the attributes for the new point I'm trying to create and the UNIT field is highlighted with a "N" in the cell. Not a "No", which is what I expected. If I manually select the cell, I can choose "Yes" or "No" and the point will be produced, but I want this to be automatic. Any ideas on where I've gone wrong in any of my syntax?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 19:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/value-doesn-t-fall-within-domain/m-p/1370275#M1245</guid>
      <dc:creator>JamesBooth</dc:creator>
      <dc:date>2024-01-15T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Value doesn't fall within Domain...</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/value-doesn-t-fall-within-domain/m-p/1370280#M1246</link>
      <description>&lt;P&gt;Can't you just modify your editing template so it comes up as "No" instead of "N"?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 20:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/value-doesn-t-fall-within-domain/m-p/1370280#M1246</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2024-01-15T20:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Value doesn't fall within Domain...</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/value-doesn-t-fall-within-domain/m-p/1370291#M1247</link>
      <description>You need to return hasValue. I never used an Iif that way, not sure it will work either&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;hasValue= IIF(IsEmpty(unitNumber),"No", "Yes")&lt;BR /&gt;return hasValue&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jan 2024 21:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/value-doesn-t-fall-within-domain/m-p/1370291#M1247</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-01-15T21:27:59Z</dc:date>
    </item>
  </channel>
</rss>

