<?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 Smart Form Calculated Expression not populating in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-form-calculated-expression-not-populating/m-p/1220090#M4674</link>
    <description>&lt;P&gt;My code works fine in ArcGIS Pro and in Map Viewer but I cannot get it to work in field maps when there are other records.&amp;nbsp; If I remove all child records and create the parent fresh it works but as soon as I have one record I cannot add another.&amp;nbsp; The calculated field says "Failed to Calculate" and I can't figure out why.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var child_fs = FeatureSetByRelationshipName($feature,"TurfArea",["Area", "Status"])

var filterd_child_fs = Filter(child_fs, "Status = 0")
if(filterd_child_fs == null) { return }

return Sum(filterd_child_fs, "Area")&lt;/LI-CODE&gt;&lt;P&gt;If anyone can help me out here I would greatly appreciate it.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2022 00:01:28 GMT</pubDate>
    <dc:creator>HMarcks</dc:creator>
    <dc:date>2022-10-08T00:01:28Z</dc:date>
    <item>
      <title>Smart Form Calculated Expression not populating</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-form-calculated-expression-not-populating/m-p/1220090#M4674</link>
      <description>&lt;P&gt;My code works fine in ArcGIS Pro and in Map Viewer but I cannot get it to work in field maps when there are other records.&amp;nbsp; If I remove all child records and create the parent fresh it works but as soon as I have one record I cannot add another.&amp;nbsp; The calculated field says "Failed to Calculate" and I can't figure out why.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var child_fs = FeatureSetByRelationshipName($feature,"TurfArea",["Area", "Status"])

var filterd_child_fs = Filter(child_fs, "Status = 0")
if(filterd_child_fs == null) { return }

return Sum(filterd_child_fs, "Area")&lt;/LI-CODE&gt;&lt;P&gt;If anyone can help me out here I would greatly appreciate it.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 00:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/smart-form-calculated-expression-not-populating/m-p/1220090#M4674</guid>
      <dc:creator>HMarcks</dc:creator>
      <dc:date>2022-10-08T00:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Form Calculated Expression not populating</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-form-calculated-expression-not-populating/m-p/1220696#M4681</link>
      <description>&lt;P&gt;Is it maybe a 1:1 relationship?&amp;nbsp; Also try using FeatureSetbyName instead it has been posted on here many times that ByRelationshipName does not work a lot of the time (search the board on it).&amp;nbsp; Esp with special chars in the name.&amp;nbsp; Changing to ByName seems to do it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 13:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/smart-form-calculated-expression-not-populating/m-p/1220696#M4681</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-11T13:57:46Z</dc:date>
    </item>
  </channel>
</rss>

