<?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: Calculating Fields in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200446#M15397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Michelle It is really bad form to start multiple related threads in the forum, stick to one thread....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 14:47:14 GMT</pubDate>
    <dc:creator>AnthonyTimpson2</dc:creator>
    <dc:date>2012-05-07T14:47:14Z</dc:date>
    <item>
      <title>Calculating Fields</title>
      <link>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200442#M15393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My program is working up until the CalculateField, because you can see all the responses to script working. What am I missing in the calulate field script? See Below :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import os.path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; os.path.basename ("C:\Users\Michelle\Desktop\GIS\FA_Urbans.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'FA_Urbans.shp'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.AddField_management ("FA_Urbans", "POPSQMI","TEXT", "20")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Result 'FA_Urbans'&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.CalculateField_management ("FA_Urbans","POPSQMI", "!SQMI!/!FID_1!","PYTHON"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the dots it didn't like the calculate field. Every thing is working until then. The field is added and eveything but no calculation. I'm thinking it didn't like text.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200442#M15393</guid>
      <dc:creator>MichelleCouden1</dc:creator>
      <dc:date>2012-05-04T14:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Fields</title>
      <link>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200443#M15394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're missing the very last parentheses...parenthesis... this ---&amp;gt; )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200443#M15394</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-05-04T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Fields</title>
      <link>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200444#M15395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Michelle,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you've copied your script correctly then you are missing a bracket at the end of your line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management ("FA_Urbans","POPSQMI", "!SQMI!/!FID_1!","PYTHON"&lt;/SPAN&gt;&lt;SPAN style="color:#ff0000;"&gt;&lt;STRONG&gt;)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 15:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200444#M15395</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-05-04T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Fields</title>
      <link>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200445#M15396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DUUUHHHH! Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 15:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200445#M15396</guid>
      <dc:creator>MichelleCouden1</dc:creator>
      <dc:date>2012-05-04T15:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Fields</title>
      <link>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200446#M15397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Michelle It is really bad form to start multiple related threads in the forum, stick to one thread....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 14:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-fields/m-p/200446#M15397</guid>
      <dc:creator>AnthonyTimpson2</dc:creator>
      <dc:date>2012-05-07T14:47:14Z</dc:date>
    </item>
  </channel>
</rss>

