<?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 Field Calculate in Python Script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/field-calculate-in-python-script/m-p/39288#M3113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the field calculator in a stand alone python script. I am trying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;expression = '(!"infield"!)*2'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(inshape,infield,expression,"PYTHON").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting this error: ExecuteError: ERROR 000539: Invalid field "infield".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the syntax is right... any thoughts are greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 23:25:43 GMT</pubDate>
    <dc:creator>AndrewRadford</dc:creator>
    <dc:date>2013-12-03T23:25:43Z</dc:date>
    <item>
      <title>Field Calculate in Python Script</title>
      <link>https://community.esri.com/t5/python-questions/field-calculate-in-python-script/m-p/39288#M3113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the field calculator in a stand alone python script. I am trying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;expression = '(!"infield"!)*2'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(inshape,infield,expression,"PYTHON").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting this error: ExecuteError: ERROR 000539: Invalid field "infield".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the syntax is right... any thoughts are greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 23:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculate-in-python-script/m-p/39288#M3113</guid>
      <dc:creator>AndrewRadford</dc:creator>
      <dc:date>2013-12-03T23:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculate in Python Script</title>
      <link>https://community.esri.com/t5/python-questions/field-calculate-in-python-script/m-p/39289#M3114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;check the examples in calculatefield_management, I think your double quotes are wrong in the expression&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 03:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculate-in-python-script/m-p/39289#M3114</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2013-12-04T03:15:54Z</dc:date>
    </item>
  </channel>
</rss>

