<?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 Calculation Rule Exception in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-exception/m-p/1606706#M95036</link>
    <description>&lt;P&gt;You can try checking if the original value is different from the current value first:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($originalfeature.pole_depth == $feature.pole_depth) {
    return $feature.pole_height * 0.1 + 3
}&lt;/LI-CODE&gt;&lt;P&gt;If you edited the field directly then the original value will be different from the current value and you don't return a new value, if you edited another field then the value should stay the same and then you can recalculate it.&lt;/P&gt;&lt;P&gt;That said, adjusting the height will probably re-run the rule again. Other solutions include running the rule on insert only, or adding a "is_calculated" field that is set when the rule is run, then checked to ensure it isn't run again.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 21:22:38 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2025-04-16T21:22:38Z</dc:date>
    <item>
      <title>Attribute Calculation Rule Exception</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-exception/m-p/1606677#M95033</link>
      <description>&lt;P&gt;I have created an Attribute Calculation Rule to calculate the depth a pole is put into the ground.&amp;nbsp; The rule is pole_height*0.1+3 (10% of the height of the pole plus 3 feet).&amp;nbsp; It works!! However, there are some exceptions to this rule and we need to be able to manual enter a value into this field.&amp;nbsp; During the rule creation I made sure that "Editable" was checked.&amp;nbsp; But, when I try to manual enter a value in the pole_depth field it just automatically recalculates based on the rule.&lt;/P&gt;&lt;P&gt;Is there a way to make exceptions for the rule?&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 20:18:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-exception/m-p/1606677#M95033</guid>
      <dc:creator>WillPlatt</dc:creator>
      <dc:date>2025-04-16T20:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Calculation Rule Exception</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-exception/m-p/1606706#M95036</link>
      <description>&lt;P&gt;You can try checking if the original value is different from the current value first:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($originalfeature.pole_depth == $feature.pole_depth) {
    return $feature.pole_height * 0.1 + 3
}&lt;/LI-CODE&gt;&lt;P&gt;If you edited the field directly then the original value will be different from the current value and you don't return a new value, if you edited another field then the value should stay the same and then you can recalculate it.&lt;/P&gt;&lt;P&gt;That said, adjusting the height will probably re-run the rule again. Other solutions include running the rule on insert only, or adding a "is_calculated" field that is set when the rule is run, then checked to ensure it isn't run again.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 21:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-calculation-rule-exception/m-p/1606706#M95036</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-16T21:22:38Z</dc:date>
    </item>
  </channel>
</rss>

