<?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 FeatureSetByRelationshipName Arcade function in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063242#M5893</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I hosted the attached sample data on AGOL. I am trying to run the following arcade expression while configuring popup for the "Permits" layer.&lt;/P&gt;&lt;PRE&gt;var fs = FeatureSetByRelationshipName($feature, 'Permits_RelatedTbl_1', ['*'], false);&lt;BR /&gt;return fs;&lt;/PRE&gt;&lt;P&gt;However, I run into an error while testing the expression.&lt;/P&gt;&lt;DIV class="column-12"&gt;&lt;DIV class="tabs-translucent underneath  js-tab-group"&gt;&lt;DIV class="size-to-screen"&gt;&lt;DIV&gt;&lt;DIV class="padding-right-2 padding-left-2  "&gt;&lt;PRE&gt;&lt;SPAN class="text-red"&gt;Execution Error:&lt;/SPAN&gt;An error occurred.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="column-12"&gt;&lt;DIV class="tabs-translucent underneath js-tab-group"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;There is a relationship as defined in the layer&lt;/P&gt;&lt;PRE&gt;"relationships" : [
    {
      "id" : 0, 
      "name" : "Permits_RelatedTbl_1", 
      "relatedTableId" : 1, 
      "cardinality" : "esriRelCardinalityOneToMany", 
      "role" : "esriRelRoleOrigin", 
      "keyField" : "globalid", 
      "composite" : false
    }
  ]&lt;/PRE&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 08:25:39 GMT</pubDate>
    <dc:creator>IhabHassan</dc:creator>
    <dc:date>2021-05-31T08:25:39Z</dc:date>
    <item>
      <title>FeatureSetByRelationshipName Arcade function</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063242#M5893</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I hosted the attached sample data on AGOL. I am trying to run the following arcade expression while configuring popup for the "Permits" layer.&lt;/P&gt;&lt;PRE&gt;var fs = FeatureSetByRelationshipName($feature, 'Permits_RelatedTbl_1', ['*'], false);&lt;BR /&gt;return fs;&lt;/PRE&gt;&lt;P&gt;However, I run into an error while testing the expression.&lt;/P&gt;&lt;DIV class="column-12"&gt;&lt;DIV class="tabs-translucent underneath  js-tab-group"&gt;&lt;DIV class="size-to-screen"&gt;&lt;DIV&gt;&lt;DIV class="padding-right-2 padding-left-2  "&gt;&lt;PRE&gt;&lt;SPAN class="text-red"&gt;Execution Error:&lt;/SPAN&gt;An error occurred.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="column-12"&gt;&lt;DIV class="tabs-translucent underneath js-tab-group"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;There is a relationship as defined in the layer&lt;/P&gt;&lt;PRE&gt;"relationships" : [
    {
      "id" : 0, 
      "name" : "Permits_RelatedTbl_1", 
      "relatedTableId" : 1, 
      "cardinality" : "esriRelCardinalityOneToMany", 
      "role" : "esriRelRoleOrigin", 
      "keyField" : "globalid", 
      "composite" : false
    }
  ]&lt;/PRE&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 08:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063242#M5893</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-05-31T08:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Arcade function</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063283#M5894</link>
      <description>&lt;P&gt;I'd guess it's failing to return a featureSet into a popup&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-featuresetbyrelationshipname-arcade-function/m-p/348488" target="_blank"&gt;Solved: How to use the FeatureSetByRelationshipName Arcade... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 12:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063283#M5894</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-31T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Arcade function</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063388#M5895</link>
      <description>&lt;P&gt;it fails while testing the expression&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 23:25:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063388#M5895</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-05-31T23:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Arcade function</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063389#M5896</link>
      <description>&lt;P&gt;I am not sure what is wrong with the arcade line or the sample, although it seems pretty straight forward to me, the function needs the relationship class name to retrieve the feature set, and I am providing the relationship name as it is defined in the service JSON description.&amp;nbsp;&lt;BR /&gt;Any reason why this line would fail ? I tried this in both map viewers classis/new.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 23:35:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1063389#M5896</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-05-31T23:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Arcade function</title>
      <link>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1167376#M6245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a similar issue, where I provide the name of the relationship as found in the service description, and the featuresetbyrelationshipname returns nothing...&lt;/P&gt;&lt;P&gt;Did you find an answer ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 03:52:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featuresetbyrelationshipname-arcade-function/m-p/1167376#M6245</guid>
      <dc:creator>PierreloupDucroix</dc:creator>
      <dc:date>2022-04-25T03:52:43Z</dc:date>
    </item>
  </channel>
</rss>

