<?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 not working in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/append-not-working/m-p/296733#M22920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never mind, figured it out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone else runs into this, the problem was that Cases data source pointed to a mapped drive path to the data "P:\TestCases_Geodatabase.gdb", while the workspace and some other feature classes used the UNC path "\\TestServer\TestCases_Geodatabase.gdb". It's the same location, but apparently ArcGIS is picky about it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2012 15:38:11 GMT</pubDate>
    <dc:creator>Zeke</dc:creator>
    <dc:date>2012-03-30T15:38:11Z</dc:date>
    <item>
      <title>Append not working</title>
      <link>https://community.esri.com/t5/python-questions/append-not-working/m-p/296732#M22919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any ideas why Append is throwing the error below? There are three parcels selected, that I'm trying to append to the Cases feature class. As far as I can tell, there's absolutely nothing that's using Cases. No one else has access to this geodb, so it's not a case of another user, and I'm not doing anything else with it. Using Append from the toolbox works fine. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env&amp;nbsp; env.workspace = r"\\TestServer\TestCases_Geodatabase.gdb"&amp;nbsp; #------------------------------------------------------------------------------- # Append selected parcels to Cases #&amp;nbsp; def AppendParcelsToCases(): &amp;nbsp;&amp;nbsp;&amp;nbsp; input = "Parcel" &amp;nbsp;&amp;nbsp;&amp;nbsp; target = "Cases" &amp;nbsp;&amp;nbsp;&amp;nbsp; schemaType = "NO_TEST"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Append_management(input, target, schemaType) &amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception as e: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError("Error creating case feature! \n" + e.message)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Executing: CreateCase Start Time: Fri Mar 30 11:01:12 2012 Running script CreateCase... Error creating case feature!&amp;nbsp; ERROR 999999: Error executing function. Cannot acquire a lock. Cannot acquire a lock. [The table Cases is being written by another process.] Cannot acquire a lock. [The table Cases is being written by another process.] Failed to execute (Append).&amp;nbsp; Completed script CreateCase... Failed to execute (CreateCase). Failed at Fri Mar 30 11:01:16 2012 (Elapsed Time: 4.00 seconds) &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 15:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-not-working/m-p/296732#M22919</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2012-03-30T15:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Append not working</title>
      <link>https://community.esri.com/t5/python-questions/append-not-working/m-p/296733#M22920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never mind, figured it out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone else runs into this, the problem was that Cases data source pointed to a mapped drive path to the data "P:\TestCases_Geodatabase.gdb", while the workspace and some other feature classes used the UNC path "\\TestServer\TestCases_Geodatabase.gdb". It's the same location, but apparently ArcGIS is picky about it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 15:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-not-working/m-p/296733#M22920</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2012-03-30T15:38:11Z</dc:date>
    </item>
  </channel>
</rss>

