<?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: Calculate Field Returning Error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculate-field-returning-error/m-p/630180#M49044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks once again Darren. This solved my issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2011 14:36:37 GMT</pubDate>
    <dc:creator>MikeMacRae</dc:creator>
    <dc:date>2011-08-29T14:36:37Z</dc:date>
    <item>
      <title>Calculate Field Returning Error</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-returning-error/m-p/630178#M49042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all. I have been having issues with running the Calculate Field tool in python. I have an older script that I used for the first time in a while and it was throwing the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ERROR 999999: Error executing function.&lt;BR /&gt;Expected end of statement&lt;BR /&gt;Failed to execute (CalculateField).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a simple model using only the calculate field, set up a ploygon feature class with a field called "SITE" and exported to python. I ran it again, and the same error came up. I haven't been able to find a solution on the net. Can anyone suggest what I may be missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
# Local variables:
TESTFC = "Z:\\Figure_Sourcing\\Figures\\Geodatabase\\TESTGDB.gdb\\TESTFC"

# Process: Calculate Field
arcpy.CalculateField_management(TESTFC, "SITE", "D01 Site", "VB", "")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-returning-error/m-p/630178#M49042</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2021-12-12T02:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Returning Error</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-returning-error/m-p/630179#M49043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"To calculate strings to text or character fields, in the dialog box the string must be double-quoted ("string"), or in scripting, the double-quoted string must also be encapsulated in single quotes ('"string"')."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - from &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000004m000000"&gt;CalculateField help&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 16:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-returning-error/m-p/630179#M49043</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2011-08-26T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Returning Error</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-returning-error/m-p/630180#M49044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks once again Darren. This solved my issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 14:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-returning-error/m-p/630180#M49044</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2011-08-29T14:36:37Z</dc:date>
    </item>
  </channel>
</rss>

