<?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 Close parenthesis error when all others are closed in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/close-parenthesis-error-when-all-others-are-closed/m-p/1625823#M1791</link>
    <description>&lt;P&gt;For this script right here, I am trying to get the endpoints of a new feature when it is created, then place a point on the end when it intersects with another feature of the same class that has a different value for the placement entry in the attribute table. So far the logic looks sound, but on line 14 I get a "Close parenthesis expected" error, even though there are no other open parentheses anywhere else in the script. Would this just be a weird syntax error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var point_class = FeaturesetByName($datastore, "attributeruletest.sde.Riser");
var fibercable = FeaturesetByName($datastore, "attributeruletest.sde.Fibercable", ["placement"]);
function get_endpoints($feature) {
    var geom = Geometry($feature);
    if (Count(geom["paths"]) &amp;gt; 0) {
        var last_point = Point(Geometry($feature)["paths"][-1][-1]);
        return [last_point];
    }
    return [];
}
var new_points = [];
var endpoints = get_endpoints($feature);
if (Count(endpoints) &amp;gt; 0) {
   if(fibercable =! $feature['placement']){
      for(var idx in endpoints) {
           push(new_points, {
               'geometry': endpoints[idx]});
   }
   }
}
if (Count(new_points) == 0) {
    return;
}
var edit_payload = [{
    'className': point_class,
    'adds': new_points
}];
return {
    "edit": edit_payload
}&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 23 Jun 2025 17:03:15 GMT</pubDate>
    <dc:creator>rsnider43</dc:creator>
    <dc:date>2025-06-23T17:03:15Z</dc:date>
    <item>
      <title>Close parenthesis error when all others are closed</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/close-parenthesis-error-when-all-others-are-closed/m-p/1625823#M1791</link>
      <description>&lt;P&gt;For this script right here, I am trying to get the endpoints of a new feature when it is created, then place a point on the end when it intersects with another feature of the same class that has a different value for the placement entry in the attribute table. So far the logic looks sound, but on line 14 I get a "Close parenthesis expected" error, even though there are no other open parentheses anywhere else in the script. Would this just be a weird syntax error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var point_class = FeaturesetByName($datastore, "attributeruletest.sde.Riser");
var fibercable = FeaturesetByName($datastore, "attributeruletest.sde.Fibercable", ["placement"]);
function get_endpoints($feature) {
    var geom = Geometry($feature);
    if (Count(geom["paths"]) &amp;gt; 0) {
        var last_point = Point(Geometry($feature)["paths"][-1][-1]);
        return [last_point];
    }
    return [];
}
var new_points = [];
var endpoints = get_endpoints($feature);
if (Count(endpoints) &amp;gt; 0) {
   if(fibercable =! $feature['placement']){
      for(var idx in endpoints) {
           push(new_points, {
               'geometry': endpoints[idx]});
   }
   }
}
if (Count(new_points) == 0) {
    return;
}
var edit_payload = [{
    'className': point_class,
    'adds': new_points
}];
return {
    "edit": edit_payload
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Jun 2025 17:03:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/close-parenthesis-error-when-all-others-are-closed/m-p/1625823#M1791</guid>
      <dc:creator>rsnider43</dc:creator>
      <dc:date>2025-06-23T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Close parenthesis error when all others are closed</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/close-parenthesis-error-when-all-others-are-closed/m-p/1625825#M1792</link>
      <description>&lt;P&gt;Switch =! to !=&lt;/P&gt;&lt;P&gt;Close Parentheses errors occur even when that is absolutely nowhere near the actual issue. I do not know why and it drives me nuts.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 17:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/close-parenthesis-error-when-all-others-are-closed/m-p/1625825#M1792</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-06-23T17:09:21Z</dc:date>
    </item>
  </channel>
</rss>

