<?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 Which Calculate Field expression_type should be used? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/which-calculate-field-expression-type-should-be/m-p/601088#M19970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I discovered today that VB syntax is not working in the x64 processor when I run Calculate Field. I get this error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: CalculateField lyr XXVAL 1 VB #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000989: Tool CalculateField cannot use VB expressions for service&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it looks like if I want my tools to run in x64 arcpy, I must avoid the default VB parser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know which is better to use: the "PYTHON" or "PYTHON_9.3" parser? I'm wondering if there is any performance or compatibility benefit for using "PYTHON" if you don't need to access shape properties. I would think PYTHON_9.3 would be more efficient as it returns objects instead of string representations. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm hoping someone on the geoprocessing team can give us advice so we can write CalculateValue expressions in a way that will be the most efficient and forward-compatible...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 16:46:00 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2013-03-27T16:46:00Z</dc:date>
    <item>
      <title>Which Calculate Field expression_type should be used?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/which-calculate-field-expression-type-should-be/m-p/601088#M19970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I discovered today that VB syntax is not working in the x64 processor when I run Calculate Field. I get this error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: CalculateField lyr XXVAL 1 VB #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000989: Tool CalculateField cannot use VB expressions for service&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it looks like if I want my tools to run in x64 arcpy, I must avoid the default VB parser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know which is better to use: the "PYTHON" or "PYTHON_9.3" parser? I'm wondering if there is any performance or compatibility benefit for using "PYTHON" if you don't need to access shape properties. I would think PYTHON_9.3 would be more efficient as it returns objects instead of string representations. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm hoping someone on the geoprocessing team can give us advice so we can write CalculateValue expressions in a way that will be the most efficient and forward-compatible...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/which-calculate-field-expression-type-should-be/m-p/601088#M19970</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-03-27T16:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Which Calculate Field expression_type should be used?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/which-calculate-field-expression-type-should-be/m-p/601089#M19971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PYTHON_9.3 is the way to go.&amp;nbsp; The "9.3" python processor returns lists instead of enumerators, and numerous other benefits over the 9.2 processor (I'll ask around and see if I can get a list of these 'other' benefits, but we are going to have to step into the way-back machine and rummage around thru the muck).&amp;nbsp; I don't have any performance numbers, but the 9.3 parser will be faster.&amp;nbsp; Personally, I wish that the PYTHON_9.3 was the default parser for Calculate Field and Calculate Value, but deeply knotted technical issues prevented us from doing that at 10.0 (I think it might be possible now).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 17:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/which-calculate-field-expression-type-should-be/m-p/601089#M19971</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2013-03-27T17:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Which Calculate Field expression_type should be used?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/which-calculate-field-expression-type-should-be/m-p/601090#M19972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Dale -- appreciate the guidance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do plan to change the default, please recommend that the online help for Calculate Field starts to warn us now! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 21:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/which-calculate-field-expression-type-should-be/m-p/601090#M19972</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-03-27T21:06:45Z</dc:date>
    </item>
  </channel>
</rss>

