<?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 Popup from AGOL  =&amp;gt;  Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial ref in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-popup-from-agol-gt-execution-error-cannot/m-p/1568143#M86254</link>
    <description>&lt;P&gt;Do you mind returning `GetEnvironment()` from your expression to see what spatial reference is set to the Arcade context? I suggest returning the following in your popup as the popup context is different than the Arcade editor context:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="javascript"&gt;Text(GetEnvironment().spatialreference)&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_1-1734039104492.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121643i91B7AF1ED455FCB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_1-1734039104492.png" alt="KristianEkenes_1-1734039104492.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Post the response you see in the popup...&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 21:32:25 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2024-12-12T21:32:25Z</dc:date>
    <item>
      <title>Arcade Popup from AGOL  =&gt;  Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-popup-from-agol-gt-execution-error-cannot/m-p/1567764#M86241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My colleague has created a layer with popups in AGOL. I receive the following error when using the layer in ArcGIS JS SDK 4.30.9.&lt;/P&gt;&lt;P&gt;Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial reference&lt;BR /&gt;Encountered an error when evaluating the arcade expression 'Geometry($feature).z' (primitive: 'label-override', property: 'textString'). The map is in EPSG:3857 and so is the layer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-popup-from-agol-gt-execution-error-cannot/m-p/1567764#M86241</guid>
      <dc:creator>EmilAura</dc:creator>
      <dc:date>2024-12-12T14:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popup from AGOL  =&gt;  Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial ref</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-popup-from-agol-gt-execution-error-cannot/m-p/1568143#M86254</link>
      <description>&lt;P&gt;Do you mind returning `GetEnvironment()` from your expression to see what spatial reference is set to the Arcade context? I suggest returning the following in your popup as the popup context is different than the Arcade editor context:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="javascript"&gt;Text(GetEnvironment().spatialreference)&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_1-1734039104492.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121643i91B7AF1ED455FCB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_1-1734039104492.png" alt="KristianEkenes_1-1734039104492.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Post the response you see in the popup...&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 21:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-popup-from-agol-gt-execution-error-cannot/m-p/1568143#M86254</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2024-12-12T21:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popup from AGOL  =&gt;  Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial ref</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-popup-from-agol-gt-execution-error-cannot/m-p/1568379#M86258</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a screenshot with&lt;/P&gt;&lt;PRE&gt;Text(GetEnvironment().spatialreference)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that I wrote PopUp, while I meant to write labels in my previous message&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (2).png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121711iCDD22FF1ADF86B92/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (2).png" alt="image (2).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 13:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-popup-from-agol-gt-execution-error-cannot/m-p/1568379#M86258</guid>
      <dc:creator>EmilAura</dc:creator>
      <dc:date>2024-12-13T13:04:47Z</dc:date>
    </item>
  </channel>
</rss>

