<?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: Field Calculator completing without error, but no change to Feature in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-completing-without-error-but-no/m-p/183535#M8143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select a few records in the table, and run the calculation.&amp;nbsp; Does it work for a few?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Dec 2018 02:08:53 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-12-08T02:08:53Z</dc:date>
    <item>
      <title>Field Calculator completing without error, but no change to Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-completing-without-error-but-no/m-p/183533#M8141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;A href="https://community.esri.com/t5/tag/arcgispro 2.2./tg-p"&gt;#arcgispro 2.2.&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/tag/fieldcalculator/tg-p"&gt;#fieldcalculator&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attempting a research project in which I am seeking to categorize a municipality's Property Use Codes as Generalized Land Uses.&amp;nbsp; For example, "AGRII - Developed Farmland" and "INDGR - Grain Elevator" are both "Agricultural" land uses.&amp;nbsp; I have created a new field "Land Use Category" and used the following code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;PLY_AssessmentParcels_LandUseCategory = MyFunction(!Assessment_Parcels_CSV_csv_Property_Use_Code!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;def MyFunction(s):&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if ("AGRII" or "INDGR") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Agricultural"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("VRES2" or "VRES1" or "VINDU" or "VCOMM" or "VAPRK" or "VAGRI" or "CNVAC") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Vacant"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("STATR" or "SKYWK" or "RAILR" or "ARPRT" or "CMPST" or "CMPSP") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Transportation"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("RESTR" or "RESSU" or "RESSS" or "RESSD" or "RESRM" or "RESRH" or "RESOT" or "RESMU" or "RESMH" or "RESMC" or "RESMB" or "RESGC" or "RESAP" or "RESDU" or "RESAM" or "CNAPT" or "CNCMP" or "CNDRH" or "CNRES") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Residential"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("CMCMU" or "CMFBK" or "CMHBH" or "CMHHO" or "CMHMO" or "CMMRH" or "CMOFF" or "CMOGV" or "CMOMC" or "CMRCS" or "CMRCV" or "CMRNS" or "CMRRE" or "CMRRS" or "CMRSM" or "SMRST" or "CMRWC" or "CMVCD" or "CMVSR") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Commercial"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("CNCOM" or "REFRL" or "CMSTP") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Other"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("PIRST" or "PIRRT" or "PIRRI" or "PIRPO" or "PIRPK" or "PIRMU" or "PIRGC" or "PIRCC" or "PIRBA" or "PIRAR" or "PIEBM" or "PIECS" or "PIETC") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Recreational"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("CNIND" or "HYDSS" or "INMHM" or "INMLM" or "INMMI" or "INMMU" or "INWSC" or "INWWH" or "MTSSS" or "TRAPI") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Industrial"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;elif ("PIEMA" or "PIICH" or "PIIDC" or "PIIGC" or "PIIHO" or "PIIMB" or "PIINH" or "PIIPF" or "PIIRE" or "PIISC" or "PIIUC" or "PIMCE" or "PIMFH" or "PIMLI") in s:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return "Institutional"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I run the above code, I often received an error stating "Cannot acquire lock".&amp;nbsp; After restarting ArcGIS Pro, I can usually get one good run out in which the process completes successfully in about 40 seconds.&amp;nbsp; The problem is that nothing has changed in my attribute table.&amp;nbsp; Please note, I'm dealing with about 212,000 records.&amp;nbsp; The file is stored in a .gdb and I have re-created the feature class in the .gdb with the same issues.&amp;nbsp; System specs are very reasonable (i7 7800k, 32gb ram, GTX 1080i, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2018 20:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-completing-without-error-but-no/m-p/183533#M8141</guid>
      <dc:creator>ConorSmith1</dc:creator>
      <dc:date>2018-12-07T20:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator completing without error, but no change to Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-completing-without-error-but-no/m-p/183534#M8142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without knowing how s is defined, it's hard saying.&amp;nbsp; Instead of the&amp;nbsp; else: return, I'd use else:pass...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2018 00:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-completing-without-error-but-no/m-p/183534#M8142</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-12-08T00:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator completing without error, but no change to Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-completing-without-error-but-no/m-p/183535#M8143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select a few records in the table, and run the calculation.&amp;nbsp; Does it work for a few?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2018 02:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-completing-without-error-but-no/m-p/183535#M8143</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-12-08T02:08:53Z</dc:date>
    </item>
  </channel>
</rss>

