<?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 in ArcGIS Pro in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437642#M34377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help and input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2019 00:09:17 GMT</pubDate>
    <dc:creator>GIS_geek</dc:creator>
    <dc:date>2019-02-21T00:09:17Z</dc:date>
    <item>
      <title>Feature Class to Feature Class in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437639#M34374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day everyone.&amp;nbsp; I am running this code in ArcPro and receive the following error:&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/437083_Feature Class to Feature Class.JPG" /&gt;&lt;/P&gt;&lt;P&gt;It tells me that my input feature does not exist or is not supported.&amp;nbsp; I have ran this script in python 2.7 and it all works fine.&amp;nbsp; Thank all of you in advance.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#Import ArcPy modules&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env

&lt;SPAN class="comment token"&gt;# Set the workspace&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Database Connections/ADMIN Edit.sde/CustomerServiceFeatures"&lt;/SPAN&gt;
ArcSDE &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace
env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Set local variables&lt;/SPAN&gt;
inFeatures &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"GPS_Meter_CustomerServiceFieldCrew"&lt;/SPAN&gt;
outputLocation &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"X:/Planning/GIS/Meter GPS/GPS Meter Collection/Customer Service/GPS CC&amp;amp;B Joins"&lt;/SPAN&gt;
outputFolderName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"00_00_19"&lt;/SPAN&gt;
outputFolderLocation &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"X:/Planning/GIS/Meter GPS/GPS Meter Collection/Customer Service/GPS CC&amp;amp;B Joins/00_00_19"&lt;/SPAN&gt;
outputDatabase &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"CC&amp;amp;B iPad Meters.gdb"&lt;/SPAN&gt;
outputDatabaseLocation &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"X:/Planning/GIS/Meter GPS/GPS Meter Collection/Customer Service/GPS CC&amp;amp;B Joins/00_00_19/CC&amp;amp;B iPad Meters.gdb"&lt;/SPAN&gt;
outputFeatureClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"GPS_Meter_CS"&lt;/SPAN&gt;
expression &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SERVICEPOINTID IS NULL"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Create folder&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;## UPDATE outputFolderName, outputFolderLocation, AND outputDatabaseLocation&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;##    VARIABLE EVERYTIME THIS PROCESS RUNS WITH CURRENT DATE (MM_DD_YY).&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Creating folder."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateFolder_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outputLocation&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outputFolderName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Create new .gdb&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Creating geodatabase."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateFileGDB_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outputFolderLocation&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outputDatabase&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Allow database to accept attachments.&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Allowing attachments'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;maintainAttachments &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Export feature class geodatabase&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Exporting feature class to feature class"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureClassToFeatureClass_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inFeatures&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outputDatabaseLocation&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outputFeatureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; expression&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Finish&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Done"&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;/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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437639#M34374</guid>
      <dc:creator>GIS_geek</dc:creator>
      <dc:date>2021-12-11T19:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Feature Class in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437640#M34375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could have to do with your your workspace. Pro doesn't like the database connection links from what i gather.&lt;/P&gt;&lt;P&gt;You have to use C:\\Users\\***\\AppData\\Roaming\\Esri\\ArcGISPro\\Favorites\\**sde database**\\**Featuredataset**\\**feature class**. In Pro contents window navigate to the feature class then open Pro paython window drag the feature class to the very bottom python window and that should give you the path and use that for your layer paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aslo you need to use the following below to set paths.&lt;/P&gt;&lt;P&gt;Python treats a backslash (\) as an escape character. I know it worked in 2.7 but not in 3.6 at least that what i have found.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;"c:/temp/streams.shp
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;"c:\\temp\\streams.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;gdb&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt; &lt;/CODE&gt;
&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;"&lt;SPAN class=""&gt;r"c:\temp\&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437640#M34375</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-12T16:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Feature Class in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437641#M34376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your last example should be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;r"c:\temp\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #3d3d3d; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;don't enclose the r in quotes, r precedes the first quote, whether single or double&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2019 00:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437641#M34376</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-16T00:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Feature Class in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437642#M34377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help and input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 00:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437642#M34377</guid>
      <dc:creator>GIS_geek</dc:creator>
      <dc:date>2019-02-21T00:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Feature Class in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437643#M34378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, whenever I am trying to convert one feature class to another feature class I am getting an error (showed in image).Is it because of Chinese&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/504522_Screenshot (105).png" /&gt; character that is not valid or what. I am bit new to these need help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 05:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437643#M34378</guid>
      <dc:creator>KrishanPareek</dc:creator>
      <dc:date>2020-08-26T05:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Feature Class in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437644#M34379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Krishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try removing the space in your output feature class. Instead of "bridge location" try "bridgelocation" or "bridge_location".&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 17:56:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437644#M34379</guid>
      <dc:creator>GIS_geek</dc:creator>
      <dc:date>2020-08-26T17:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Feature Class in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437645#M34380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hector, your solution works..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 06:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/feature-class-to-feature-class-in-arcgis-pro/m-p/437645#M34380</guid>
      <dc:creator>KrishanPareek</dc:creator>
      <dc:date>2020-09-08T06:47:10Z</dc:date>
    </item>
  </channel>
</rss>

