<?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: Split intersecting line arcade error in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/split-intersecting-line-arcade-error/m-p/1061680#M126</link>
    <description>&lt;P&gt;Towards the end of the script, they set the GlobalID of new features. GlobalID is not editable by the user, so that doesn't work. Try commenting out the lines that say " 'globalID': GUID() ".&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; if (polyline_1_length &amp;gt; polyline_2_length) {
        update_features[Count(update_features)] = {
            'globalID': line_feature.globalID,
            'geometry': polyline_1
        };
        new_features[Count(new_features)] =
            {
//                'globalID': GUID(),
                'geometry': polyline_2,
                'attributes': pop_keys(line_att, keys)
            };
    } else {
        update_features[Count(update_features)] = {
            'globalID': line_feature.globalID,
            'geometry': polyline_2
        };
        new_features[Count(new_features)] =
            {
//                'globalID': GUID(),
                'geometry': polyline_1,
                'attributes': pop_keys(line_att, keys)
            };
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 08:12:53 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2021-05-26T08:12:53Z</dc:date>
    <item>
      <title>Split intersecting line arcade error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/split-intersecting-line-arcade-error/m-p/1061677#M125</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am using this attribute rule (split intersecting line):&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/MikeMillerGIS/arcade-expressions/blob/master/attribute_rule_calculation/SplitIntersectingLine.md" target="_blank" rel="noopener"&gt;https://github.com/MikeMillerGIS/arcade-expressions/blob/master/attribute_rule_calculation/SplitIntersectingLine.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i insert a point i get this error: "GlobalID: The field is not editable"&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 07:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/split-intersecting-line-arcade-error/m-p/1061677#M125</guid>
      <dc:creator>alejandroDimas</dc:creator>
      <dc:date>2021-05-26T07:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split intersecting line arcade error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/split-intersecting-line-arcade-error/m-p/1061680#M126</link>
      <description>&lt;P&gt;Towards the end of the script, they set the GlobalID of new features. GlobalID is not editable by the user, so that doesn't work. Try commenting out the lines that say " 'globalID': GUID() ".&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; if (polyline_1_length &amp;gt; polyline_2_length) {
        update_features[Count(update_features)] = {
            'globalID': line_feature.globalID,
            'geometry': polyline_1
        };
        new_features[Count(new_features)] =
            {
//                'globalID': GUID(),
                'geometry': polyline_2,
                'attributes': pop_keys(line_att, keys)
            };
    } else {
        update_features[Count(update_features)] = {
            'globalID': line_feature.globalID,
            'geometry': polyline_2
        };
        new_features[Count(new_features)] =
            {
//                'globalID': GUID(),
                'geometry': polyline_1,
                'attributes': pop_keys(line_att, keys)
            };
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 08:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/split-intersecting-line-arcade-error/m-p/1061680#M126</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-05-26T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Split intersecting line arcade error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/split-intersecting-line-arcade-error/m-p/1061690#M127</link>
      <description>&lt;P&gt;Thank you Johannes!&lt;/P&gt;&lt;P&gt;I tried that but the same error appears.&lt;/P&gt;&lt;P&gt;The matter is that if I use this geodatabase (&lt;A href="https://github.com/MikeMillerGIS/arcade-expressions/blob/master/attribute_rule_calculation/SplitIntersectingLine.zip" target="_blank"&gt;https://github.com/MikeMillerGIS/arcade-expressions/blob/master/attribute_rule_calculation/SplitIntersectingLine.zip&lt;/A&gt;) it works, but if I use my own geodatabse it doesn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 09:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/split-intersecting-line-arcade-error/m-p/1061690#M127</guid>
      <dc:creator>alejandroDimas</dc:creator>
      <dc:date>2021-05-26T09:32:17Z</dc:date>
    </item>
  </channel>
</rss>

