<?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: Extend Route appears to ignore Attribute Rules in Roads and Highways Questions</title>
    <link>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229776#M541</link>
    <description>&lt;P&gt;I've now re-loaded my Enterprise Geodatabase and made sure that the Attribute Rules on the LRS Line Network were all INSERT and UPDATE, and Extend Route is now creating the desired route!&lt;/P&gt;&lt;P&gt;As an aside, the error message that led me to place suspicion on whether UPDATE should not be used came from Create Route and was:&lt;/P&gt;&lt;P&gt;“Unable to complete operation.&lt;BR /&gt;Evaluation of script expression returned not a number or infinity. [&lt;BR /&gt;Rule name: Update FROM_,&lt;BR /&gt;Triggering event: Insert,&lt;BR /&gt;Class name: Lrs_CQCN_TRACK_LR,&lt;BR /&gt;GlobalID: {B7AA3F92-27F2-4BFD-9412-7AF5BDD9A928},&lt;BR /&gt;Script error: Evaluation of script expression returned not a number or infinity.”&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_0-1667962210831.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55545i40CD35C950B83781/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_0-1667962210831.png" alt="GraemeBrowning_Aurizon_0-1667962210831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I see it again, I'll investigate it as a separate issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 02:50:23 GMT</pubDate>
    <dc:creator>GraemeBrowning_Aurizon</dc:creator>
    <dc:date>2022-11-09T02:50:23Z</dc:date>
    <item>
      <title>Extend Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1228207#M531</link>
      <description>&lt;P&gt;This is related to&amp;nbsp;&lt;A href="https://community.esri.com/t5/roads-and-highways-questions/realigning-route-confuses-attribute-rules/m-p/1227780#M528" target="_blank" rel="noopener"&gt;Realigning route confuses Attribute Rules - Esri Community&lt;/A&gt;&amp;nbsp;and probably has the same underlying cause but I am posting it as well because it represents a simpler example.&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 3.0.2, ArcGIS Enterprise 11 and Location Referencing license that came with ArcGIS Roads and Highways.&amp;nbsp; However, the problem I describe here is also reproducible when testing using a File Geodatabase in place of ArcGIS Enterprise.&lt;/P&gt;&lt;P&gt;When I use Create Route it correctly populates a field named Length (and 10 other fields needed to meet business requirements) with a value of 577m using an Attribute Rule.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_0-1667451985353.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55166iD33768B3EA2E82B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_0-1667451985353.png" alt="GraemeBrowning_Aurizon_0-1667451985353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_1-1667452070092.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55167iF69D517801F2DA8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_1-1667452070092.png" alt="GraemeBrowning_Aurizon_1-1667452070092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I extend it by another 438m the value in the Length field remains the same as the original route&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_2-1667452325617.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55168i4A7C4784BFD3D2D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_2-1667452325617.png" alt="GraemeBrowning_Aurizon_2-1667452325617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_3-1667452479438.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55169i907919DB4C6D39CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_3-1667452479438.png" alt="GraemeBrowning_Aurizon_3-1667452479438.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It looks to me like when the new (extended) route gets inserted/created, either the Attribute Rules are not being run, or they are being run and then the original values are being copied back over them.&lt;/P&gt;&lt;P&gt;Should my Length field be getting set by Attribute Rules when Extend Route is run?&lt;/P&gt;&lt;P&gt;These are the Arcade expressions I use on my Attribute Rules for START_M, END_M and Length respectively:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return Geometry($feature).paths[0][0].m;&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;return Geometry($feature).paths[-1][-1].m;&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;return $feature.END_M - $feature.START_M;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 01:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1228207#M531</guid>
      <dc:creator>GraemeBrowning_Aurizon</dc:creator>
      <dc:date>2022-11-08T01:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229500#M535</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/596055"&gt;@GraemeBrowning_Aurizon&lt;/a&gt;&amp;nbsp;Please confirm that the AR is triggered on INSERT and UPDATE parameters for&amp;nbsp;triggering_events as in &lt;A title="Add Attribute Rule" href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-attribute-rule.htm" target="_blank" rel="noopener"&gt;Add Attribute Rule&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 13:54:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229500#M535</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2022-11-08T13:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229702#M539</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/512"&gt;@AyanPalit&lt;/a&gt;&amp;nbsp;I initially had my Attribute Rules triggered on both INSERT and UPDATE but I kept getting errors (I'll need to set that again to obtain details) so I switched to just INSERT and when the error in this thread is seen it is only INSERT that will have been in place.&lt;/P&gt;&lt;P&gt;I've had had trouble modifying my Attribute Rules when my LRS is in the Enterprise Geodatabase so I have been setting them on the File Geodatabase that I migrate there using an ArcPy script.&lt;/P&gt;&lt;P&gt;I'll try changing them to INSERT and UPDATE first through the GUI, and then through my script to see if that resolves this error.&amp;nbsp; If I encounter others by doing that I'll report them separately.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 22:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229702#M539</guid>
      <dc:creator>GraemeBrowning_Aurizon</dc:creator>
      <dc:date>2022-11-08T22:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229714#M540</link>
      <description>&lt;P&gt;In my File Geodatabase LRS Line Network I was able to change my 11 Attribute Rules to INSERT+UPDATE using the Catalog pane, and when I ran the same test all fields updated as desired so it looks like I need to use INSERT+UPDATE from now on.&lt;/P&gt;&lt;P&gt;In my Enterprise Geodatabase (SQL Server) LRS Line Network I was not able to change my Attribute Rules using the Catalog pane.&amp;nbsp; I did exactly the same as for the File Geodatabase and had all the left-hand cells green prior to clicking the Save button on the Attribute Rules tab of the Ribbon but that just turned the first left-hand cell to red and did not change any of them.&amp;nbsp; No error message was seen.&amp;nbsp; I'll now recreate that&amp;nbsp;Enterprise Geodatabase (SQL Server) LRS Line Network from scratch (create File Geodatabase and then migrate it) with the Attribute Rules set to INSERT+UPDATE prior to migrating it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_0-1667949099211.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55518iA5EA89F943D4FEEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_0-1667949099211.png" alt="GraemeBrowning_Aurizon_0-1667949099211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 23:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229714#M540</guid>
      <dc:creator>GraemeBrowning_Aurizon</dc:creator>
      <dc:date>2022-11-08T23:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229776#M541</link>
      <description>&lt;P&gt;I've now re-loaded my Enterprise Geodatabase and made sure that the Attribute Rules on the LRS Line Network were all INSERT and UPDATE, and Extend Route is now creating the desired route!&lt;/P&gt;&lt;P&gt;As an aside, the error message that led me to place suspicion on whether UPDATE should not be used came from Create Route and was:&lt;/P&gt;&lt;P&gt;“Unable to complete operation.&lt;BR /&gt;Evaluation of script expression returned not a number or infinity. [&lt;BR /&gt;Rule name: Update FROM_,&lt;BR /&gt;Triggering event: Insert,&lt;BR /&gt;Class name: Lrs_CQCN_TRACK_LR,&lt;BR /&gt;GlobalID: {B7AA3F92-27F2-4BFD-9412-7AF5BDD9A928},&lt;BR /&gt;Script error: Evaluation of script expression returned not a number or infinity.”&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_0-1667962210831.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55545i40CD35C950B83781/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_0-1667962210831.png" alt="GraemeBrowning_Aurizon_0-1667962210831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I see it again, I'll investigate it as a separate issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 02:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/extend-route-appears-to-ignore-attribute-rules/m-p/1229776#M541</guid>
      <dc:creator>GraemeBrowning_Aurizon</dc:creator>
      <dc:date>2022-11-09T02:50:23Z</dc:date>
    </item>
  </channel>
</rss>

