<?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 Copying files from one GDB to another with error reporting. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/copying-files-from-one-gdb-to-another-with-error/m-p/675717#M52317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was hoping someone here could help me! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to write a script that will allow me to transfer files from one GDB to another, excluding lines, and generate an error report in the process. In the arcpy module I've tried using ListFeatureClasses, Describe, and CopyFeatures but I haven't really been able to get anywhere. I'd appreciat if someone could point me in the right direction!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 01:44:56 GMT</pubDate>
    <dc:creator>JohnEhlen</dc:creator>
    <dc:date>2014-03-10T01:44:56Z</dc:date>
    <item>
      <title>Copying files from one GDB to another with error reporting.</title>
      <link>https://community.esri.com/t5/python-questions/copying-files-from-one-gdb-to-another-with-error/m-p/675717#M52317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was hoping someone here could help me! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to write a script that will allow me to transfer files from one GDB to another, excluding lines, and generate an error report in the process. In the arcpy module I've tried using ListFeatureClasses, Describe, and CopyFeatures but I haven't really been able to get anywhere. I'd appreciat if someone could point me in the right direction!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 01:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copying-files-from-one-gdb-to-another-with-error/m-p/675717#M52317</guid>
      <dc:creator>JohnEhlen</dc:creator>
      <dc:date>2014-03-10T01:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copying files from one GDB to another with error reporting.</title>
      <link>https://community.esri.com/t5/python-questions/copying-files-from-one-gdb-to-another-with-error/m-p/675718#M52318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Didn't have time to test it but something like this should work...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

# Set input and output FGDBs
inFGDB = "in.gdb"
outFGDB = "out.gdb"


# Loop through inFGDB
arcpy.env.workspace = inFGDB
for fc in arcpy.arcpy.ListFeatureClasses():


&amp;nbsp;&amp;nbsp;&amp;nbsp; # Describe to get type
&amp;nbsp;&amp;nbsp;&amp;nbsp; dscFC = arcpy.Describe(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcType = dscFC.shapeType
&amp;nbsp;&amp;nbsp;&amp;nbsp; print(fcType)


&amp;nbsp;&amp;nbsp;&amp;nbsp; # Don't get line fcs
&amp;nbsp;&amp;nbsp;&amp;nbsp; if not fcType == "Polyline":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Copy fc to outFGDB
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Copy "+inFGDB+"/"+fc+" to "+outFGDB+"/"+fc+" -- "+fcType+"\n")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Copy_management(inFGDB+"/"+fc, outFGDB+"/"+fc)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copying-files-from-one-gdb-to-another-with-error/m-p/675718#M52318</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2021-12-12T04:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copying files from one GDB to another with error reporting.</title>
      <link>https://community.esri.com/t5/python-questions/copying-files-from-one-gdb-to-another-with-error/m-p/675719#M52319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will you by any chance be using these file geodatabase feature classes as a data source for ArcGIS Server (AGS) pre10.1?&amp;nbsp; I ask because AGS&amp;nbsp; pre10.1 definitely put locks on the feature classes so you would get an error if you copied the feature class due to these locks.&amp;nbsp; If this is the case, you probably would need to perform truncate and append operations as that process bypasses AGS locks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copying-files-from-one-gdb-to-another-with-error/m-p/675719#M52319</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-03-10T15:28:18Z</dc:date>
    </item>
  </channel>
</rss>

