<?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 Issues with Popup &amp;amp; Associated Tables in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-popup-amp-associated-tables/m-p/1282039#M68320</link>
    <description>&lt;P&gt;I have a feature class with an associated table set up in Utility Network. I've been trying to access the data on that table through a popup using &lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/data-management/featuresetbyassocaitions-new-utility-network-arcade-api-to-work-with-associations-2-5-10-8/" target="_blank"&gt;FeatureSetByAssociations - New Utility Network Arcade API to Work with Associations (2.5/10.8) (esri.com)&lt;/A&gt; for information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, all I get are null and zero count results. I tried the two below arcade snippets and am consistently getting zero counts or records. However, I'm able to check the Attribute pane and verify the points have associated table records (every point as a minimum of 1 record associated with it). The two snippets below should give something, but instead just output 0 associated records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this with data connected directly to the oracle DB and&amp;nbsp; with feature layers published to Portal Enterprise (10.9.1) and then pulled back into Pro. Both had the same results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var allContent = featuresetbyAssociation ($feature, "container");
var devRow = Filter(allContent, "ASSETGROUP = 'Meter'")
var result = Count(allContent);

if (IsEmpty(result) == True) {
    return "No Association"
} else {
return result
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;var allContent = featuresetbyAssociation($feature, "container");
var globalids = [];
var i = 0
for (var v in allContent) {
    globalids[i++] = v.globalId
}
var deviceCount = 0 
if (i &amp;gt;0) {
    var tbl = FeatureSetByName($datastore, "Pipeline Junction Object");
    var rows = Filter(tbl, "globalid in@globalids")
    deviceCount = Count(rows)
}
return{'errorMessage':deviceCount}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 19:38:09 GMT</pubDate>
    <dc:creator>RVx_GaslineGiS</dc:creator>
    <dc:date>2023-04-24T19:38:09Z</dc:date>
    <item>
      <title>Issues with Popup &amp; Associated Tables</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-popup-amp-associated-tables/m-p/1282039#M68320</link>
      <description>&lt;P&gt;I have a feature class with an associated table set up in Utility Network. I've been trying to access the data on that table through a popup using &lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/data-management/featuresetbyassocaitions-new-utility-network-arcade-api-to-work-with-associations-2-5-10-8/" target="_blank"&gt;FeatureSetByAssociations - New Utility Network Arcade API to Work with Associations (2.5/10.8) (esri.com)&lt;/A&gt; for information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, all I get are null and zero count results. I tried the two below arcade snippets and am consistently getting zero counts or records. However, I'm able to check the Attribute pane and verify the points have associated table records (every point as a minimum of 1 record associated with it). The two snippets below should give something, but instead just output 0 associated records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this with data connected directly to the oracle DB and&amp;nbsp; with feature layers published to Portal Enterprise (10.9.1) and then pulled back into Pro. Both had the same results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var allContent = featuresetbyAssociation ($feature, "container");
var devRow = Filter(allContent, "ASSETGROUP = 'Meter'")
var result = Count(allContent);

if (IsEmpty(result) == True) {
    return "No Association"
} else {
return result
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;var allContent = featuresetbyAssociation($feature, "container");
var globalids = [];
var i = 0
for (var v in allContent) {
    globalids[i++] = v.globalId
}
var deviceCount = 0 
if (i &amp;gt;0) {
    var tbl = FeatureSetByName($datastore, "Pipeline Junction Object");
    var rows = Filter(tbl, "globalid in@globalids")
    deviceCount = Count(rows)
}
return{'errorMessage':deviceCount}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 19:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-popup-amp-associated-tables/m-p/1282039#M68320</guid>
      <dc:creator>RVx_GaslineGiS</dc:creator>
      <dc:date>2023-04-24T19:38:09Z</dc:date>
    </item>
  </channel>
</rss>

