<?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 Arcade silently fails when Point is accessed in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-silently-fails-when-point-is-accessed/m-p/1178133#M1131</link>
    <description>&lt;P&gt;I wrote some arcade to format a web map pop up and it works OK when I click the Test button but not when it gets called from a pop up.&amp;nbsp; The code is trying to retrieve the x,y coordinates of the feature centroid.&amp;nbsp; In the example below I've boiled it down to show that line 2 is causing the problem.&amp;nbsp; When commented out, arcade returns the expected output. When left as-is,&amp;nbsp; the popup shows nothing and reports no error. Any ideas&amp;gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var center = Centroid($feature)
center.x  // When I comment this out it "works"

return { 
	type : 'text', 
	text : 'Works'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 23:48:27 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2022-05-27T23:48:27Z</dc:date>
    <item>
      <title>Arcade silently fails when Point is accessed</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-silently-fails-when-point-is-accessed/m-p/1178133#M1131</link>
      <description>&lt;P&gt;I wrote some arcade to format a web map pop up and it works OK when I click the Test button but not when it gets called from a pop up.&amp;nbsp; The code is trying to retrieve the x,y coordinates of the feature centroid.&amp;nbsp; In the example below I've boiled it down to show that line 2 is causing the problem.&amp;nbsp; When commented out, arcade returns the expected output. When left as-is,&amp;nbsp; the popup shows nothing and reports no error. Any ideas&amp;gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var center = Centroid($feature)
center.x  // When I comment this out it "works"

return { 
	type : 'text', 
	text : 'Works'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 23:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-silently-fails-when-point-is-accessed/m-p/1178133#M1131</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2022-05-27T23:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade silently fails when Point is accessed</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-silently-fails-when-point-is-accessed/m-p/1178186#M1132</link>
      <description>&lt;P&gt;I tried this again this morning and now it works as expected. Very strange.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 22:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-silently-fails-when-point-is-accessed/m-p/1178186#M1132</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2022-05-28T22:32:37Z</dc:date>
    </item>
  </channel>
</rss>

