<?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: Arcade Pop Up Expression for Displaying Z value returns Execution error - Cannot work with geometry in this spatial reference. in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up-expression-for-displaying-z-value/m-p/1384675#M57578</link>
    <description>&lt;P&gt;It's possibly a bug in the Enterprise map viewer. Is the error showing up in the Arcade editor where you're authoring the expression? If so, I'd log a bug with support so they can get that fixed. The execution context for the editor must have a matching spatial reference as well as the map.&lt;/P&gt;&lt;P&gt;If you're copying and pasting into the playground of the online documentation, then you will definitely see that error as the spatial reference there is web mercator.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 22:53:22 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2024-02-20T22:53:22Z</dc:date>
    <item>
      <title>Arcade Pop Up Expression for Displaying Z value returns Execution error - Cannot work with geometry in this spatial reference.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up-expression-for-displaying-z-value/m-p/1384672#M57577</link>
      <description>&lt;P&gt;I'm trying to display the Z value (Z is enabled for the feature) in my pop up in ArcGIS Enterprise 11.1 mapviewer. I used this article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/problem-z-values-do-not-display-in-pop-ups-when-using-a-000026460" target="_self"&gt;https://support.esri.com/en-us/knowledge-base/problem-z-values-do-not-display-in-pop-ups-when-using-a-000026460&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I use the expression in the article&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Geometry($feature).z&lt;/PRE&gt;&lt;P&gt;and run it I get the error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial reference&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My map projection is in NZTM (2193) and the data is in the same projection. I saw on another community form that "&lt;SPAN&gt;the spatial reference of the geometry must match the spatial reference of the map where the Arcade is executed"&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44467"&gt;@KristianEkenes&lt;/a&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When trying to display x and y in the pop up, I get the same execution error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this a bug or is there something else I can do to display z values on the fly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 22:38:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up-expression-for-displaying-z-value/m-p/1384672#M57577</guid>
      <dc:creator>BTW</dc:creator>
      <dc:date>2024-02-20T22:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Pop Up Expression for Displaying Z value returns Execution error - Cannot work with geometry in this spatial reference.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up-expression-for-displaying-z-value/m-p/1384675#M57578</link>
      <description>&lt;P&gt;It's possibly a bug in the Enterprise map viewer. Is the error showing up in the Arcade editor where you're authoring the expression? If so, I'd log a bug with support so they can get that fixed. The execution context for the editor must have a matching spatial reference as well as the map.&lt;/P&gt;&lt;P&gt;If you're copying and pasting into the playground of the online documentation, then you will definitely see that error as the spatial reference there is web mercator.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 22:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up-expression-for-displaying-z-value/m-p/1384675#M57578</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2024-02-20T22:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Pop Up Expression for Displaying Z value returns Execution error - Cannot work with geometry in this spatial reference.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up-expression-for-displaying-z-value/m-p/1384695#M57580</link>
      <description>&lt;P&gt;Thanks for the quick reply Kristian. I tried it in ArcGIS Online with the same set up and it works fine. It's a bug in Enterprise map viewer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 00:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up-expression-for-displaying-z-value/m-p/1384695#M57580</guid>
      <dc:creator>BTW</dc:creator>
      <dc:date>2024-02-21T00:07:32Z</dc:date>
    </item>
  </channel>
</rss>

