<?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: Vlookup attribute rule between feature class and standalone table in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/vlookup-attribute-rule-between-feature-class-and/m-p/1239327#M63196</link>
    <description>&lt;P&gt;The error tends to point me towards the missing curly brackets.&amp;nbsp; Does this change things?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if ($feature.MapUnit == fsBedrock_DMU_MapUnit.MapUnit){
return fsBedrock_DMU_UnitCode.UnitCode
}&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 19:29:16 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2022-12-08T19:29:16Z</dc:date>
    <item>
      <title>Vlookup attribute rule between feature class and standalone table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/vlookup-attribute-rule-between-feature-class-and/m-p/1239230#M63182</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write an attribute rule that will populate fields in a feature class from a standalone table as I am creating new features. I don't want to use a join.&lt;/P&gt;&lt;P&gt;I'm not sure I'm even starting in the right place with this script, but what I would like to have happen is that if I create a point in the bedrock_MUL line feature class and manually enter the MapUnit it would populate the UnitCode field in the feature class using the Bedrock_DMU table below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this attribute rule written for the UnitCode field in the Bedrock_MUL feature class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// When adding a new MapUnitLabel to the map first pick you MapUnit from the bedrock DMU and enter it in the MapUnitField, that entry will trigger the population of the UnitCode field here&lt;/P&gt;&lt;P&gt;//$datastore is the entire workspace&lt;BR /&gt;// $feature is the point being added&lt;/P&gt;&lt;P&gt;// Reference Fields in the DMU&lt;BR /&gt;var fsBedrock_DMU_MapUnit = FeatureSetByName($datastore, "Bedrock_DMU", ["MapUnit"]);&lt;BR /&gt;var fsBedrock_DMU_UnitCode = FeatureSetByName($datastore, "Bedrock_DMU", ["UnitCode"]);&lt;BR /&gt;var fsBedrock_MUL_MapUnit = $feature["MapUnit"];&lt;/P&gt;&lt;P&gt;//Look at Feature class and if it matches table return value from table&lt;BR /&gt;if ($feature.MapUnit == fsBedrock_DMU_MapUnit.MapUnit)return fsBedrock_DMU_UnitCode.UnitCode &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-12-08 101328.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57988i53320EF13909643F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-12-08 101328.png" alt="Screenshot 2022-12-08 101328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 18:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/vlookup-attribute-rule-between-feature-class-and/m-p/1239230#M63182</guid>
      <dc:creator>katherinealexander_123</dc:creator>
      <dc:date>2022-12-08T18:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup attribute rule between feature class and standalone table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/vlookup-attribute-rule-between-feature-class-and/m-p/1239327#M63196</link>
      <description>&lt;P&gt;The error tends to point me towards the missing curly brackets.&amp;nbsp; Does this change things?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if ($feature.MapUnit == fsBedrock_DMU_MapUnit.MapUnit){
return fsBedrock_DMU_UnitCode.UnitCode
}&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 19:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/vlookup-attribute-rule-between-feature-class-and/m-p/1239327#M63196</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-12-08T19:29:16Z</dc:date>
    </item>
  </channel>
</rss>

