<?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: Problem with Field Calculator in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172152#M54940</link>
    <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6305842931112w894h540r78" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6305842931112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6305842931112w894h540r78');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6305842931112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;Here is the video of what I am doing&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 19:51:24 GMT</pubDate>
    <dc:creator>aam</dc:creator>
    <dc:date>2022-05-09T19:51:24Z</dc:date>
    <item>
      <title>Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172125#M54933</link>
      <description>&lt;P class=""&gt;I am using ArcGIS Pro, I have a Feature Class along with standalone tables, the content of tables need to be brought into the Feature Class.&lt;/P&gt;&lt;P class=""&gt;The Table contains over 6000 records and I use Definition query to filter out the records that I need to bring in.&amp;nbsp;I do a join based on the Primary ID and then using the Field Calculator to populate the records from the joined table. However when I run the Field Calculator, the records that I are suppose to be hiding (filtered out) are being populated.&lt;/P&gt;&lt;P class=""&gt;Has anyone experienced this before, how can I overcome this?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172125#M54933</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T19:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172138#M54935</link>
      <description>&lt;P&gt;Screenshot of the calculator tool?&lt;/P&gt;&lt;P&gt;Is it possible you have the same attribute name in the feature class as well as the joined table?&lt;/P&gt;&lt;P&gt;If so, make sure you scroll down far enough to pick the joinedtablename.FieldName (not just FieldName) so it knows to pull the data from that table/field.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:11:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172138#M54935</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T20:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172142#M54936</link>
      <description>&lt;P&gt;To prevent populating the other features, you can:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select by Attributes first, run the calculation on the selection. Or,&lt;/LI&gt;&lt;LI&gt;Include a statement in your calculation that checks the attribute value, and leaves it alone if it is not one of the target rows&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What language are you using? If you use Arcade, there's no reason to perform a join ahead of time.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var x = $feature.['primary_id_field']

var lyr = FeatureSetByName(
    $map,
    'the other layer',
    ['primary_id_field', 'the_other_attribute_you_want'],
    false
)

var feat = First(Filter(
    lyr,
    `primary_id_field = ${x}`
))

return feat['the_other_attribute_you_want']&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 May 2022 19:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172142#M54936</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-05-09T19:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172146#M54937</link>
      <description>&lt;P&gt;The Field Calculator will either work on a selected set of records or, if nothing is selected, it will work on all of the records.&amp;nbsp; Perhaps, after setting your definition query to hide the records you don't want, select the remaining records before running the Field Calculator.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172146#M54937</guid>
      <dc:creator>BryndaHatch</dc:creator>
      <dc:date>2022-05-09T19:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172152#M54940</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6305842931112w894h540r16" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6305842931112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6305842931112w894h540r16');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6305842931112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;Here is the video of what I am doing&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172152#M54940</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T19:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172153#M54941</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6305843527112w894h540r505" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6305843527112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6305843527112w894h540r505');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6305843527112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Here is the video of what I am doing&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172153#M54941</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T19:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172158#M54943</link>
      <description>&lt;P&gt;Something must be going funny in between the join and the calculation. Thank you for sharing the video, it's much easier to see what's going on.&lt;/P&gt;&lt;P&gt;Personally, I would use Arcade to make absolutely sure that the other table is being filtered the way you intend it to be. You can get the matching feature based on the ID and filter the layer at the same time.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var x = $feature.['primary_id_field']

var lyr = FeatureSetByName(
    $map,
    'the other layer',
    [
        'primary_id_field',
        'the_other_attribute_you_want',
        'attribute_in_your_definition_query'
    ],
    false
)

var feat = First(Filter(
    lyr,
    `primary_id_field = ${x} AND attribute_in_your_definition_query = some_value`
))

return feat['the_other_attribute_you_want']&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 May 2022 20:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172158#M54943</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-05-09T20:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172160#M54944</link>
      <description>&lt;P&gt;Are the tables geodatabase tables or Excel?&lt;/P&gt;&lt;P&gt;What if you don't put a definition query on the lookup table, but put the join on the Feature class, show only matching data (when establishing the join), then put the definition query on the feature class only.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172160#M54944</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T20:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172165#M54945</link>
      <description>&lt;P&gt;I see you changed the original question from populating with the wrong field values to &lt;SPAN&gt;filtered&amp;nbsp;&lt;/SPAN&gt;out fields are being populated as well. Yet, the video demonstrates what the question "used" to be, populating from a different field.&lt;/P&gt;&lt;P&gt;Are you seeing both of these?&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172165#M54945</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T20:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172167#M54946</link>
      <description>&lt;P&gt;That was a good suggestion and I tried that but I am getting the same results.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172167#M54946</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T20:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172168#M54947</link>
      <description>&lt;P&gt;I edited the original post as the main concern here is the values that are supposed to be hidden are being used to populate the records.&lt;BR /&gt;&lt;BR /&gt;I used this same table before to populate the total population and now using it for each age group. The values that are being populated are the ones for the total count. I wonder if Indexing has anything to do with it?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172168#M54947</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T20:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172178#M54949</link>
      <description>&lt;P&gt;I agree, it kind of looks like an indexing issue, but I don't know if/where that could be changed with the calculate tool.&lt;/P&gt;&lt;P&gt;I'm at a loss.&amp;nbsp; I've tried what I can to reproduce, but can't.&lt;/P&gt;&lt;P&gt;Thought maybe it was getting confused with the alias (with special characters and all), but doesn't seem to make a difference for me (on 2.9.2).&lt;/P&gt;&lt;P&gt;If it were me, I'd add just the FC and single table to a new Pro project and see if the issue persists.&amp;nbsp; If so, would export the table to a new geodatabase table (maybe even check geometry on the FC), add that and see if it works.&amp;nbsp; Might be some mystery "corruption" in the table or FC somewhere.&lt;/P&gt;&lt;P&gt;(Actually, if it were me, I'd try the arcade by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;as it helps me learn other ways.&amp;nbsp; Also, if the Arcade produces the same results, would defiantly suspect a data issue).&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172178#M54949</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T20:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172185#M54950</link>
      <description>&lt;P&gt;could you try doing the join in the other direction?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172185#M54950</guid>
      <dc:creator>BryndaHatch</dc:creator>
      <dc:date>2022-05-09T20:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172202#M54954</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aam_0-1652132301533.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40951i9C129F0D8E7AE9D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aam_0-1652132301533.png" alt="aam_0-1652132301533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get this error if I do the reverse join.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 21:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172202#M54954</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T21:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172206#M54955</link>
      <description>&lt;P&gt;I've never used Arcade. Curious to know where exactly do I write the code?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 21:47:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172206#M54955</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T21:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172208#M54956</link>
      <description>&lt;P&gt;You can do a "reverse" join, but you can only calculate on the original table, not the joined table, or it will give you errors like you see.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;So, exporting the feature class and table to new geodatabase items, loading the new FC and table into a new project (could be issues with data, table or aprx.), you still have these same issues?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 21:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172208#M54956</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T21:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172213#M54958</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1652133672425.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40956i4FDFAEB418DC6F51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1652133672425.png" alt="RhettZufelt_0-1652133672425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/" target="_self"&gt;Arcade Function Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 22:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172213#M54958</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T22:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172215#M54959</link>
      <description>&lt;P&gt;This is what I am going to do next. I feel the project file might be corrupted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 22:00:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172215#M54959</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T22:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172234#M54960</link>
      <description>&lt;P&gt;So I just exported the filtered results to a separate table and then did the join based on the new table. It worked.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 23:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172234#M54960</guid>
      <dc:creator>aam</dc:creator>
      <dc:date>2022-05-09T23:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172240#M54961</link>
      <description>&lt;P&gt;Good to hear.&lt;/P&gt;&lt;P&gt;Sometimes there is no "answer", so you just trial and error until you find out where the issue is.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 23:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/problem-with-field-calculator/m-p/1172240#M54961</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T23:15:34Z</dc:date>
    </item>
  </channel>
</rss>

