<?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 Expression in the new map viewer generate this error “ Execution Error:Cannot create Geometry in this SpatialReference. Engine is using a d in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1054640#M39896</link>
    <description>&lt;P&gt;Hi - no I don't know what is going on with your expression but I can tell you that I am getting a similar error with an Arcade expression that works fine in MapViewer Beta 5 (enterprise 10.8.1) and in the classic map viewer Online, or the Enterprise map viewer.&amp;nbsp; This expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var FutureRd = $feature["future_rd"];
var NumberLanes = $feature["num_lanes"];
var FutureLanes = $feature["fut_lanes"];
var typing = When(FutureRd == 'NO' &amp;amp;&amp;amp; NumberLanes == FutureLanes,'Complete, No Widening',
FutureRd == 'NO' &amp;amp;&amp;amp; NumberLanes != FutureLanes,
'Complete, Widening Required', 'Future / Unbuilt');
return typing;&lt;/LI-CODE&gt;&lt;P&gt;fails with a return 'Warning, return type must be a number'.&amp;nbsp; So even if I cast the NumberLanes and FutureLanes vars as text, still doesn't work in New MapViewer.&amp;nbsp; &amp;nbsp;If I build the expression in Classic, and then open the map in New, the New Map Viewer does honor the expression.&amp;nbsp; For now that's my workaround&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 14:32:25 GMT</pubDate>
    <dc:creator>DavidColey</dc:creator>
    <dc:date>2021-05-05T14:32:25Z</dc:date>
    <item>
      <title>Arcade Expression in the new map viewer generate this error “ Execution Error:Cannot create Geometry in this SpatialReference. Engine is using a diffe</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1053083#M39806</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Arcade expression to pass Lat &amp;amp; Long into my survey 123 fields and it’s working fine when I setup this in the classic map viewer.&lt;/P&gt;&lt;P&gt;However, when I tried to do the same thing in the new map viewer I got the following error “&lt;SPAN&gt;Execution Error:&lt;/SPAN&gt;Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.”&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what is the problem here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rawan&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1053083#M39806</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-30T06:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression in the new map viewer generate this error “ Execution Error:Cannot create Geometry in this SpatialReference. Engine is using a d</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1054640#M39896</link>
      <description>&lt;P&gt;Hi - no I don't know what is going on with your expression but I can tell you that I am getting a similar error with an Arcade expression that works fine in MapViewer Beta 5 (enterprise 10.8.1) and in the classic map viewer Online, or the Enterprise map viewer.&amp;nbsp; This expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var FutureRd = $feature["future_rd"];
var NumberLanes = $feature["num_lanes"];
var FutureLanes = $feature["fut_lanes"];
var typing = When(FutureRd == 'NO' &amp;amp;&amp;amp; NumberLanes == FutureLanes,'Complete, No Widening',
FutureRd == 'NO' &amp;amp;&amp;amp; NumberLanes != FutureLanes,
'Complete, Widening Required', 'Future / Unbuilt');
return typing;&lt;/LI-CODE&gt;&lt;P&gt;fails with a return 'Warning, return type must be a number'.&amp;nbsp; So even if I cast the NumberLanes and FutureLanes vars as text, still doesn't work in New MapViewer.&amp;nbsp; &amp;nbsp;If I build the expression in Classic, and then open the map in New, the New Map Viewer does honor the expression.&amp;nbsp; For now that's my workaround&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1054640#M39896</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-05-05T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression in the new map viewer generate this error “ Execution Error:Cannot create Geometry in this SpatialReference. Engine is using a d</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1054998#M39914</link>
      <description>&lt;P&gt;yeah I did the same as workaround! but the behavior it self is weird&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 00:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1054998#M39914</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-06T00:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression in the new map viewer generate this error “ Execution Error:Cannot create Geometry in this SpatialReference. Engine is using a d</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1056909#M40006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10568"&gt;@DavidColey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The error "&lt;SPAN&gt;&lt;STRONG&gt;Warning, return type must be a number&lt;/STRONG&gt;" occurs when you already have a category field selected and you are defining an expression. This expression will be used as the second field and must be numeric. I have had the same error and when I removed the field of the symbology with the cross "x" just above the "+ expression" it worked as expected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XanderBakker_0-1620769827278.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13089iA5F759096936EDA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XanderBakker_0-1620769827278.png" alt="XanderBakker_0-1620769827278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry for the screenshot in Spanish...&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 21:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1056909#M40006</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-05-11T21:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression in the new map viewer generate this error “ Execution Error:Cannot create Geometry in this SpatialReference. Engine is using a d</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1057325#M40035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp; - yes thank you that was it.&amp;nbsp; Sorry to have hi-jacked your post&amp;nbsp;@Anonymous User.&amp;nbsp; The only behavior that was similar - maybe - to what you are experiencing was this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the last beta release in Online of the MapViewer, I noticed that my custom Image basemap was behaving oddly.&amp;nbsp; The basemap included the world image service, a tile cache, local image service in wkid&amp;nbsp;&lt;SPAN&gt;3857, and a vector tile cache (streets and labels) in the same web mercator spatial reference.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For whatever reason, my local tile cache image service was 'shifted' - as if the final Map Viewer beta was not picking up a transformation.&amp;nbsp; I should tell you that the local tile cache service is created from a mosiac dataset in Pro that contains a re-project function (so I would not have to re-project all of the source tiffs).&amp;nbsp; However, this seems to have been resolved as I am not seeing the same behavior in the New Map Viewer . . .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 19:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-in-the-new-map-viewer-generate/m-p/1057325#M40035</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-05-12T19:23:02Z</dc:date>
    </item>
  </channel>
</rss>

