<?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 Help creating an attribute rule that automatically Nulls an attribute when feature geometry is edited. in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/help-creating-an-attribute-rule-that-automatically/m-p/1567438#M1642</link>
    <description>&lt;P&gt;I'm fairly new to playing around with attribute rules. I am looking to have a rule that automatically nulls out two fields that store x and y geometry when a feature's geometry is changed. The reason for this is so that I can then run a GP tool later that automatically selects all features with a NULL value and calculates the new geometry for them in decimal degrees. I only want this rule to fire when the geometry of a feature is changed. Here is how I have configured the rule:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MDB_GIS_0-1733943381816.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121456i6433E63CC31027FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MDB_GIS_0-1733943381816.png" alt="MDB_GIS_0-1733943381816.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my expression:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (!IsEmpty($feature.Lat)){
   return null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm correct, that statement essentially says "If $feature.Lat is&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt; empty, then make it Null"&lt;/P&gt;&lt;P&gt;However the rule does nothing. If I go in and edit a point's geometry, the geometry is never set to null.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Am I missing something?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 18:59:27 GMT</pubDate>
    <dc:creator>MDB_GIS</dc:creator>
    <dc:date>2024-12-11T18:59:27Z</dc:date>
    <item>
      <title>Help creating an attribute rule that automatically Nulls an attribute when feature geometry is edited.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/help-creating-an-attribute-rule-that-automatically/m-p/1567438#M1642</link>
      <description>&lt;P&gt;I'm fairly new to playing around with attribute rules. I am looking to have a rule that automatically nulls out two fields that store x and y geometry when a feature's geometry is changed. The reason for this is so that I can then run a GP tool later that automatically selects all features with a NULL value and calculates the new geometry for them in decimal degrees. I only want this rule to fire when the geometry of a feature is changed. Here is how I have configured the rule:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MDB_GIS_0-1733943381816.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121456i6433E63CC31027FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MDB_GIS_0-1733943381816.png" alt="MDB_GIS_0-1733943381816.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my expression:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (!IsEmpty($feature.Lat)){
   return null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm correct, that statement essentially says "If $feature.Lat is&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt; empty, then make it Null"&lt;/P&gt;&lt;P&gt;However the rule does nothing. If I go in and edit a point's geometry, the geometry is never set to null.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 18:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/help-creating-an-attribute-rule-that-automatically/m-p/1567438#M1642</guid>
      <dc:creator>MDB_GIS</dc:creator>
      <dc:date>2024-12-11T18:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating an attribute rule that automatically Nulls an attribute when feature geometry is edited.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/help-creating-an-attribute-rule-that-automatically/m-p/1569024#M1649</link>
      <description>&lt;P&gt;That looks correct to me. The Lat field should be getting nulled whenever you move a point. Maybe you have a conflicting rule or it's disabled? Make sure the rule is firing by returning a test value without the IsEmpty check.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 19:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/help-creating-an-attribute-rule-that-automatically/m-p/1569024#M1649</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2024-12-16T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating an attribute rule that automatically Nulls an attribute when feature geometry is edited.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/help-creating-an-attribute-rule-that-automatically/m-p/1569265#M1650</link>
      <description>&lt;P&gt;It was a conflicting rule... Good grief! I'm ashamed to admit how much time this oversight cost me. Lol&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 12:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/help-creating-an-attribute-rule-that-automatically/m-p/1569265#M1650</guid>
      <dc:creator>MDB_GIS</dc:creator>
      <dc:date>2024-12-17T12:40:40Z</dc:date>
    </item>
  </channel>
</rss>

