<?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: VB script not working on 64 bit machine? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232590#M18014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Touché! And yes I will be rewriting in Python obviously but will be on leave from work beginning in a couple of weeks and simply do not have the time to. Will make for a fun project when I return:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2018 15:14:40 GMT</pubDate>
    <dc:creator>TaraDeRosa</dc:creator>
    <dc:date>2018-08-29T15:14:40Z</dc:date>
    <item>
      <title>VB script not working on 64 bit machine?</title>
      <link>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232587#M18011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a python script containing calculate field processes that use VB script to achieve this. The script ran fine on my old 32 bit machine but after upgrading to 64 bit, it appears as though it doesn't work, I get the following error message:-&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 000989: Tool CalculateField cannot use VB expressions for services&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking on some forums it looks like I need to change all of my VB expressions to python, but there are an awful lot so I was wondering whether it is possible somehow to run the script in 32 bit mode? Is that an option?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a scheduled task which runs a .bat file overnight that runs the py file, but not sure how I could stipulate for it to run in 32 bit mode, if that's even possible?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 08:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232587#M18011</guid>
      <dc:creator>ChrisBuckmaster1</dc:creator>
      <dc:date>2014-08-14T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: VB script not working on 64 bit machine?</title>
      <link>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232588#M18012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an old article however&amp;nbsp;I recently ran into this issue and wanted to post a workaround. In lieu of rewriting code in Python, I was able to change my Python scripts to continue to run in 32-bit mode. Per&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/171670"&gt;https://community.esri.com/thread/171670&lt;/A&gt;, you&amp;nbsp;can get a python script to run as 32-bit by following the below steps:&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Right-click on your script in Windows Explorer &amp;gt; Open With &amp;gt; Choose Default Program&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Browse to the python.exe file located under the 32-bit installation (i.e. C:\Python27\ArcGIS10.4\python.exe)&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Check the option 'Always use the selected program to open this kind of file'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 32-bit IDLE can be found here if you are used to working in IDLE:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;C:\Python27\ArcGIS10.4\Lib\idlelib\idle.bat&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:19:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232588#M18012</guid>
      <dc:creator>TaraDeRosa</dc:creator>
      <dc:date>2018-08-29T14:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: VB script not working on 64 bit machine?</title>
      <link>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232589#M18013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sooner or later you'll fully migrate into the 64 bit world with ArcGIS Pro and Python 3.x. Why not re-write the vb portion into Python?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232589#M18013</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-08-29T14:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: VB script not working on 64 bit machine?</title>
      <link>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232590#M18014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Touché! And yes I will be rewriting in Python obviously but will be on leave from work beginning in a couple of weeks and simply do not have the time to. Will make for a fun project when I return:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/vb-script-not-working-on-64-bit-machine/m-p/232590#M18014</guid>
      <dc:creator>TaraDeRosa</dc:creator>
      <dc:date>2018-08-29T15:14:40Z</dc:date>
    </item>
  </channel>
</rss>

