<?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: Using Copy tool in python window deletes output file geodatabse in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1114524#M47563</link>
    <description>&lt;P&gt;Upgraded to Pro 2.8.2, still on 10.7.1 Oracle 19&lt;/P&gt;&lt;P&gt;Testing with a feature dataset:&amp;nbsp; If I include the "FEATUREDATASET" parameter, the feature dataset and contents successfully copy, but the feature classes now have a "_1" appended to the end of the name.&amp;nbsp; If I omit the "FEATUREDATASET" parameter, the copy is also successful and names remain the same as found in the enterprise GDB.&lt;/P&gt;&lt;P&gt;Testing with attachment:&amp;nbsp; copy was successful&lt;/P&gt;&lt;P&gt;We have slightly different environments and certainly different data so you might need to engage ESRI support to take a closer look&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 15:53:52 GMT</pubDate>
    <dc:creator>Steve_Salas</dc:creator>
    <dc:date>2021-11-05T15:53:52Z</dc:date>
    <item>
      <title>Using Copy tool in python window deletes output file geodatabse</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1113591#M47452</link>
      <description>&lt;P&gt;ArcPRO 2.8.3&lt;/P&gt;&lt;P&gt;Origin database:&amp;nbsp; Oracle 12CR1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Destination: file geodatabase&lt;/P&gt;&lt;P&gt;Error: tool fails and output file geodatabase is automatically deleted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is copy of output form python using copy tool:&lt;/P&gt;&lt;P&gt;arcpy.management.Copy("C:\\Users\\cstiwint\\appdata\\Roaming\\Esri\\Desktop10.6\\ArcCatalog\\SDE User - oak-db-test-ENERGY.sde\\ENERGY.Bldgs","I:\\Chris\\Working\\one.gdb")&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6201, in Copy&lt;BR /&gt;raise e&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6198, in Copy&lt;BR /&gt;retval = convertArcObjectToPythonObject(gp.Copy_management(*gp_fixargs((in_data, out_data, data_type, associated_data), True)))&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;The connection property set was missing a required property or the property value was unrecognized.&lt;BR /&gt;ERROR 000260: Failed to copy C:\Users\cstiwint\appdata\Roaming\Esri\Desktop10.6\ArcCatalog\SDE User - oak-db-test-ENERGY.sde\ENERGY.Bldgs into I:\Chris\Working\one.gdb&lt;BR /&gt;Failed to execute (Copy)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1113591#M47452</guid>
      <dc:creator>ChrisStiwinter1</dc:creator>
      <dc:date>2021-11-03T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Copy tool in python window deletes output file geodatabse</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1113612#M47455</link>
      <description>&lt;P&gt;I think this will be successful if the output path includes the name of the feature class rather than just the FGDB you are copying into.&amp;nbsp; Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.management.Copy("C:\\Users\\cstiwint\\appdata\\Roaming\\Esri\\Desktop10.6\\ArcCatalog\\SDE User - oak-db-test-ENERGY.sde\\ENERGY.Bldgs","I:\\Chris\\Working\\one.gdb\\&lt;STRONG&gt;Bldgs&lt;/STRONG&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried it this way &lt;EM&gt;first&amp;nbsp;&lt;/EM&gt;with my own data (Ent. GDB is 10.7.1 on Oracle 19) and was successful.&amp;nbsp; Then I noticed you only specified the output FGDB with the second parameter.&amp;nbsp; I tried that and it does delete the output FGDB.&amp;nbsp; I have the option set to "True" overwrite existing output datasets... so you could try turning that off as well if it is set in your Geoprocessing options and at least it might not delete your FGDB... and then failing!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 14:41:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1113612#M47455</guid>
      <dc:creator>Steve_Salas</dc:creator>
      <dc:date>2021-11-03T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Copy tool in python window deletes output file geodatabse</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1113621#M47456</link>
      <description>&lt;P&gt;Thanks for the reply Steven.&amp;nbsp; &amp;nbsp;Your answer did correct the issue of deleting out the file geodatabase but i am still running into issues with this tool..&lt;/P&gt;&lt;P&gt;A few things-&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; If the feature class has any attachments then the tool still seems to fail&amp;nbsp; Error 000260&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; If I run the tool for an entire dataset (and include FEATUREDATASET as a parameter the tool fails with underlying DBMS error (ORA-01790).&lt;/P&gt;&lt;P&gt;Any ideas are much appreciated...&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 15:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1113621#M47456</guid>
      <dc:creator>ChrisStiwinter1</dc:creator>
      <dc:date>2021-11-03T15:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Copy tool in python window deletes output file geodatabse</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1114524#M47563</link>
      <description>&lt;P&gt;Upgraded to Pro 2.8.2, still on 10.7.1 Oracle 19&lt;/P&gt;&lt;P&gt;Testing with a feature dataset:&amp;nbsp; If I include the "FEATUREDATASET" parameter, the feature dataset and contents successfully copy, but the feature classes now have a "_1" appended to the end of the name.&amp;nbsp; If I omit the "FEATUREDATASET" parameter, the copy is also successful and names remain the same as found in the enterprise GDB.&lt;/P&gt;&lt;P&gt;Testing with attachment:&amp;nbsp; copy was successful&lt;/P&gt;&lt;P&gt;We have slightly different environments and certainly different data so you might need to engage ESRI support to take a closer look&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-copy-tool-in-python-window-deletes-output/m-p/1114524#M47563</guid>
      <dc:creator>Steve_Salas</dc:creator>
      <dc:date>2021-11-05T15:53:52Z</dc:date>
    </item>
  </channel>
</rss>

