<?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: Can't validate Attribute Rule to specific a feature in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175434#M55319</link>
    <description>&lt;P&gt;You load a feature class from the database with&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FeatureSetByName($datastore, "Database.DataOwner.TableName")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's telling you that it can't find the table "&lt;SPAN&gt;GISdw.DCL.TaxParcelPoly" in the datastore. You should check:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;that the parcel feature class is in the same database as your points&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;that the database name (GISdw) is correct&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;that the data owner name (DCL) is correct&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;that the feature class name (TaxParcelPoly) is correct&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 19 May 2022 05:39:36 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-05-19T05:39:36Z</dc:date>
    <item>
      <title>Can't validate Attribute Rule to specific a feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175338#M55310</link>
      <description>&lt;P&gt;This is my first time working with Arcade and Attribute Rules is ArcGIS Pro 2.9.&amp;nbsp; I'm working on rules to assist with the development of Address Points.&amp;nbsp; One task, when creating or updating an address point I need to pull the parcel number value from our Tax Parcel data using an intersect.&amp;nbsp; When trying to specify the TaxParcelPoly to pull the parcel number I get an error message.&amp;nbsp; I don't have a good understanding of how database should be called using Arcade.&lt;/P&gt;&lt;P&gt;This is the statement that I have so far:&lt;/P&gt;&lt;P&gt;var fsTaxParcel = FeatureSetByName($datastore,"GISdw.DCL.TaxParcelPoly",["PARCELNO"])&lt;BR /&gt;var fsParcelIntersect = Intersects(fsTaxParcel, $feature)&lt;BR /&gt;var ParcelNum = First(fsParcelIntersect)&lt;/P&gt;&lt;P&gt;Error Message:&amp;nbsp; Invalid expression.&amp;nbsp; Error on line 1.&amp;nbsp; Table not found GISdw.DCL.TaxParcelPoly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 21:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175338#M55310</guid>
      <dc:creator>FredIausly1</dc:creator>
      <dc:date>2022-05-18T21:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't validate Attribute Rule to specific a feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175434#M55319</link>
      <description>&lt;P&gt;You load a feature class from the database with&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FeatureSetByName($datastore, "Database.DataOwner.TableName")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's telling you that it can't find the table "&lt;SPAN&gt;GISdw.DCL.TaxParcelPoly" in the datastore. You should check:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;that the parcel feature class is in the same database as your points&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;that the database name (GISdw) is correct&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;that the data owner name (DCL) is correct&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;that the feature class name (TaxParcelPoly) is correct&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 19 May 2022 05:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175434#M55319</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-05-19T05:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't validate Attribute Rule to specific a feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175564#M55336</link>
      <description>&lt;P&gt;Thanks Johannes,&lt;/P&gt;&lt;P&gt;The address points are in a different database, in a separate production database that is database = (AddressPointsa), data owner name = (DCL), feature class name = (AddressPointCSP).&amp;nbsp; My objective is to the tax parcel number of a feature that is our publishing database, database = (GISdw), data owner name = (DCL), feature class name = (TaxParcelPoly).&amp;nbsp; Are you saying that Attribute Rules require that any feature class that I need to pull data from has to be in the same database as my production data?&amp;nbsp; That will be an issue and make the use of Attribute Rules a lot more complicated.&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175564#M55336</guid>
      <dc:creator>FredIausly1</dc:creator>
      <dc:date>2022-05-19T14:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't validate Attribute Rule to specific a feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175681#M55351</link>
      <description>&lt;P&gt;Just as a follow up, the data I'm trying access attributes&amp;nbsp; are not in a same database.&amp;nbsp; Rather I'm looking to access data that I'm adding to the Pro project.&amp;nbsp; With that, then I should be&amp;nbsp; using $map instead of $datastore.&amp;nbsp; When I do that I also get an error "Object not found $map".&amp;nbsp; Still not able to make it work.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 18:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175681#M55351</guid>
      <dc:creator>FredIausly1</dc:creator>
      <dc:date>2022-05-19T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't validate Attribute Rule to specific a feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175830#M55365</link>
      <description>&lt;P&gt;Because Arcade is used for many different things (eg Attribute Rules, popups, labeling, symbology, field calculation), there are differences in what global variables (like $feature, $map, and $datastore) get exposed to the user. The exposed globals are described in the Arcade profiles. For example, here is the profile for Calculation Attribute Rules:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#attribute-rule-calculation" target="_blank"&gt;Profiles | ArcGIS Arcade | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Attribute Rules should work regardless from where you trigger them, so it's sensible that you don't get access to $map.&lt;/P&gt;&lt;P&gt;For accessing data from different databases the only option I know of is publishing that data to AGOL or Portal and then using &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyportalitem" target="_blank" rel="noopener"&gt;FeatureSetByPortalItem()&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 05:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-t-validate-attribute-rule-to-specific-a/m-p/1175830#M55365</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-05-20T05:00:25Z</dc:date>
    </item>
  </channel>
</rss>

