<?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 Using Arcade to Count Related Records - Results inconsistent between ArcGIS Online and ArcGIS Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-count-related-records-results/m-p/1314129#M71596</link>
    <description>&lt;P&gt;I am trying to use the "FeatureSetByRelationshipName" arcade function in a pop-up in ArcGIS Pro but it fails to return any of the related records. I successfully used this function on the exact same feature layer and related table in ArcGIS Online but for some reason both when I open that web map in Pro and when I try to create a new Arcade expression using this function, it does not produce the same result as it does when viewed in ArcGIS Online. Is this intended design? I was hoping to be able to open the web map and Pro and have that functionality maintained.&lt;/P&gt;&lt;P&gt;Here is the expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var relatedRecs = FeatureSetByRelationshipName($feature, "R0L0Dev_SitesL1Dev_SiteVisit")
return Count(relatedRecs)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though there are 5 related records tied to the point when I click on the pop-up displays "0".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeLachance1_0-1690905735526.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76970i6E4E0B26BABC50D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeLachance1_0-1690905735526.png" alt="MikeLachance1_0-1690905735526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But in ArcGIS Online, I am able to do everything I want within the pop-up and the information is correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeLachance1_1-1690906002303.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76972iD61D499AE3780D5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeLachance1_1-1690906002303.png" alt="MikeLachance1_1-1690906002303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there something I am doing wrong? Should I be formatting the pop-ups differently in Pro for this function to work correctly? I notice that the relationship name displays differently in the function depending on if it's being used in a webmap (AGOL) or in Pro. Why is that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 16:08:38 GMT</pubDate>
    <dc:creator>MikeLachance1</dc:creator>
    <dc:date>2023-08-01T16:08:38Z</dc:date>
    <item>
      <title>Using Arcade to Count Related Records - Results inconsistent between ArcGIS Online and ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-count-related-records-results/m-p/1314129#M71596</link>
      <description>&lt;P&gt;I am trying to use the "FeatureSetByRelationshipName" arcade function in a pop-up in ArcGIS Pro but it fails to return any of the related records. I successfully used this function on the exact same feature layer and related table in ArcGIS Online but for some reason both when I open that web map in Pro and when I try to create a new Arcade expression using this function, it does not produce the same result as it does when viewed in ArcGIS Online. Is this intended design? I was hoping to be able to open the web map and Pro and have that functionality maintained.&lt;/P&gt;&lt;P&gt;Here is the expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var relatedRecs = FeatureSetByRelationshipName($feature, "R0L0Dev_SitesL1Dev_SiteVisit")
return Count(relatedRecs)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though there are 5 related records tied to the point when I click on the pop-up displays "0".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeLachance1_0-1690905735526.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76970i6E4E0B26BABC50D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeLachance1_0-1690905735526.png" alt="MikeLachance1_0-1690905735526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But in ArcGIS Online, I am able to do everything I want within the pop-up and the information is correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeLachance1_1-1690906002303.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76972iD61D499AE3780D5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeLachance1_1-1690906002303.png" alt="MikeLachance1_1-1690906002303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there something I am doing wrong? Should I be formatting the pop-ups differently in Pro for this function to work correctly? I notice that the relationship name displays differently in the function depending on if it's being used in a webmap (AGOL) or in Pro. Why is that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 16:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-count-related-records-results/m-p/1314129#M71596</guid>
      <dc:creator>MikeLachance1</dc:creator>
      <dc:date>2023-08-01T16:08:38Z</dc:date>
    </item>
  </channel>
</rss>

