<?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 Calculate Field in Model Builder Ignores Selection in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/calculate-field-in-model-builder-ignores-selection/m-p/150290#M5077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to execute a tool in model builder whereby I want to perform &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt;&lt;SPAN&gt; on selected records only.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I run &lt;/SPAN&gt;&lt;STRONG&gt;Select by Attribute &lt;/STRONG&gt;&lt;SPAN&gt;and run a query within that tool to select some records.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I then run &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field &lt;/STRONG&gt;&lt;SPAN&gt;on ONLY those selected records.&amp;nbsp; When I run these two, the &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field &lt;/STRONG&gt;&lt;SPAN&gt;ignores the selected records and simply performs the Calculation on all the records.&amp;nbsp; This is only a small part of the whole model, but necessary. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've run the &lt;/SPAN&gt;&lt;STRONG&gt;Select by Attributes &lt;/STRONG&gt;&lt;SPAN&gt;tool individually then gone into the attribute table and verified that the records that I specified were selected correctly.&amp;nbsp; Then I run the &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt;&lt;SPAN&gt; in Model Builder individually and it ignores the selection.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried another test.&amp;nbsp; I cleard out the records in that field and performed the the &lt;/SPAN&gt;&lt;STRONG&gt;Select by Attribute &lt;/STRONG&gt;&lt;SPAN&gt;individually in Model Builder then perform &lt;/SPAN&gt;&lt;STRONG&gt;Field Calculator &lt;/STRONG&gt;&lt;SPAN&gt;manually in the Attribute Table and it&amp;nbsp; runs as expected... performs in the selected records only.&amp;nbsp; Does anybody have any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 12:44:58 GMT</pubDate>
    <dc:creator>JamesGatts</dc:creator>
    <dc:date>2013-01-15T12:44:58Z</dc:date>
    <item>
      <title>Calculate Field in Model Builder Ignores Selection</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-field-in-model-builder-ignores-selection/m-p/150290#M5077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to execute a tool in model builder whereby I want to perform &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt;&lt;SPAN&gt; on selected records only.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I run &lt;/SPAN&gt;&lt;STRONG&gt;Select by Attribute &lt;/STRONG&gt;&lt;SPAN&gt;and run a query within that tool to select some records.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I then run &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field &lt;/STRONG&gt;&lt;SPAN&gt;on ONLY those selected records.&amp;nbsp; When I run these two, the &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field &lt;/STRONG&gt;&lt;SPAN&gt;ignores the selected records and simply performs the Calculation on all the records.&amp;nbsp; This is only a small part of the whole model, but necessary. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've run the &lt;/SPAN&gt;&lt;STRONG&gt;Select by Attributes &lt;/STRONG&gt;&lt;SPAN&gt;tool individually then gone into the attribute table and verified that the records that I specified were selected correctly.&amp;nbsp; Then I run the &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt;&lt;SPAN&gt; in Model Builder individually and it ignores the selection.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried another test.&amp;nbsp; I cleard out the records in that field and performed the the &lt;/SPAN&gt;&lt;STRONG&gt;Select by Attribute &lt;/STRONG&gt;&lt;SPAN&gt;individually in Model Builder then perform &lt;/SPAN&gt;&lt;STRONG&gt;Field Calculator &lt;/STRONG&gt;&lt;SPAN&gt;manually in the Attribute Table and it&amp;nbsp; runs as expected... performs in the selected records only.&amp;nbsp; Does anybody have any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-field-in-model-builder-ignores-selection/m-p/150290#M5077</guid>
      <dc:creator>JamesGatts</dc:creator>
      <dc:date>2013-01-15T12:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field in Model Builder Ignores Selection</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-field-in-model-builder-ignores-selection/m-p/150291#M5078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you connected the output of Select By Attributes as the input to Calculate Field? Selected sets only work with layers (not feature classes).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-field-in-model-builder-ignores-selection/m-p/150291#M5078</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-01-15T15:13:32Z</dc:date>
    </item>
  </channel>
</rss>

