<?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: Validation Rules and $originalfeature in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/validation-rules-and-originalfeature/m-p/1415109#M1407</link>
    <description>&lt;P&gt;Hey James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we will have to fix that page in the doc, the Validation rules and batch calculation rules execute on demand via the evaluate call and not on user edits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So $originalFeature isn't applicable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you think about it the edit has already been made, running evaluate we have no idea what happened to the feature&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 22:41:03 GMT</pubDate>
    <dc:creator>HusseinNasser2</dc:creator>
    <dc:date>2024-04-24T22:41:03Z</dc:date>
    <item>
      <title>Validation Rules and $originalfeature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/validation-rules-and-originalfeature/m-p/1415035#M1406</link>
      <description>&lt;P&gt;Hi all. I'm attempting to write a Validation Rule that checks if the feature's geometry has changed using the $originalfeature global. I'm getting an error message when saving the rule that states that:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;"The attribute rule expression contains $originalfeature, which is only valid with the update trigger for constraint and immediate calculation rules."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered this as well? I'm a bit confused since the $originalfeature variable appears in the Attribute Rule Validation profile:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/profiles/attribute-rule-validation/" target="_blank"&gt;Attribute Rule Validation | ArcGIS Arcade | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AttRuleValidation.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102084i3B3D4EA8B86C2DE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="AttRuleValidation.JPG" alt="AttRuleValidation.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 21:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/validation-rules-and-originalfeature/m-p/1415035#M1406</guid>
      <dc:creator>James_Blouin</dc:creator>
      <dc:date>2024-04-24T21:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Rules and $originalfeature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/validation-rules-and-originalfeature/m-p/1415109#M1407</link>
      <description>&lt;P&gt;Hey James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we will have to fix that page in the doc, the Validation rules and batch calculation rules execute on demand via the evaluate call and not on user edits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So $originalFeature isn't applicable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you think about it the edit has already been made, running evaluate we have no idea what happened to the feature&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 22:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/validation-rules-and-originalfeature/m-p/1415109#M1407</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2024-04-24T22:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Rules and $originalfeature</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/validation-rules-and-originalfeature/m-p/1415253#M1411</link>
      <description>&lt;P&gt;Thank you for the explanation, Hussein! That makes sense to me now that you mentioned that the edit has already been made before hitting the Evaluate button.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:31:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/validation-rules-and-originalfeature/m-p/1415253#M1411</guid>
      <dc:creator>James_Blouin</dc:creator>
      <dc:date>2024-04-25T12:31:09Z</dc:date>
    </item>
  </channel>
</rss>

