<?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: Python, CopyFeatures in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399032#M70115</link>
    <description>&lt;P&gt;import arcpy, os, sys&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"Database Connections\Server - sdeVector.sde\sdeVector.SDEDATAOWNER.Administrative"&lt;/P&gt;&lt;P&gt;arcpy.management.CopyFeatures("sdeVector.SDEDATAOWNER.MunicipalArea", r"C:\Datafiles\GISPro_GeoDatabase\Local_Basemap.gdb\MunicipalArea")&lt;/P&gt;&lt;P&gt;print("Done")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Administrative" is the subfolder or dataset on the server, and I created a dataset on the file geodatabase with the same name.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 14:36:02 GMT</pubDate>
    <dc:creator>Williams_Gregory</dc:creator>
    <dc:date>2024-03-21T14:36:02Z</dc:date>
    <item>
      <title>Python, CopyFeatures</title>
      <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399025#M70113</link>
      <description>&lt;P&gt;I'm trying to copy some feature layers from an SQL server to a file geodatabase on my C drive.&amp;nbsp; The problem I'm running into is when there are some of the feature layers within a dataset on the server and I try to copy the file(s) to a dataset folder on the file geodatabase.&amp;nbsp; I does working work when there are no dataset folders.&lt;/P&gt;&lt;P&gt;It seems like the "arcpy.management.CopyFeatures()" function doesn't like working with datasets.&amp;nbsp; I keep getting the following error message:&lt;/P&gt;&lt;P&gt;ERROR 000354: The name contains invalid characters&lt;BR /&gt;Failed to execute (CopyFeatures).&lt;/P&gt;&lt;P&gt;Is there a different function for datasets?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 14:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399025#M70113</guid>
      <dc:creator>Williams_Gregory</dc:creator>
      <dc:date>2024-03-21T14:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Python, CopyFeatures</title>
      <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399027#M70114</link>
      <description>&lt;P&gt;can you provide the input and output paths?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00351-00375-000354.htm" target="_blank"&gt;000354: The name contains invalid characters.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;databases etc may have their own acceptable limits regarding names&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 14:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399027#M70114</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-03-21T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python, CopyFeatures</title>
      <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399032#M70115</link>
      <description>&lt;P&gt;import arcpy, os, sys&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"Database Connections\Server - sdeVector.sde\sdeVector.SDEDATAOWNER.Administrative"&lt;/P&gt;&lt;P&gt;arcpy.management.CopyFeatures("sdeVector.SDEDATAOWNER.MunicipalArea", r"C:\Datafiles\GISPro_GeoDatabase\Local_Basemap.gdb\MunicipalArea")&lt;/P&gt;&lt;P&gt;print("Done")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Administrative" is the subfolder or dataset on the server, and I created a dataset on the file geodatabase with the same name.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 14:36:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399032#M70115</guid>
      <dc:creator>Williams_Gregory</dc:creator>
      <dc:date>2024-03-21T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python, CopyFeatures</title>
      <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399036#M70116</link>
      <description>&lt;P&gt;There are several tools available for moving data around, maybe give &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-features.htm" target="_blank"&gt;Export Features (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt; a try.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 14:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399036#M70116</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-03-21T14:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python, CopyFeatures</title>
      <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399150#M70117</link>
      <description>&lt;P&gt;Tried the export function, but it didn't work.&amp;nbsp; Keeps giving me an error message about the folder(or file?) already existing.&amp;nbsp; But it's not there when I click refresh in ArcCatalog.&lt;/P&gt;&lt;P&gt;ERROR 000725: Output Feature Class: Dataset C:\Datafiles\GISPro_GeoDatabase\Local_Basemap.gdb\Administrative already exists.&lt;BR /&gt;Failed to execute (ExportFeatures).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 17:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399150#M70117</guid>
      <dc:creator>Williams_Gregory</dc:creator>
      <dc:date>2024-03-21T17:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python, CopyFeatures</title>
      <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399706#M70130</link>
      <description>&lt;P&gt;What about using feature class to feature class?&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/conversion/feature-class-to-feature-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.1/tool-reference/conversion/feature-class-to-feature-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 16:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1399706#M70130</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2024-03-22T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python, CopyFeatures</title>
      <link>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1410878#M70357</link>
      <description>&lt;P&gt;Sorry for the delay with an update, I was able to get the datasets updated.&amp;nbsp; What I did was delete the old dataset folders and their contents, then re-create the empty dataset folders.&amp;nbsp; And finally use the arcpy.management.CopyFeatures function for each feature layer in each dataset.&amp;nbsp; It does take a long to run this update, but it does work so i will live with it.&lt;/P&gt;&lt;P&gt;Thanks for all the suggestions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 13:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-copyfeatures/m-p/1410878#M70357</guid>
      <dc:creator>Williams_Gregory</dc:creator>
      <dc:date>2024-04-17T13:17:45Z</dc:date>
    </item>
  </channel>
</rss>

