<?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: How to skip over a record for update in AR that is null geometry when using Intersects in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/how-to-skip-over-a-record-for-update-in-ar-that-is/m-p/1494543#M1502</link>
    <description>&lt;P&gt;That's what I was missing, and in the wrong order.&amp;nbsp; Once done on the one field, the next one failed, so then added to the rest of them and all work now.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;L~&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 18:17:16 GMT</pubDate>
    <dc:creator>LorindaGilbert</dc:creator>
    <dc:date>2024-06-18T18:17:16Z</dc:date>
    <item>
      <title>How to skip over a record for update in AR that is null geometry when using Intersects</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-skip-over-a-record-for-update-in-ar-that-is/m-p/1494425#M1496</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm writing attribute rules to take a point and do intersects of different feature classes.&amp;nbsp; It works fine with the data that are actually points - translated ones or new ones.&amp;nbsp; My problem is that we have a select few that are just records with no geometry.&amp;nbsp; This is due to the polygon fc not having the same record to join to (billing location to a parcel and parcel no longer exists so it can't be joined any longer).&amp;nbsp; I've added the following to my AR to try to just return the value as it exists in the row and keep on going, but get the error message shown.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var fs = FeatureSetByName($datastore,'Parcels_OCPA_Web',["PARCEL"],FALSE);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var interlayer = Intersects(fs, $feature);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var cnt = Count(interlayer);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var billing = $feature.MultiUserType&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (TypeOf($feature) == null) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ParcelID = $feature.ParcelID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else if ((cnt &amp;gt; 0) &amp;amp;&amp;amp; (billing != "D: Delete")) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var interpid = First(interlayer);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return interpid.PARCEL;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have also tried:&amp;nbsp; if Geometry($feature) == null&lt;/P&gt;&lt;P&gt;or:&amp;nbsp; if (billing == "D: Delete")&lt;/P&gt;&lt;P&gt;all three return the same error as below&lt;/P&gt;&lt;P&gt;Error is:&lt;/P&gt;&lt;P&gt;Arcade error:&amp;nbsp; Search geometry cannot be null,&lt;/P&gt;&lt;P&gt;Script line: 3] A null geometry does not correspond to any Esri geometry type.&lt;/P&gt;&lt;P&gt;Any ideas on where to make the changes?&amp;nbsp; In the future all records moving thru these ARs will be points, it's just the first translation from a flat file to a geo file that is the problem child.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lorinda&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 15:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-skip-over-a-record-for-update-in-ar-that-is/m-p/1494425#M1496</guid>
      <dc:creator>LorindaGilbert</dc:creator>
      <dc:date>2024-06-18T15:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip over a record for update in AR that is null geometry when using Intersects</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-skip-over-a-record-for-update-in-ar-that-is/m-p/1494435#M1497</link>
      <description>&lt;P&gt;Can you try isempty function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ar fs = FeatureSetByName($datastore,'Parcels_OCPA_Web',["PARCEL"],FALSE);

if (isempty(geometry($feature))) return;

var interlayer = Intersects(fs, $feature);
var cnt = Count(interlayer);
var billing = $feature.MultiUserType

if (TypeOf($feature) == null) {
ParcelID = $feature.ParcelID
}
else if ((cnt &amp;gt; 0) &amp;amp;&amp;amp; (billing != "D: Delete")) {
var interpid = First(interlayer);
return interpid.PARCEL;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 15:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-skip-over-a-record-for-update-in-ar-that-is/m-p/1494435#M1497</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2024-06-18T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip over a record for update in AR that is null geometry when using Intersects</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-skip-over-a-record-for-update-in-ar-that-is/m-p/1494543#M1502</link>
      <description>&lt;P&gt;That's what I was missing, and in the wrong order.&amp;nbsp; Once done on the one field, the next one failed, so then added to the rest of them and all work now.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;L~&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 18:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-skip-over-a-record-for-update-in-ar-that-is/m-p/1494543#M1502</guid>
      <dc:creator>LorindaGilbert</dc:creator>
      <dc:date>2024-06-18T18:17:16Z</dc:date>
    </item>
  </channel>
</rss>

