<?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: Realign Route appears to ignore Attribute Rules in Roads and Highways Questions</title>
    <link>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1229501#M536</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:56:06 GMT</pubDate>
    <dc:creator>AyanPalit</dc:creator>
    <dc:date>2022-11-08T13:56:06Z</dc:date>
    <item>
      <title>Realign Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1227780#M528</link>
      <description>&lt;P&gt;Before looking at the complex example in the spoiler below, I think you should review the simpler example at&amp;nbsp;&lt;A href="https://community.esri.com/t5/roads-and-highways-questions/extend-route-not-running-attribute-rules/m-p/1228207#M531" target="_blank" rel="noopener"&gt;Extend Route not running Attribute Rules - Esri Community&lt;/A&gt;&amp;nbsp;first because I think both will have the same underlying cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;I am using ArcGIS Pro 3.0.2, ArcGIS Enterprise 11 (SQL Server) and ArcGIS Roads and Highways.&lt;/P&gt;&lt;P&gt;In the picture below I have a route named CC-TEST_0095KM which is labelled using its line name (CC-TEST).&amp;nbsp; I have digitized a centerline which I am going to use to realign&amp;nbsp;CC-TEST_0095KM to be a straight line.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_0-1667364056947.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55042i1127D8E13D941470/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_0-1667364056947.png" alt="GraemeBrowning_Aurizon_0-1667364056947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To do that I use Realign Route:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_1-1667364257373.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55043i122E6ABCB4065F70/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_1-1667364257373.png" alt="GraemeBrowning_Aurizon_1-1667364257373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I get this result which looks like it has the correct measures on both the abandoned and realigned routes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_2-1667364331713.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55044iEC2DD6A0F8E947EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_2-1667364331713.png" alt="GraemeBrowning_Aurizon_2-1667364331713.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My LRS data has about 10 Attribute Rules set up with an Insert trigger to calculate among other things a Length field.&amp;nbsp; I do not use an Update trigger as well because when I have tried that I get various errors from editing which has led me to believe that Location Referencing does not like them.&amp;nbsp; When I looked at the rows for the above routes in the Attribute Table I noticed that Length was the same for both&amp;nbsp;the abandoned and realigned routes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_3-1667364584352.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55045iFE09FCCB888E2D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_3-1667364584352.png" alt="GraemeBrowning_Aurizon_3-1667364584352.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SHAPE.STLength() field looks like the right values (which are in decimal degrees).&lt;/P&gt;&lt;P&gt;It's like the fields have been copied from the abandoned route to the realigned one, perhaps after the Attribute Rule triggers were 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;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;Is there a way that I can get my Attribute Rules to run correctly when Realign Route is run on data like mine?&lt;/P&gt;&lt;P&gt;They seem to have run correctly in tests of all other Location Referencing tools so far.&lt;/P&gt;&lt;P&gt;A second Realign Routes test is illustrated below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_0-1667367332465.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55048i2C33F2B3058AC396/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_0-1667367332465.png" alt="GraemeBrowning_Aurizon_0-1667367332465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For that I get this result.&amp;nbsp;&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-1667367494537.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55049iFFCF413395132B39/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_1-1667367494537.png" alt="GraemeBrowning_Aurizon_1-1667367494537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Length of the abandoned route is 900m which is what I would expect because I realigned from 100m to 1,000m.&amp;nbsp; However, the realigned route is 1,146m which is the same as the original route rather than its new Length.&amp;nbsp; Once again, the measures on the map look like they are being set correctly and it is the extra fields, that Attribute Rules are supposed to maintain, which appear not to be doing their job correctly.&lt;/P&gt;&lt;P&gt;A third Realign Routes test is illustrated below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GraemeBrowning_Aurizon_0-1667450036130.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55165iF100BF98B90EA3E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="GraemeBrowning_Aurizon_0-1667450036130.png" alt="GraemeBrowning_Aurizon_0-1667450036130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Length of the abandoned route is 494m which is what I would expect.&amp;nbsp; However, the realigned route is 1,094m which is the same as the original route rather than its expected new Length of 1,124m.&amp;nbsp; Once again, the measures on the map look like they are being set correctly and it is the extra fields, that Attribute Rules are supposed to maintain, which appear not to be doing their job correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 06:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1227780#M528</guid>
      <dc:creator>GraemeBrowning_Aurizon</dc:creator>
      <dc:date>2022-11-03T06:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Realign Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1229501#M536</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:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1229501#M536</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2022-11-08T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Realign Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1229701#M538</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:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1229701#M538</guid>
      <dc:creator>GraemeBrowning_Aurizon</dc:creator>
      <dc:date>2022-11-08T22:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Realign Route appears to ignore Attribute Rules</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1229783#M542</link>
      <description>&lt;P&gt;After ensuring that my Attribute Rule triggers were all set to INSERT+UPDATE in a new Enterprise Geodatabase I ran similar tests to those in my original post and the results are now what I was hoping for!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 02:38:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/realign-route-appears-to-ignore-attribute-rules/m-p/1229783#M542</guid>
      <dc:creator>GraemeBrowning_Aurizon</dc:creator>
      <dc:date>2022-11-09T02:38:57Z</dc:date>
    </item>
  </channel>
</rss>

