<?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: Issue on Getting Count of Intersect in Arccade Attribute Rule in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275031#M790</link>
    <description>&lt;P&gt;Using reserved function names as the name of a variable is a bad idea. Try using "var inter =" instead.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, you do not need to use fully qualified names for FeatureSetByName. Just use "Parcels".&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 23:08:07 GMT</pubDate>
    <dc:creator>TedHoward2</dc:creator>
    <dc:date>2023-04-03T23:08:07Z</dc:date>
    <item>
      <title>Issue on Getting Count of Intersect in Arccade Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275029#M789</link>
      <description>&lt;P&gt;Having&amp;nbsp; two feature classes in SDE geodatabase like&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;EGDB.North.Parcels&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;EGDB.North.ProjectsInvest&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the total count of Intersection between&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;EGDB.North.Projects in&amp;nbsp;EGDB.North.ProjectsInvest using Attribute rules like this &lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; var intersects = Intersects(FeatureSetByName($datastore, "EGDB.North.Parcels"), Geometry($feature)); return Count(intersects) ; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but I am getting this error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;002717: Invalid Arcade expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersects = Intersects(FeatureSetByName($datastore, "EGDB.North.Parcels"), Geometry($feature));
if(Count(intersects)&amp;gt;0){
  return Count(intersects);
}
else{
  return 0;
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 22:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275029#M789</guid>
      <dc:creator>MarcoMob</dc:creator>
      <dc:date>2023-04-03T22:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Getting Count of Intersect in Arccade Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275031#M790</link>
      <description>&lt;P&gt;Using reserved function names as the name of a variable is a bad idea. Try using "var inter =" instead.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, you do not need to use fully qualified names for FeatureSetByName. Just use "Parcels".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 23:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275031#M790</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2023-04-03T23:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Getting Count of Intersect in Arccade Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275036#M791</link>
      <description>&lt;P&gt;Thanks for reply Ted but nothing changed!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var inters = Intersects(FeatureSetByName($datastore, "Parcels"), Geometry($feature)); 
return Count(inters) ;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still getting same error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 23:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275036#M791</guid>
      <dc:creator>MarcoMob</dc:creator>
      <dc:date>2023-04-03T23:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Getting Count of Intersect in Arccade Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275039#M792</link>
      <description>&lt;P&gt;That looks valid.&lt;/P&gt;&lt;P&gt;You could try exporting those features classes to FGDB or MGDB to see if the problem is specific to SDE.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 23:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275039#M792</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2023-04-03T23:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Getting Count of Intersect in Arccade Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275078#M793</link>
      <description>&lt;P&gt;Well, this is &lt;SPAN&gt;weird&lt;/SPAN&gt;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you recommended I copied both&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;EGDB.North.Parcels&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;EGDB.North.ProjectsInvest&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;into a local FGDB&amp;nbsp;and this is working now&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var inters = Intersects(FeatureSetByName($datastore, "Parcels"), Geometry($feature)); 
return Count(inters) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, why this is happening in SDE? how can I fix this? Is there any solution for this? Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 03:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275078#M793</guid>
      <dc:creator>MarcoMob</dc:creator>
      <dc:date>2023-04-04T03:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Getting Count of Intersect in Arccade Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275343#M798</link>
      <description>&lt;P&gt;I believe this is the same issue found here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-working-anymore-in-3-1/td-p/1271804" target="_blank"&gt;https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-working-anymore-in-3-1/td-p/1271804&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I recommend contacting Tech support for a way forward&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 16:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/issue-on-getting-count-of-intersect-in-arccade/m-p/1275343#M798</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2023-04-04T16:28:22Z</dc:date>
    </item>
  </channel>
</rss>

