<?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 field calculation table not found in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570803#M4714</link>
    <description>&lt;P&gt;please post code using the insert code sample option&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Retrieve the DEM polygons feature set
var demFeatures = FeatureSetByName($datastore, "Elev_Polygons_2023", ["gridcode"], true);

// Find the polygons that intersect with the current device
var intersectingPolygons = Filter(demFeatures, 'Intersects($feature)');

// Get the first intersecting polygon
var intersectingPolygon = First(intersectingPolygons);

// Extract the gridcode value if an intersecting polygon exists
var elevation = intersectingPolygon["gridcode"];

// Return the elevation value
return elevation;

 &lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 21 Dec 2024 20:56:09 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2024-12-21T20:56:09Z</dc:date>
    <item>
      <title>Arcade field calculation table not found</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570675#M4712</link>
      <description>&lt;P&gt;I'm trying to write an expression to calculate the elevation field of stormwater devices from the intersecting polygon from another layer in the same REST service. I have been able to calculate fields from intersecting features before, but for some reason it keeps giving me an error. If I use $datastore, I get table not found. If I use $map or $layer, I get object not found, even though the layer is loaded in the current map. The error is coming on the first assignment statement. What am I getting wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Retrieve the DEM polygons feature set&lt;BR /&gt;var demFeatures = FeatureSetByName($datastore, "Elev_Polygons_2023", ["gridcode"], true);&lt;/P&gt;&lt;P&gt;// Find the polygons that intersect with the current device&lt;BR /&gt;var intersectingPolygons = Filter(demFeatures, 'Intersects($feature)');&lt;/P&gt;&lt;P&gt;// Get the first intersecting polygon&lt;BR /&gt;var intersectingPolygon = First(intersectingPolygons);&lt;/P&gt;&lt;P&gt;// Extract the gridcode value if an intersecting polygon exists&lt;BR /&gt;var elevation = intersectingPolygon["gridcode"];&lt;/P&gt;&lt;P&gt;// Return the elevation value&lt;BR /&gt;return elevation;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 17:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570675#M4712</guid>
      <dc:creator>Justin_CLT</dc:creator>
      <dc:date>2024-12-20T17:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade field calculation table not found</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570802#M4713</link>
      <description>&lt;P&gt;I believe you have to include the owner as well as the feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, ESAGE is the owner of swSubbasins:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var subb = FeatureSetByName($datastore,"ESAGE.swSubbasin",["SUBBASIN"], true)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Give that a try and see if that helps.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2024 20:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570802#M4713</guid>
      <dc:creator>VanessaSimps</dc:creator>
      <dc:date>2024-12-21T20:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade field calculation table not found</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570803#M4714</link>
      <description>&lt;P&gt;please post code using the insert code sample option&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Retrieve the DEM polygons feature set
var demFeatures = FeatureSetByName($datastore, "Elev_Polygons_2023", ["gridcode"], true);

// Find the polygons that intersect with the current device
var intersectingPolygons = Filter(demFeatures, 'Intersects($feature)');

// Get the first intersecting polygon
var intersectingPolygon = First(intersectingPolygons);

// Extract the gridcode value if an intersecting polygon exists
var elevation = intersectingPolygon["gridcode"];

// Return the elevation value
return elevation;

 &lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 21 Dec 2024 20:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570803#M4714</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-12-21T20:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade field calculation table not found</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570804#M4715</link>
      <description>&lt;P&gt;Why is the 'Interescts($feature)' a string?&amp;nbsp; Dont think you need filter at all&amp;nbsp;&lt;/P&gt;&lt;P&gt;change to&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersectingPolygons = Intersects(demFeatures, $feature);&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 21 Dec 2024 20:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/arcade-field-calculation-table-not-found/m-p/1570804#M4715</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-12-21T20:58:03Z</dc:date>
    </item>
  </channel>
</rss>

