<?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 Attribute Rule in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule/m-p/638626#M28469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello GIS friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Point feature class on which I have created an Attribute Rule and published it as a&amp;nbsp;feature&amp;nbsp;service to our GIS Server. The rule is to have the Point feature populate itself with the underlying county name from&amp;nbsp;a County feature layer. The rule works great in Pro, but as a service it is only populating itself with a particular county name regardless of where I create the Point.&lt;/P&gt;&lt;P&gt;This is the Rule:&lt;/P&gt;&lt;P&gt;var fsCounty = FeatureSetByName($datastore, "ALForestry.SDE.County", ["name"])&lt;BR /&gt;var fsCountyIntersect = Intersects(fsCounty, $feature)&lt;BR /&gt;var County = First(fsCountyIntersect)&lt;/P&gt;&lt;P&gt;if (County ==null) return {"errorMessage":"County not found"}&lt;/P&gt;&lt;P&gt;return County.name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2019 14:37:21 GMT</pubDate>
    <dc:creator>AbiDhakal</dc:creator>
    <dc:date>2019-09-17T14:37:21Z</dc:date>
    <item>
      <title>Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule/m-p/638626#M28469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello GIS friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Point feature class on which I have created an Attribute Rule and published it as a&amp;nbsp;feature&amp;nbsp;service to our GIS Server. The rule is to have the Point feature populate itself with the underlying county name from&amp;nbsp;a County feature layer. The rule works great in Pro, but as a service it is only populating itself with a particular county name regardless of where I create the Point.&lt;/P&gt;&lt;P&gt;This is the Rule:&lt;/P&gt;&lt;P&gt;var fsCounty = FeatureSetByName($datastore, "ALForestry.SDE.County", ["name"])&lt;BR /&gt;var fsCountyIntersect = Intersects(fsCounty, $feature)&lt;BR /&gt;var County = First(fsCountyIntersect)&lt;/P&gt;&lt;P&gt;if (County ==null) return {"errorMessage":"County not found"}&lt;/P&gt;&lt;P&gt;return County.name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule/m-p/638626#M28469</guid>
      <dc:creator>AbiDhakal</dc:creator>
      <dc:date>2019-09-17T14:37:21Z</dc:date>
    </item>
  </channel>
</rss>

