<?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: Can't modify geometries with m-Values in ArcGIS Pro 3.0 / 3.1 with calculation rules in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1297248#M947</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/147940"&gt;@TedHoward2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regarding: &lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;This is a known issue..."&lt;/EM&gt;&lt;BR /&gt;Is there a bug number we can reference?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 17:29:46 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-06-08T17:29:46Z</dc:date>
    <item>
      <title>Can't modify geometries with m-Values in ArcGIS Pro 3.0 / 3.1 with calculation rules</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1291479#M911</link>
      <description>&lt;P&gt;I have couples of immediate calculation rules that worked fine in ArcGIS Pro 2.9. After upgrading to 3.0.5 they don't work anymore. I even tried with ArcGIS Pro 3.1.1 with the same result. I reduced my rules to find the line that produced the error. Finally it seems to be a problem with m-aware feature classes.&lt;/P&gt;&lt;P&gt;For my tests I used Arc GIS Pro 3.0.5 with branch versioned data published to our Enterprise Portal (version 11.0.0). The feature classes are stored in a enterprise geodatabase (SQL).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I published two line feature classes. One with m-values and one without and added the same simple rule to them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var feature_ = $feature;
var g  = Geometry(feature_);
var t = Text(g)
var p = Polyline(t)
return p&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This rule works fine for the feature class without m-values. If I try to modify a geometry with the m-aware polyline I get this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zoggo_0-1684734961789.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71262iD63EFD4BD8973543/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zoggo_0-1684734961789.png" alt="Zoggo_0-1684734961789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So it seems to bee a problem with the m-values in ArcGIS Pro 3.0.5 and newer.&lt;/P&gt;&lt;P&gt;Is there any workaround for this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 06:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1291479#M911</guid>
      <dc:creator>Zoggo</dc:creator>
      <dc:date>2023-05-22T06:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't modify geometries with m-Values in ArcGIS Pro 3.0 / 3.1 with calculation rules</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1291734#M917</link>
      <description>&lt;P&gt;Does your feature class have m-values and not z-values?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Text function incorrectly&amp;nbsp;&lt;SPAN&gt;does not serialize&amp;nbsp;hasM&amp;nbsp;or&amp;nbsp;hasZ when converting to text. This leaves the Polyline constructor in an ambiguous state when the paths have 3 values -- is it XYM or XYZ? Polyline defaults to XYZ&amp;nbsp; which is probably why you seeing the entity type error. This is a known issue but here is a possible workaround for now:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var feature_ = $feature;
var g  = Geometry(feature_);
var t = Text(g)
if (g.hasm) {
   var d = Dictionary(t)
   d["hasM"] = true
   t = Text(d)
}
var p = Polyline(t)
return p&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 18:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1291734#M917</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2023-05-22T18:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't modify geometries with m-Values in ArcGIS Pro 3.0 / 3.1 with calculation rules</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1297246#M946</link>
      <description>&lt;P&gt;FYI - I also have an attribute rule that edits M-values here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-code-review-set-polyline-m-values-to/m-p/1157702/highlight/true#M53244" target="_self"&gt;Arcade Code Review: Set polyline M-values to cumulative length of line&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't tested it in modern versions of Pro yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://github.com/Esri/arcade-expressions/pull/72/commits/7a6c0c824dfc3ee24252a7a6dd57556875589399" target="_self"&gt;GitHub -&amp;nbsp;Create SetMValues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1297246#M946</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-06-08T17:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't modify geometries with m-Values in ArcGIS Pro 3.0 / 3.1 with calculation rules</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1297248#M947</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/147940"&gt;@TedHoward2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regarding: &lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;This is a known issue..."&lt;/EM&gt;&lt;BR /&gt;Is there a bug number we can reference?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/can-t-modify-geometries-with-m-values-in-arcgis/m-p/1297248#M947</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-06-08T17:29:46Z</dc:date>
    </item>
  </channel>
</rss>

