<?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: Field Maps Arcade Expression not grabbing geometry data in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293066#M6135</link>
    <description>&lt;P&gt;You should be able to use the code as written. The result will show up in the &lt;STRONG&gt;Console&lt;/STRONG&gt; tab of the expression builder.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 14:40:01 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-05-25T14:40:01Z</dc:date>
    <item>
      <title>Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293031#M6130</link>
      <description>&lt;P&gt;I created a new point layer in ArcGIS online and added it to a map. I want to automatically calculate the MSL vertical elevation using arcade and have done so before on other layers but for some reason the calculation doesnt work for this layer and I dont understand why. Below is a snapshot of the equation with the error message. When this work it normally displays a 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeanNagy1_0-1685021177939.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71662i40396A504C820992/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeanNagy1_0-1685021177939.png" alt="SeanNagy1_0-1685021177939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 13:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293031#M6130</guid>
      <dc:creator>SeanNagy1</dc:creator>
      <dc:date>2023-05-25T13:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293050#M6131</link>
      <description>&lt;P&gt;You checked that all features have a Z value?&amp;nbsp; possibly an if/else to catch exceptions would be good practice.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293050#M6131</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-05-25T14:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293052#M6132</link>
      <description>&lt;P&gt;Its a brand new layer made in ArcGIS Online and selected the geometry and Z value options. The URL shows it has both enabled&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeanNagy1_0-1685023670686.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71663iE31558028B73EA13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeanNagy1_0-1685023670686.png" alt="SeanNagy1_0-1685023670686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293052#M6132</guid>
      <dc:creator>SeanNagy1</dc:creator>
      <dc:date>2023-05-25T14:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293063#M6133</link>
      <description>&lt;P&gt;Seems odd, but I agree with &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp; that some debugging would be helpful.&lt;/P&gt;&lt;P&gt;Try assigning &lt;STRONG&gt;geometry($feature)&lt;/STRONG&gt; to a variable and print to the Console, like&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var geom = Geometry($feature)

Console(geom, geom['z'])&lt;/LI-CODE&gt;&lt;P&gt;Understanding what's going &lt;EM&gt;into &lt;/EM&gt;the rounding function will help explain why it's not returning what we want.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293063#M6133</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-05-25T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293065#M6134</link>
      <description>You will have to excuse the limits of my knowledge with coding and arcade, anyway you can write out that exact code so I can do the debugging? I'm not sure how to write it out otherwise. It is just so weird because ive used this exact process before making the layer and then using the code and never had the issue with the calculation.&lt;BR /&gt;</description>
      <pubDate>Thu, 25 May 2023 14:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293065#M6134</guid>
      <dc:creator>SeanNagy1</dc:creator>
      <dc:date>2023-05-25T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293066#M6135</link>
      <description>&lt;P&gt;You should be able to use the code as written. The result will show up in the &lt;STRONG&gt;Console&lt;/STRONG&gt; tab of the expression builder.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293066#M6135</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-05-25T14:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293107#M6136</link>
      <description>&lt;P&gt;I figured it out. For some reason I just needed to have a single feature created and on that map and then the calculations worked. It didnt seem to want to work without a feature existing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 15:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293107#M6136</guid>
      <dc:creator>SeanNagy1</dc:creator>
      <dc:date>2023-05-25T15:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Arcade Expression not grabbing geometry data</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293124#M6138</link>
      <description>&lt;P&gt;Oh! Yeah, the field calculator validates the expression with a sample record from the table, and that sometimes gets weird if there are no records, or if it's validating against some outlier.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 16:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-arcade-expression-not-grabbing-geometry/m-p/1293124#M6138</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-05-25T16:10:43Z</dc:date>
    </item>
  </channel>
</rss>

