<?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 Issue with Arcade FeatureSetByRelationshipName in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/issue-with-arcade-featuresetbyrelationshipname/m-p/1110913#M42737</link>
    <description>I am having trouble using the Arcade Data Function FeatureSetByRelationshipName() It seems that the function is not returning a FeatureSet that can be used by thte Count() function. I am using ArcGIS Pro v2.6.4 and it seems to work against a File Geodatabase but not for an Enterprise Geodatabase. I get an error on the line calling the Count() saying "Array type expected" ... Has anyone seen this or have any suggestions? var attachments = FeatureSetByRelationshipName($feature, 'rel_Structure_Attachments', ['globalid'], false); if (Count(attachments) &amp;gt; 0) { return "Relationships were found." } else { return "No relationship were found." }</description>
    <pubDate>Mon, 25 Oct 2021 16:33:26 GMT</pubDate>
    <dc:creator>bjbertke</dc:creator>
    <dc:date>2021-10-25T16:33:26Z</dc:date>
    <item>
      <title>Issue with Arcade FeatureSetByRelationshipName</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/issue-with-arcade-featuresetbyrelationshipname/m-p/1110913#M42737</link>
      <description>I am having trouble using the Arcade Data Function FeatureSetByRelationshipName() It seems that the function is not returning a FeatureSet that can be used by thte Count() function. I am using ArcGIS Pro v2.6.4 and it seems to work against a File Geodatabase but not for an Enterprise Geodatabase. I get an error on the line calling the Count() saying "Array type expected" ... Has anyone seen this or have any suggestions? var attachments = FeatureSetByRelationshipName($feature, 'rel_Structure_Attachments', ['globalid'], false); if (Count(attachments) &amp;gt; 0) { return "Relationships were found." } else { return "No relationship were found." }</description>
      <pubDate>Mon, 25 Oct 2021 16:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/issue-with-arcade-featuresetbyrelationshipname/m-p/1110913#M42737</guid>
      <dc:creator>bjbertke</dc:creator>
      <dc:date>2021-10-25T16:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Arcade FeatureSetByRelationshipName</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/issue-with-arcade-featuresetbyrelationshipname/m-p/1128081#M43481</link>
      <description>&lt;P&gt;There's actually a separate function for working with attachments. Have you attempted to use that?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#attachments" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/data_functions/#attachments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Even though the attachments are technically a related table, I don't think the application treats it as such.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 17:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/issue-with-arcade-featuresetbyrelationshipname/m-p/1128081#M43481</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-12-21T17:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Arcade FeatureSetByRelationshipName</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/issue-with-arcade-featuresetbyrelationshipname/m-p/1130002#M43581</link>
      <description>&lt;P&gt;If you want to get attachments from an attachment table created by the EnableAttachments tool, then you should use the Attachments() function (as Josh said).&lt;/P&gt;&lt;P&gt;If your attachments are from a table created by a user, then I'd guess the problem is that you try to store the result of FeatureSetByName into a reserved variable name (Attchments). Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// the name attachments is reserved for the Attachments() function
var attach = FeatureSetByRelationshipName($feature, 'rel_Structure_Attachments', ['globalid'], false); 
if (Count(attach) &amp;gt; 0) { 
  return "Relationships were found." 
} else { 
  return "No relationship were found." 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 07:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/issue-with-arcade-featuresetbyrelationshipname/m-p/1130002#M43581</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-01-03T07:41:51Z</dc:date>
    </item>
  </channel>
</rss>

