<?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: FeatureSetByRelationshipName Attribute Rule Error in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1294642#M939</link>
    <description>Are you edit done in ArcGIS Pro? Could it be the edit cache saving the edits till a certain time?&lt;BR /&gt;</description>
    <pubDate>Wed, 31 May 2023 18:47:27 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2023-05-31T18:47:27Z</dc:date>
    <item>
      <title>FeatureSetByRelationshipName Attribute Rule Error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1294592#M938</link>
      <description>&lt;P&gt;I'm trying to setup an attribute rule in ArcGIS Pro 10.9.1 that evaluates two GUID fields, crby_fpt_rel and crby_far_rel, in a sample point feature class for Null values. If both fields are Null, I would like Null to be returned. If either field is not Null, I would like to use the FeatureSetByRelationshipName function to pull the ft_alias from the parent feature class into the corresponding field. The sample point feature class is the child of two parent feature classes, feature_area and feature_point. The feature_area feature class is related (1:M) to the sample_point feature class using globalid/crby_far_rel; the feature point feature class is related (1:M) to the sample_point feature class using globalid/crby_fpt_rel.&lt;/P&gt;&lt;P&gt;The feature classes are all in the same EGDB. They are published to Portal as registered feature services, and used in Field Maps.&lt;/P&gt;&lt;P&gt;This is the script I built for use in the attribute rules for the ft_alias field. However, I'm receiving an error in Pro asking for an array or featureset for line 10 (var far = First(relarea)) or I get a 999999 error code. Additionally, Field Maps fails to submit sample points to the child feature class when the attribute rule is enabled.&lt;/P&gt;&lt;P&gt;var areaatt = $feature["crby_far_rel"];&lt;BR /&gt;var ptatt = $feature["crby_fpt_rel"];&lt;BR /&gt;var relin = "";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ((IsEmpty(ptatt)) &amp;amp;&amp;amp; (IsEmpty(areaatt))){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;relin = Null;&lt;BR /&gt;} else if (!IsEmpty(areaatt)){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var relarea = FeatureSetByRelationshipName($feature,"EGDBName.DBOName.RelationshipName", ["*"]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var far = First(relarea);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; relin = far.ft_alias;&lt;BR /&gt;} else if (!IsEmpty(ptatt)){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var relpt = FeatureSetByRelationshipName($feature,"EGDB.DBOName.RelationshipName", ["*"]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var fpt = First(relpt);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; relin = fpt.ft_alias;&lt;BR /&gt;} return relin&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 20:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1294592#M938</guid>
      <dc:creator>Chip727</dc:creator>
      <dc:date>2023-05-31T20:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Attribute Rule Error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1294642#M939</link>
      <description>Are you edit done in ArcGIS Pro? Could it be the edit cache saving the edits till a certain time?&lt;BR /&gt;</description>
      <pubDate>Wed, 31 May 2023 18:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1294642#M939</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2023-05-31T18:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Attribute Rule Error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1294737#M940</link>
      <description>&lt;P&gt;Thank you for the response. I am using this in ArcGIS Pro. I'm not certain what you mean by the edit cache, but the attribute rule is set to trigger at insert. I still get the 999999&amp;nbsp; and 002717 errors despite how I set the trigger, insert or update.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 20:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1294737#M940</guid>
      <dc:creator>Chip727</dc:creator>
      <dc:date>2023-05-31T20:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Attribute Rule Error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1297340#M948</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/543914"&gt;@Chip727&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try to Exclude the rule from client evaluation and confirm if the error goes away?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure this option is checked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HusseinNasser2_0-1686255149212.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72711i96285DF24F45639A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HusseinNasser2_0-1686255149212.png" alt="HusseinNasser2_0-1686255149212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 20:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1297340#M948</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2023-06-08T20:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureSetByRelationshipName Attribute Rule Error</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1297400#M949</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;&amp;nbsp;This worked! The attribute rule is now working when data is submitted from Field Maps. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 23:13:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/featuresetbyrelationshipname-attribute-rule-error/m-p/1297400#M949</guid>
      <dc:creator>Chip727</dc:creator>
      <dc:date>2023-06-08T23:13:27Z</dc:date>
    </item>
  </channel>
</rss>

