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:
https://support.esri.com/en-us/knowledge-base/problem-z-values-do-not-display-in-pop-ups-when-using-...
When I use the expression in the article
Geometry($feature).z
and run it I get the error
Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial reference
My map projection is in NZTM (2193) and the data is in the same projection. I saw on another community form that "the spatial reference of the geometry must match the spatial reference of the map where the Arcade is executed" @KristianEkenes .
When trying to display x and y in the pop up, I get the same execution error.
Is this a bug or is there something else I can do to display z values on the fly?
Thanks.