<?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: Append_management fails, when run with Python on personal GeoDB outside ArcGIS in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714761#M55460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Caleb1987 - thanks for the answer, you are right: It all works when I explicitly use the 32-bit version of Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I just discovered, that FeatureClassToFeatureClass to a personalgeodatabase with ArcCatalog also fails. No Python is involved, I right-click inside a personal geodatabase and choose "import". I get this errormessage:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Messages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: FeatureClassToFeatureClass C:\A\test2\TestX1.gdb\Linie2 C:\A\test2\TestX2.mdb Linie2 # "SHAPE_Length "SHAPE_Length" false true true 8 Double 0 0 ,First,#,C:\A\test2\TestX1.gdb\Linie2,SHAPE_Length,-1,-1" #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Jan 30 08:00:47 2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Jan 30 08:00:48 2013 (Elapsed Time: 1,00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a workaround for this problem too?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has ESRI announced a stop for supporting the .mdb-format with 64-bit? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, I will stop using it to avoid problems and workarounds. Some functions seems to work (i.e. create featureclass), while others do not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Svend&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 05:57:59 GMT</pubDate>
    <dc:creator>SvendMidtgaard</dc:creator>
    <dc:date>2013-01-30T05:57:59Z</dc:date>
    <item>
      <title>Append_management fails, when run with Python on personal GeoDB outside ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714759#M55458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Append_management and GetCount_management fails, when run with Python on personal GeoDB outside ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the script below from a toolbox in ArcCatalog, it works fine. But when I run it from IDLE or from a commandline it fails with this errormessage: "ERROR 000732: Input Rows: Dataset Data1.mdb\TestFC does not exist or is not supported"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I use file geodatabases (.gdb) instead, it works both inside and outside ArcCatalog. It does not matter, whether I use arcgisscripting og arcpy - if I use personal geodatabases it fails outside of ArcCatalog, but works inside.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use ArcGIS10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have a solution or work-around?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for answering - in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Svend&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import os, time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SourceFC = "Data1.mdb\\TestFC"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TargetFC = "Data0.mdb\\TestFC"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#SourceFC = "Data1.gdb\\TestFC"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#TargetFC = "Data0.gdb\\TestFC"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NumRecSource = gp.GetCount_management(SourceFC)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Text = "SourceFC = %s: %i records" %(SourceFC, NumRecSource)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddMessage(Text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print(Text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NumRecTarget = gp.GetCount_management(TargetFC)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Text = "TargetFC = %s: %i records" %(TargetFC, NumRecTarget)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddMessage(Text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print(Text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Append_management(SourceFC, TargetFC, "NO_TEST")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NumRecTarget = gp.GetCount_management(TargetFC)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Text = "TargetFC = %s: %i records" %(TargetFC, NumRecTarget)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddMessage(Text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print(Text)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 12:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714759#M55458</guid>
      <dc:creator>SvendMidtgaard</dc:creator>
      <dc:date>2013-01-28T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Append_management fails, when run with Python on personal GeoDB outside ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714760#M55459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you downloaded the 64-bit background geoprocessing?&amp;nbsp; If you have, when you run a Python script it probably will default to the 64 bit python since that would be the latest version installed.&amp;nbsp; The 64 bit will not work with personal geodatabases.&amp;nbsp; You can force the python version to go use 32 bit for scripts that use personal gdb's by creating a batch file.&amp;nbsp; You can create a text file with a ".bat" extension.&amp;nbsp; Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
start C:\Python27\ArcGIS10.1\python.exe G:\Misc\Scripts\UNMPD_PARCELS.py
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can check which version you are using by putting this print line in your scripts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
print "Running against: {}".format(sys.version)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 32 bit is "C:\Python27\ArcGIS10.1\python.exe".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 64 bit version is in this folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGISx6410.1\python.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That would be my guess as to why it works when you use a file gdb and not personal.&amp;nbsp; Also, if you are 10.1 you should use arcpy, not arcgisscripting.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714760#M55459</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T06:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Append_management fails, when run with Python on personal GeoDB outside ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714761#M55460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Caleb1987 - thanks for the answer, you are right: It all works when I explicitly use the 32-bit version of Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I just discovered, that FeatureClassToFeatureClass to a personalgeodatabase with ArcCatalog also fails. No Python is involved, I right-click inside a personal geodatabase and choose "import". I get this errormessage:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Messages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: FeatureClassToFeatureClass C:\A\test2\TestX1.gdb\Linie2 C:\A\test2\TestX2.mdb Linie2 # "SHAPE_Length "SHAPE_Length" false true true 8 Double 0 0 ,First,#,C:\A\test2\TestX1.gdb\Linie2,SHAPE_Length,-1,-1" #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Jan 30 08:00:47 2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Jan 30 08:00:48 2013 (Elapsed Time: 1,00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a workaround for this problem too?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has ESRI announced a stop for supporting the .mdb-format with 64-bit? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, I will stop using it to avoid problems and workarounds. Some functions seems to work (i.e. create featureclass), while others do not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Svend&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 05:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714761#M55460</guid>
      <dc:creator>SvendMidtgaard</dc:creator>
      <dc:date>2013-01-30T05:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Append_management fails, when run with Python on personal GeoDB outside ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714762#M55461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Has ESRI announced a stop for supporting the .mdb-format with 64-bit? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I imagine it was just an over sight since they don't encourage people to use personal geodatabases and 64-bit geoprocessing is pretty new. You can try this release from microsoft that helps with compatibility between 32-bit and 64-bit but I can't speak to whether this will have any effect on your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.microsoft.com/en-us/download/details.aspx?id=13255"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=13255&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: And it doesn't seem like Esri has any plans on supporting personal geodatabases in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00vp0000002t001324"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00vp0000002t001324&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 12:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-fails-when-run-with-python-on/m-p/714762#M55461</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-01-30T12:24:17Z</dc:date>
    </item>
  </channel>
</rss>

