<?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: Tool Calculate Field cannot use VB expression for service in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642121#M21421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justin, yes I meant replace the single quotes with double quotes. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 12:21:50 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2016-09-12T12:21:50Z</dc:date>
    <item>
      <title>Tool Calculate Field cannot use VB expression for service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642118#M21418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a model working in ArcGIS 10.3 that uses a .py script to run through a series of routines. One of them is Calculate Field and I have use Python_9.3 in the code. However, when I try and publish the service on my server I get an error: "Tool Calculate Field cannot use VB expression for service"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code in the .py script. Any ideas where the problem is? I don't have VB anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.CalculateField_management("PopSummary", "PcPop014", '(!Sum_Pop_014T11! / !Sum_Pop_T11! )*100', "PYTHON_9.3")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 10:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642118#M21418</guid>
      <dc:creator>JustinGleeson1</dc:creator>
      <dc:date>2016-09-12T10:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Calculate Field cannot use VB expression for service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642119#M21419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try wrapping your calculate expression in double quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 10:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642119#M21419</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-09-12T10:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Calculate Field cannot use VB expression for service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642120#M21420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI FC,&lt;/P&gt;&lt;P&gt;I tried that. The model itself ran on ArcGIS but once I tried to publish the service the same error came up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code with double quotes below. Perhaps this is not what you meant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.CalculateField_management("PopSummary", "PcPop65p", "'(!Sum_Pop_65pT11! / !Sum_Pop_T11! )*100'", "PYTHON_9.3")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 12:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642120#M21420</guid>
      <dc:creator>JustinGleeson1</dc:creator>
      <dc:date>2016-09-12T12:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Calculate Field cannot use VB expression for service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642121#M21421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justin, yes I meant replace the single quotes with double quotes. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 12:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642121#M21421</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-09-12T12:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Calculate Field cannot use VB expression for service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642122#M21422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FC, that worked out well for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 21:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/tool-calculate-field-cannot-use-vb-expression-for/m-p/642122#M21422</guid>
      <dc:creator>JustinGleeson1</dc:creator>
      <dc:date>2016-09-12T21:07:35Z</dc:date>
    </item>
  </channel>
</rss>

