<?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: Arcade expression question in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1115179#M6063</link>
    <description>&lt;P&gt;Problem is probably in line 43:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var intersecting_lines = Intersects(line_fs, start_point);&lt;/LI-CODE&gt;&lt;P&gt;What this code does (in a very general way) is this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;get the lines that intersect the start point of $feature&lt;/LI&gt;&lt;LI&gt;request edits to be made on those lines&lt;OL&gt;&lt;LI&gt;for each of those lines, goto 1&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;But intersecting the start point of $feature with the lines also finds $feature, so you're editing $feature and request edits to be made to $feature and it just cycles endlessly (or it would, but ArcGIS stops it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding this after line 43:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var gid = $feature.GlobalID
intersecting_lines = Filter(intersecting_lines, "GlobalID &amp;lt;&amp;gt; @gid"))&lt;/LI-CODE&gt;&lt;P&gt;This will remove $feature from the edited lines.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 06:28:49 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2021-11-09T06:28:49Z</dc:date>
    <item>
      <title>Arcade expression question</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1114793#M6058</link>
      <description>&lt;P&gt;Hello people, I came across an error, "&lt;STRONG&gt;The evaluation of attribute rules is cyclic or exceeds maximum cascading level&lt;/STRONG&gt;." during editing a feature with an attribute rule made by arcade expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A0328_0-1636345834667.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26958i57E73A74017BBE14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A0328_0-1636345834667.png" alt="A0328_0-1636345834667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As I am new to Arcade, I referenced a sample expression from &lt;A href="https://github.com/MikeMillerGIS/arcade-expressions/blob/master/attribute_rule_calculation/SplitIntersectingLine.md" target="_self"&gt;github&lt;/A&gt; to set up the rules that divides a line into two features. The original code works fine that uses a point feature to divide a line at the intersection with the line feature. But I used a start point of a line feature instead of a point feature for my purpose. After I made the simple change in the code, edit works sometimes but get above error sometime randomly. For example, even if I get the error, if I change a place to draw a line feature, then it works without the error.&lt;/P&gt;&lt;P&gt;I have been searching any clue regarding this error but have not had any luck yet. &lt;SPAN&gt;Any help would be much appreciated. Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 04:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1114793#M6058</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-08T04:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression question</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1114802#M6059</link>
      <description>&lt;P&gt;We'd gladly help you, but we need to see the actual code you used for that. Please post that:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1636351795217.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26959i6EAF141DD5042537/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1636351795217.png" alt="JohannesLindner_0-1636351795217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1636351826529.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26960iF8EF116296CADFE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1636351826529.png" alt="JohannesLindner_1-1636351826529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 06:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1114802#M6059</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-11-08T06:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression question</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1115179#M6063</link>
      <description>&lt;P&gt;Problem is probably in line 43:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var intersecting_lines = Intersects(line_fs, start_point);&lt;/LI-CODE&gt;&lt;P&gt;What this code does (in a very general way) is this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;get the lines that intersect the start point of $feature&lt;/LI&gt;&lt;LI&gt;request edits to be made on those lines&lt;OL&gt;&lt;LI&gt;for each of those lines, goto 1&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;But intersecting the start point of $feature with the lines also finds $feature, so you're editing $feature and request edits to be made to $feature and it just cycles endlessly (or it would, but ArcGIS stops it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding this after line 43:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var gid = $feature.GlobalID
intersecting_lines = Filter(intersecting_lines, "GlobalID &amp;lt;&amp;gt; @gid"))&lt;/LI-CODE&gt;&lt;P&gt;This will remove $feature from the edited lines.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1115179#M6063</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-11-09T06:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression question</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1115838#M6064</link>
      <description>&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;But unfortunately, I still got a same error after I added the given code like below.&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var start_point = Geometry($feature).paths[0][0]
var intersecting_lines = Intersects(line_fs, start_point);
var gid = $feature.GlobalID
intersecting_lines = Filter(intersecting_lines, "GlobalID &amp;lt;&amp;gt; @gid")&lt;/LI-CODE&gt;&lt;P&gt;,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 21:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-expression-question/m-p/1115838#M6064</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-10T21:01:18Z</dc:date>
    </item>
  </channel>
</rss>

