<?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: copy feature dataset to feature dataset in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67773#M382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 'print fclist'. It looks like there's nothing there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there's something fishy going on. You should get an error at 'env.workspace' since you haven't imported env.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2016 22:33:08 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2016-12-09T22:33:08Z</dc:date>
    <item>
      <title>copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67772#M381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="280323" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/280323_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="280324" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/280324_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;Every script I've tried isn't able to copy the feature dataset in the top image&amp;nbsp;to the bottom feature dataset (in an SDE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's probably something simple, but is there a known function for this? I can't change anything in the SDE as I don't have administrative rights to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried &lt;STRONG&gt;Copy_management&lt;/STRONG&gt;. But, here the in_data and out_data variables must have the same file extension to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried &lt;STRONG&gt;CopyFeatures_management.&amp;nbsp;&lt;/STRONG&gt;Here's the syntax and error message for that:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Import modules&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

&lt;SPAN class="comment token"&gt;# set workspace&lt;/SPAN&gt;
env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"T:\Departments\E911\Transfer Files\E911WeeklyUpdate\E911WeeklyUpdate.gdb"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#create a list of feature classes in the current workspace&lt;/SPAN&gt;
fclist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#copy each feature class to a fgdb &lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fc &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fclist&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcdesc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;"Database Connections\
&amp;nbsp;&amp;nbsp;&amp;nbsp; Jared to plainfield&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde\gisedit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DBO&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MGU_Will"&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fcdesc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;basename&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="280332" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/280332_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67772#M381</guid>
      <dc:creator>JaredPilbeam1</dc:creator>
      <dc:date>2021-12-10T22:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67773#M382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 'print fclist'. It looks like there's nothing there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there's something fishy going on. You should get an error at 'env.workspace' since you haven't imported env.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 22:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67773#M382</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-12-09T22:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67774#M383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Darren.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I scrapped that script any tried arcpy.Copy_management. Basically, I'm trying to replace a feature dataset within an sde (here: plainfield.sde) with a dataset from a local gdb, as the features change weekly. The rewritten script below gets an error in the part of the script that attempts to copy from the local gdb (E911WeeklyUpdate.gdb\MGU_Will) to the plainfield.sde. Can you write to an sde? I haven't read anywhere that you can't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/281713_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/281744_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67774#M383</guid>
      <dc:creator>JaredPilbeam1</dc:creator>
      <dc:date>2016-12-12T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67775#M384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to look at 2-way replication, if you haven't already.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/replication-types.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/replication-types.htm"&gt;Replication types—ArcGIS Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 17:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67775#M384</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-12-12T17:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67776#M385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, my pseudocode is misleading. Let me clarify a bit more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;I’m trying to copy a dataset from a local gdb to an sde. This dataset already exists in the sde—I just need to update it with the dataset from the local gdb. There’s a schema lock error. I don’t have the database open and the ‘Jared to plainfield.sde’ version used in this script is a copy of the main sde called ‘ims to Plainfield’. But, I’m not the administrator and surely there are other GIS people in the building using the sde. I’m only using the ‘Jared’ version to practice run this script, then I want to use it on the ‘ims to Plainfield.sde’. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 18:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67776#M385</guid>
      <dc:creator>JaredPilbeam1</dc:creator>
      <dc:date>2016-12-12T18:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67777#M386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the Feature Dataset in sde Registered as Versioned? If not, you can look into running the "Truncate Table" tool on the Feature Classes in the sde gdb and then loading data from the File gdb features classes into the empty FCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try disconnecting all connections to the sde geodatabase in the script and execute the rest as you are doing now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67777#M386</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2016-12-12T19:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67778#M387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Versions in an Enterprise Geodatabase refers to a completely different concept. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I assume what you are referring to is the Connection File name (the images attached are too small to see clearly) pointing to a Test env for now, before using it against the Production\main Enterprise gdb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:19:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67778#M387</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2016-12-12T19:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67779#M388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt; But, I’m not the administrator and surely there are other GIS people in the building using the sde.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you are not the administrator for the sde database, do you know if you have write permissions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re: locks&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/manage-geodatabase-locks.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/manage-geodatabase-locks.htm"&gt;Manage geodatabase locks—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; but again, if you are not the administrator, you may not be able to do much with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67779#M388</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-12-12T19:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67780#M389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no control over the locks, apparently. After right clicking the feature class within the feature dataset, 'locks' is grayed out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the above images made larger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/281827_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/281826_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67780#M389</guid>
      <dc:creator>JaredPilbeam1</dc:creator>
      <dc:date>2016-12-12T19:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67781#M390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These Datasets are owned by DBO, which is a Admin login. You cannot delete these datasets, connected as any other login, other than the Admin (any login which has been granted 'sysadmin' role).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you must look into this aspect first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67781#M390</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2016-12-12T19:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67782#M391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Asrujit,&lt;/P&gt;&lt;P&gt;So, generally speaking, you can't write to an SDE without administrative rights?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67782#M391</guid>
      <dc:creator>JaredPilbeam1</dc:creator>
      <dc:date>2016-12-12T19:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: copy feature dataset to feature dataset</title>
      <link>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67783#M392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you surely can. But from the Image that you attached, it seems that in your sde gdb, an Admin login was used to load\create the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an Enterprise geodatabase, only the Data Owner can delete the data from the geodatabase. Permissions can be given to other users for viewing and editing, but the right to delete the data remains with the owner always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This rule even applies, when the Data has been created using a Non-Admin login and then an Admin tries to delete it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/copy-feature-dataset-to-feature-dataset/m-p/67783#M392</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2016-12-12T19:57:04Z</dc:date>
    </item>
  </channel>
</rss>

