<?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: Feature class to Feature class using python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545618#M42558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Asrujit for the suggestion. I'll give that a try. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 16:42:03 GMT</pubDate>
    <dc:creator>RyanKammerer1</dc:creator>
    <dc:date>2015-07-13T16:42:03Z</dc:date>
    <item>
      <title>Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545612#M42552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature class that has several sql db tables joined to it. It's been my workflow to update values in these tables, and then export the joined feature class over to sde GDB to use for published map services. I'm trying to automate this step using python. Is there a way in Python to open a map document (with the feature class and joined tables), select the feature class and export the feature class to a Geodatabase? Any help would be much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 21:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545612#M42552</guid>
      <dc:creator>RyanKammerer1</dc:creator>
      <dc:date>2015-07-09T21:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545613#M42553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not positive about the join, but you can open a mxd with python using the arcpy.mapping module. It has access to the table of contents, so I would imagine the join would be active while open in python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000000n000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000000n000000"&gt;ArcGIS Help 10.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 21:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545613#M42553</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2015-07-09T21:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545614#M42554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not an answer, but I believe this should have worked. It doesn't. It blanks out all the joined fields in the first layer, which has a join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
arcpy.env.overwriteOutput = True

mxd = arcpy.mapping.MapDocument('C:/junk/junk_map.mxd')

layers = arcpy.mapping.ListLayers(mxd)

arcpy.CopyFeatures_management(layers[0],'C:/junk/FILE_GDB.gdb/copy')&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545614#M42554</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T23:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545615#M42555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know. Thanks for the reply Darren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 21:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545615#M42555</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2015-07-09T21:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545616#M42556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just thought I'd thank those for the feedback so far. I appreciate the suggestions and comments, but I still haven't resolved the issue. I'll keep trying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 15:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545616#M42556</guid>
      <dc:creator>RyanKammerer1</dc:creator>
      <dc:date>2015-07-13T15:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545617#M42557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not much into Python, however you can try creating something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/117096_sample.PNG" style="width: 620px; height: 423px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, create a Python script which will Join the feature class to the different database tables and then Export the output of the Joins as a new Feature Class to the desired SDE geodatabase, for publishing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545617#M42557</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2015-07-13T16:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545618#M42558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Asrujit for the suggestion. I'll give that a try. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545618#M42558</guid>
      <dc:creator>RyanKammerer1</dc:creator>
      <dc:date>2015-07-13T16:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545619#M42559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option you might try in python is &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000064000000"&gt;arcpy.AddJoin&lt;/A&gt;.&amp;nbsp; It works like Join Field but since it operates on in-memory features it works much much faster.&amp;nbsp; I converted a model that used Join Field last week that took approximately 3 hours to run.&amp;nbsp; Now using AddJoin it runs in 2.5 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545619#M42559</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-07-13T19:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Feature class to Feature class using python</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545620#M42560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Brandon, I'll test arcpy.AddJoin out. I have 7&lt;/P&gt;&lt;P&gt;tables joined to the feature class I'm trying to export to SDE and the&lt;/P&gt;&lt;P&gt;script has been running a good hour and a half and its still chewing on the&lt;/P&gt;&lt;P&gt;7th join. Thanks you for the advice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 20:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-using-python/m-p/545620#M42560</guid>
      <dc:creator>RyanKammerer1</dc:creator>
      <dc:date>2015-07-13T20:46:26Z</dc:date>
    </item>
  </channel>
</rss>

