<?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: Standalone Python script to Read MDB on a Server? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232116#M17984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see that you are using 10.1...Have you by chance installed the 64 bit background processing?&amp;nbsp; If so, this will not be able to read any personal gdb's.&amp;nbsp; You will have to force python to run the 32 bit IDLE to read the mdb.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 01:08:06 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-04-12T01:08:06Z</dc:date>
    <item>
      <title>Standalone Python script to Read MDB on a Server?</title>
      <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232115#M17983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got a python script that reads a table in Access and does a Make XY Event Theme, copies data and creates an SDE layer. I'm trying to get it to run in the SQL Server Jobs agent on a schedule.&amp;nbsp; The script works on my desktop, both in ArcCatalog and stand-alone IDLE.&amp;nbsp; However, I'm trying to run it on a server where there is no Access install (Server 2008 R2).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried making an ODBC connection file and using the connection file in python which only partly works.&amp;nbsp;&amp;nbsp; The data copies OK to SDE on the server if I run the script in ArcCatalog.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run on the server using python.exe in SQL server job agent, the job bombs because it can't find the Access table.&amp;nbsp; Same as when I try to run with IDLE.&amp;nbsp; Weird.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to code the connection to the mdb in python so that it knows about the mdb?&amp;nbsp; Otherwise we could install Access on the server, not my favorite idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All using ArcGIS 10.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 22:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232115#M17983</guid>
      <dc:creator>KarenFolger</dc:creator>
      <dc:date>2013-04-11T22:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone Python script to Read MDB on a Server?</title>
      <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232116#M17984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see that you are using 10.1...Have you by chance installed the 64 bit background processing?&amp;nbsp; If so, this will not be able to read any personal gdb's.&amp;nbsp; You will have to force python to run the 32 bit IDLE to read the mdb.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 01:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232116#M17984</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-12T01:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone Python script to Read MDB on a Server?</title>
      <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232117#M17985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, I have not installed any special 64 bit background processing.&amp;nbsp; I'm just using the python.exe to run the script.&amp;nbsp; If anyone knows the code for a connection string inside python for connecting to mdb's let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 13:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232117#M17985</guid>
      <dc:creator>KarenFolger</dc:creator>
      <dc:date>2013-04-15T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone Python script to Read MDB on a Server?</title>
      <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232118#M17986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As Caleb1987 said, Background, and Server as well (64-bit) will not read personal geodatabases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, making an ODBC connection to the .mdb may work. I haven't tested, but the biggest difference in the two workflows you're trying is the 32 vs 64 bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect you'll need to get the 64bit drivers to make this work. This KB article provides a good starting point and download links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/32976"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/32976&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; (make sure you get 64bit links for the Server machine)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232118#M17986</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2013-04-15T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone Python script to Read MDB on a Server?</title>
      <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232119#M17987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I'm not sure what you're saying exactly.&amp;nbsp; The server is a 64-bit machine.&amp;nbsp; I can see the access database through ArcCatalog using the 32-bit drivers.&amp;nbsp; Access is only 32-bit, ArcGIS is only 32-bit.&amp;nbsp; What I cannot see is the access mdb in Python outside of ArcGIS.&amp;nbsp; I have made a odc connection file is ArcCatalog - which works fine in ArcCatalog, however Python isn't recognizing it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232119#M17987</guid>
      <dc:creator>KarenFolger</dc:creator>
      <dc:date>2013-04-15T16:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone Python script to Read MDB on a Server?</title>
      <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232120#M17988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh - you have BOTH Desktop and Server installed the same machine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If thats the case you have both 32 and 64 bit Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the last software you installed was Server, by default Python will be using 64bit. (that is if you simply double click a python script, it'll be executed using 64bit Python).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to explicitly use the 32 bit version of Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See this blog article - &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/11/12/python-scripting-with-64-bit-processing/"&gt;http://blogs.esri.com/esri/arcgis/2012/11/12/python-scripting-with-64-bit-processing/&lt;/A&gt;&lt;SPAN&gt; - while its written for background, its true for Server as well. The short message is: if you have 32 and 64 bit versions of Python installed on the same machine, you should be referencing a specific version when executing your scripts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:03:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232120#M17988</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2013-04-15T17:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone Python script to Read MDB on a Server?</title>
      <link>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232121#M17989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was using the 32-bit call already - here's the line &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\python.exe "D:\Scheduled Scripts\StudySites2SDEodbc.py" which throws&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\management.py"&amp;lt;c/&amp;gt; line 6322&amp;lt;c/&amp;gt; in MakeXYEventLayer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&amp;nbsp; arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&amp;nbsp; ERROR 000732: XY Table: Dataset J:\data\StudySitesDatabase_Be.mdb\ExportAllStudySites does not exist or is not supported&amp;nbsp; Failed to execute (MakeXYEventLayer).&amp;nbsp; Process Exit Code 1.&amp;nbsp; The step failed.,00:00:16,0,0,,,,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, it's visible in ArcCatalog on the server, just not in Python.&amp;nbsp; If anyone knows the code for mdb reads in Python that would be awesome!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/standalone-python-script-to-read-mdb-on-a-server/m-p/232121#M17989</guid>
      <dc:creator>KarenFolger</dc:creator>
      <dc:date>2013-04-15T17:14:12Z</dc:date>
    </item>
  </channel>
</rss>

