<?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: Auto populate attribute field from intersecting feature (polygon field to point field) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090706#M44673</link>
    <description>&lt;P&gt;Thank you!&amp;nbsp; Still receiving an error though.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="attribute_rule_error.JPG" style="width: 876px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21237i627A5B2B8E9C5E00/image-size/large?v=v2&amp;amp;px=999" role="button" title="attribute_rule_error.JPG" alt="attribute_rule_error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 06:23:00 GMT</pubDate>
    <dc:creator>BDU_RyanChittenden</dc:creator>
    <dc:date>2021-08-20T06:23:00Z</dc:date>
    <item>
      <title>Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090700#M44670</link>
      <description>&lt;P&gt;Hi, I am using attribute rule to auto populate an attribute field from a polygon feature to an attribute field in a point feature.&lt;/P&gt;&lt;P&gt;I have suppression repair points with an empty "DPA_AGENCY" Field and a polygon feature that contains the "DPA_AGENCY" information which I want the point "DPA_AGENCY" field to grab from.&amp;nbsp; I've looked up Arcade expressions and I am not even sure I have the right one.&lt;/P&gt;&lt;P&gt;The feature "Suppression_repair_points" the attribute field "DPA_AGENCY"&lt;/P&gt;&lt;P&gt;"Direct_Protection_areas" is the feature I wish to pull info from the "DPA_AGENCY" field&lt;/P&gt;&lt;P&gt;ESRI attribute rule example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="attribute_rule.JPG" style="width: 689px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21234i69C29DDA3F403C2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="attribute_rule.JPG" alt="attribute_rule.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 05:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090700#M44670</guid>
      <dc:creator>BDU_RyanChittenden</dc:creator>
      <dc:date>2021-08-20T05:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090702#M44671</link>
      <description>&lt;P&gt;You found a quite complicated example &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Calculation rule
// Suppression_repair_points, field DPA_AGENCY
// Triggers: Insert, Update

// optional:
// if DPA_AGENCY is already filled, just return its value (do nothing)
//if(!IsEmpty($feature.DPA_AGENCY)) {
//  return $feature.DPA_AGENCY
//}

// load the polygon fc
var dpa_fc = FeatureSetByName($datastore, "database.dataowner.DirectProtection_areas")

// intersect the feature with the polyons
var dpa_inter = Intersects(dpa_fc, $feature)

// if the feature doesn't intersect a dpa polygon, return null
if(dpa_inter == null || Count(dpa_inter) == 0) {
  return null
}

// grab the first intersecting polygon and return its DPA_AGENCY value
return First(dpa_inter).DPA_AGENCY&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 05:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090702#M44671</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-20T05:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090706#M44673</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; Still receiving an error though.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="attribute_rule_error.JPG" style="width: 876px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21237i627A5B2B8E9C5E00/image-size/large?v=v2&amp;amp;px=999" role="button" title="attribute_rule_error.JPG" alt="attribute_rule_error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 06:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090706#M44673</guid>
      <dc:creator>BDU_RyanChittenden</dc:creator>
      <dc:date>2021-08-20T06:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090711#M44674</link>
      <description>&lt;P&gt;FeatureSetByName needs the complete name of the feature class.&lt;/P&gt;&lt;P&gt;If you're in a file geodatabase, thats probably just the name of the feature class (DirectProtectionAreas21_2).&lt;/P&gt;&lt;P&gt;If you're in an Enterprise geodatabase, the full name is "DatabaseName.DataownerName.DirectProtectionAreas21_2", where you have to replace DatabaseName and DataownerName.&lt;/P&gt;&lt;P&gt;Browse to the feature class in the catalog to see its full name:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1629440954628.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21238i1D3C9FC9B076D9C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1629440954628.png" alt="JohannesLindner_0-1629440954628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 06:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090711#M44674</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-20T06:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090713#M44675</link>
      <description>&lt;P&gt;it's a file geodatabase.&lt;/P&gt;&lt;P&gt;So I'd replace: "database.dataowner.DirectProtectionAreas21_2"&lt;/P&gt;&lt;P&gt;with:&amp;nbsp;&lt;SPAN&gt;"DatabaseName.DataownerName.DirectProtectionAreas21_2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 417px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21239iD8536D2C1E075B94/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 06:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090713#M44675</guid>
      <dc:creator>BDU_RyanChittenden</dc:creator>
      <dc:date>2021-08-20T06:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090714#M44676</link>
      <description>&lt;LI-CODE lang="c"&gt;var dpa_fc = FeatureSetByName($datastore, "DirectProtectionAreas21_2")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 06:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090714#M44676</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-20T06:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090721#M44677</link>
      <description>&lt;P&gt;expression valid this time but:&amp;nbsp; ERROR 002717: Invalid Arcade expression, Arcade error: Table not found DirectProtectionAreas21_2, Script line: 12 [DirectProtectionAreas21_2]&lt;BR /&gt;Failed to execute (AddAttributeRule).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Calculation rule&lt;BR /&gt;// Suppression_repair_points, field DPA_AGENCY&lt;BR /&gt;// Triggers: Insert, Update&lt;/P&gt;&lt;P&gt;// optional:&lt;BR /&gt;// if DPA_AGENCY is already filled, just return its value (do nothing)&lt;BR /&gt;//if(!IsEmpty($feature.DPA_AGENCY)) {&lt;BR /&gt;// return $feature.DPA_AGENCY&lt;BR /&gt;//}&lt;/P&gt;&lt;P&gt;// load the polygon fc&lt;BR /&gt;var dpa_fc = FeatureSetByName($datastore, "DirectProtectionAreas21_2")&lt;/P&gt;&lt;P&gt;// intersect the feature with the polyons&lt;BR /&gt;var dpa_inter = Intersects(dpa_fc, $feature)&lt;/P&gt;&lt;P&gt;// if the feature doesn't intersect a dpa polygon, return null&lt;BR /&gt;if(dpa_inter == null || Count(dpa_inter) == 0) {&lt;BR /&gt;return null&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// grab the first intersecting polygon and return its DPA_AGENCY value&lt;BR /&gt;return First(dpa_inter).DPA_AGENCY&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 07:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1090721#M44677</guid>
      <dc:creator>BDU_RyanChittenden</dc:creator>
      <dc:date>2021-08-20T07:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1091000#M44708</link>
      <description>&lt;P&gt;What is dpa_inter and dpa_fc?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 22:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1091000#M44708</guid>
      <dc:creator>BDU_RyanChittenden</dc:creator>
      <dc:date>2021-08-20T22:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1091062#M44725</link>
      <description>&lt;P&gt;ERROR: INVALID EXPRESSION&amp;nbsp; ERROR ON LINE 12&amp;nbsp; Table not found&amp;nbsp;&lt;SPAN&gt;DirectProtectionAreas21_2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Calculation rule&lt;BR /&gt;// Suppression_repair_points, field DPA_AGENCY&lt;BR /&gt;// Triggers: Insert, Update&lt;/P&gt;&lt;P&gt;// optional:&lt;BR /&gt;// if DPA_AGENCY is already filled, just return its value (do nothing)&lt;BR /&gt;//if(!IsEmpty($feature.DPA_AGENCY)) {&lt;BR /&gt;// return $feature.DPA_AGENCY&lt;BR /&gt;//}&lt;/P&gt;&lt;P&gt;// load the polygon fc&lt;BR /&gt;var dpa_fc = FeatureSetByName($datastore, "database.dataowner.DirectProtection_areas")&lt;/P&gt;&lt;P&gt;// intersect the feature with the polyons&lt;BR /&gt;var dpa_inter = Intersects(dpa_fc, $feature)&lt;/P&gt;&lt;P&gt;// if the feature doesn't intersect a dpa polygon, return null&lt;BR /&gt;if(dpa_inter == null || Count(dpa_inter) == 0) {&lt;BR /&gt;return null&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// grab the first intersecting polygon and return its DPA_AGENCY value&lt;BR /&gt;return First(dpa_inter).DPA_AGENCY&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 02:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1091062#M44725</guid>
      <dc:creator>BDU_RyanChittenden</dc:creator>
      <dc:date>2021-08-22T02:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1091067#M44727</link>
      <description>&lt;P&gt;var zones = FeatureSetByName($datastore,"DirectProtectionAreas21",["DPA_GROUP"],true)&lt;/P&gt;&lt;P&gt;var intersectingZones = Intersects(zones, Geometry($feature))&lt;/P&gt;&lt;P&gt;var matchedZone = First(intersectingZones)&lt;/P&gt;&lt;P&gt;return IIf(IsEmpty(matchedZone), null, matchedZone.DPA_GROUP);&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 05:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1091067#M44727</guid>
      <dc:creator>BDU_RyanChittenden</dc:creator>
      <dc:date>2021-08-22T05:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate attribute field from intersecting feature (polygon field to point field)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1555885#M89848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been having the same issue whenever I try to use a feature class from an enterprise geodatabase, I copied the exact full name of the layer, but I keep getting an error "Table not found", it does work perfectly fine if I just use a layer from a file geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an extra step or modification that I need to do? This is my script:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#003300"&gt;&lt;EM&gt;var zones = FeatureSetByName($datastore,"pgsdeprod.prod_projects.IHS_Fields&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#003300"&gt;&lt;EM&gt;",["FIELD_NAME"],true)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#003300"&gt;&lt;EM&gt;var intersectingZones = Intersects(zones, Geometry($feature))&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#003300"&gt;&lt;EM&gt;var matchedZone = First(intersectingZones)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#003300"&gt;&lt;EM&gt;return IIf(IsEmpty(matchedZone), "other", matchedZone.FIELD_NAME);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 16:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/auto-populate-attribute-field-from-intersecting/m-p/1555885#M89848</guid>
      <dc:creator>Ron_S1</dc:creator>
      <dc:date>2024-11-06T16:47:30Z</dc:date>
    </item>
  </channel>
</rss>

