<?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: Arcpy - FeatureClassToFeatureClass in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698396#M54150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I can tell from the help, you're right -- it looks like the in and out just require names, while the only parameter requiring a path is the destination. Also looks like there should be forward slashes in the destination path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to export each Feature Class designated by the key to the Feature Dataset designated by the value.&amp;nbsp; Right now I've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for key, value in FCFDdict.iteritems():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination = env.workspace = str(value.replace('\\', '/'))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'destination: ' + destination
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFC = str(os.path.basename(key))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'inFC: ' + inFC
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFCpath = str(key)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'inFCpath: ' + inFCpath
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFC = inFC
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'outFC: ' + outFC
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(inFC, destination, outFC)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which gives me:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148249" alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/148249_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inFCpath is not being used, it's just for my reference to make sure it's correct.&amp;nbsp; Nevertheless, when I uncomment the last line, I'm still getting:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148250" alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/148250_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:23:46 GMT</pubDate>
    <dc:creator>TrilliumLevine1</dc:creator>
    <dc:date>2021-12-12T05:23:46Z</dc:date>
    <item>
      <title>Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698391#M54145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dictionary with a list of feature class paths (keys) and destination feature datasets (values) that I'm trying to use to do a batch FeatureClassToFeatureClass operation with.&amp;nbsp; No matter what I've tried, however, I keep getting the same error when I run the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/147985_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I'm running to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for key, value in FCFDdict.iteritems():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFC = str(key)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination = str(value)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFC = str(os.path.basename(key))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = destination
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(inFC, destination, outFC)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dictionary is populated with unicode strings, and looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
u'C:\\Scripts\\Redefine Projection\\MyGeodatabase.gdb\\FD_A\\infotafeln_1': u'C:\\Scripts\\Redefine Projection\\MyGeodatabase.gdb\\FD_A_redefined', 
u'C:\\Scripts\\Redefine Projection\\MyGeodatabase.gdb\\FD_B\\sielhautproben_2': u'C:\\Scripts\\Redefine Projection\\MyGeodatabase.gdb\\FD_B_redefined', 
u'C:\\Scripts\\Redefine Projection\\MyGeodatabase.gdb\\FD_B\\infotafeln_2': u'C:\\Scripts\\Redefine Projection\\MyGeodatabase.gdb\\FD_B_redefined'
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone out there have any idea what I'm doing wrong here?&amp;nbsp; I've also tried feeding FeatureClassToFeatureClass the key's basename, to no avail.&amp;nbsp; Any feedback is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698391#M54145</guid>
      <dc:creator>TrilliumLevine1</dc:creator>
      <dc:date>2021-12-12T05:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698392#M54146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you put in any print statements to see exactly how the variables are being populated?&amp;nbsp; I'm thinking that a path to a file is expected, but it is not getting added to the variable as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 14:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698392#M54146</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-11-25T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698393#M54147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response, Michael.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed this up a little bit to set the workspace first, and to have it with the correct syntax, see the code below -- extra slashes necessary since they are escape characters in python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for key, value in FCFDdict.iteritems():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination = str(value)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; workspace = arcpy.env.workspace = destination.replace("\\", "\\\\")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFC = str(os.path.basename(key))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFC = str(key)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(inFC, workspace, outFC)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this, I now get an error that tells me that my dataset doesn't exist:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/148243_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it clearly does:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/148247_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, here's a print of my variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/148242_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698393#M54147</guid>
      <dc:creator>TrilliumLevine1</dc:creator>
      <dc:date>2021-12-12T05:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698394#M54148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you give the outputs names? &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm"&gt;Feature Class To Feature Class—Help | ArcGIS for Desktop&lt;/A&gt; &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm"&gt;Feature Class To Feature Class—Help | ArcGIS for Desktop&lt;/A&gt; &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm"&gt;Feature Class To Feature Class—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 15:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698394#M54148</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-25T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698395#M54149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you creating new feature classes in the file geodatabase or trying to overwrite existing feature classes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your destination path has "\\" while your out path has "\".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe out should just be referring to the name of the feature class to be created and not the entire path (At least that's how I read the Help documentation).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 15:29:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698395#M54149</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-11-25T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698396#M54150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I can tell from the help, you're right -- it looks like the in and out just require names, while the only parameter requiring a path is the destination. Also looks like there should be forward slashes in the destination path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to export each Feature Class designated by the key to the Feature Dataset designated by the value.&amp;nbsp; Right now I've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for key, value in FCFDdict.iteritems():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination = env.workspace = str(value.replace('\\', '/'))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'destination: ' + destination
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFC = str(os.path.basename(key))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'inFC: ' + inFC
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFCpath = str(key)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'inFCpath: ' + inFCpath
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFC = inFC
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'outFC: ' + outFC
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(inFC, destination, outFC)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which gives me:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148249" alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/148249_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inFCpath is not being used, it's just for my reference to make sure it's correct.&amp;nbsp; Nevertheless, when I uncomment the last line, I'm still getting:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148250" alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/148250_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698396#M54150</guid>
      <dc:creator>TrilliumLevine1</dc:creator>
      <dc:date>2021-12-12T05:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698397#M54151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is FD_A_redefined a feature dataset?&amp;nbsp; If so, can you try just to perform a feature to feature class conversion to a feature class outside a feature dataset to see if its the feature dataset that is causing the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 16:31:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698397#M54151</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-11-25T16:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698398#M54152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trillium,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem should be that you're trying to export the feature class to a new feature dataset with the same name. Names must be unique within a geodatabase. So in your case you can't have both FD_A\infotafeln_1 and FD_A_redefined\infotafeln_1. You would have to rename the new feature class to another unique name that doesn't exist in the entire geodatabase. To prove this I've provided the code I used to test. You should be able to run this on your machine to confirm. You'll see in the new instance that I add an underscore to the name to make it unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
import unittest


# This will create a geodatabase similar to yours
def CreateUserEnvironment(gdbPath):
&amp;nbsp;&amp;nbsp;&amp;nbsp; gdbContents = [("FD_A", ["infotafeln_1"]), 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("FD_B", ["sielhautproben_2", "infotafeln_2"]), 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("FD_A_redefined", []), 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("FD_B_redefined", [])]
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(gdbPath):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.Delete(gdbPath)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.CreateFileGDB(os.path.dirname(gdbPath), os.path.basename(gdbPath))
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for ds, fcs in gdbContents:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dsPath = arcpy.management.CreateFeatureDataset(gdbPath, ds, arcpy.SpatialReference(3857))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.CreateFeatureclass(dsPath, fc, "POINT", spatial_reference=arcpy.Describe(dsPath).spatialReference)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
def TestWorkflow(gdbPath):
&amp;nbsp;&amp;nbsp;&amp;nbsp; expPath = {"{0}\\FD_A\\infotafeln_1".format(gdbPath):"{0}\\FD_A_redefined".format(gdbPath),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "{0}\\FD_B\\sielhautproben_2".format(gdbPath):"{0}\\FD_B_redefined".format(gdbPath),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "{0}\\FD_B\\infotafeln_2".format(gdbPath):"{0}\\FD_B_redefined".format(gdbPath)}
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for k,v in expPath.items():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Workflow you're currently implementing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Exporting to new feature dataset with same name")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.conversion.FeatureClassToFeatureClass(k, v, os.path.basename(k))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError as e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(e.message)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Workflow I'm suggesting
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Exporting to new feature dataset with different name")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.conversion.FeatureClassToFeatureClass(k, v, os.path.basename(k) + "_")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(arcpy.GetMessages())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError as e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(e.message)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("*"*25 + "\n")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 


if __name__ == "__main__":
&amp;nbsp;&amp;nbsp;&amp;nbsp; gdbPath = os.path.join(os.path.dirname(__file__), "MyData.gdb")
&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateUserEnvironment(gdbPath)
&amp;nbsp;&amp;nbsp;&amp;nbsp; TestWorkflow(gdbPath)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698398#M54152</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2021-12-12T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698399#M54153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that the simplest way I could get your code to work is as follows. You'll see that I'm creating a Guid to give me a unique name for your new feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from os import path
from uuid import uuid4


for k, v in FCFDdict.items():
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcName = "{}_{}".format(*[path.basename(k), str(uuid4()).split("-")[0].upper()])
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.conversion.FeatureClassToFeatureClass(k, v, fcName)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698399#M54153</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2021-12-12T05:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698400#M54154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for for your detailed and lengthy response, I realized that naming problem as I was playing with this.&amp;nbsp; I guess once the FC's are done transferring I'll have to first delete the old origin FD's and then rename the new FC's...annoying, but I guess that's the clearest path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 08:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698400#M54154</guid>
      <dc:creator>TrilliumLevine1</dc:creator>
      <dc:date>2015-11-26T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - FeatureClassToFeatureClass</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698401#M54155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically to get this to work, I used a couple of lines from Freddie's code -- my code now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;workspace = os.path.join(os.path.dirname(__file__), "MyGeodatabase.gdb")
for k, v in FCFDdict.items():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.conversion.FeatureClassToFeatureClass(k, v, os.path.basename(k) + "_trillium")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError as e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(e.message)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-featureclasstofeatureclass/m-p/698401#M54155</guid>
      <dc:creator>TrilliumLevine1</dc:creator>
      <dc:date>2021-12-12T05:23:54Z</dc:date>
    </item>
  </channel>
</rss>

