<?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: Converting folder of shape files to geodatabase in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270204#M20828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it's the "D:/GIS/Data/Aug_Files" in this line of code that is causing the problem. &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;arcpy.FeatureClassToGeodatabase_conversion("D:/GIS/Data/Aug_Files", "D:/GIS/PBCO2011/Planning.gdb")&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody is right that you need to put your list of elements in this spot. Another way you can do it is like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = "D:/GIS/Data/Aug_Files"
fcs = arcpy.ListFeatureClasses("*")
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToGeodatabase_conversion(fc, "D:/GIS/PBCO2011/Planning.gdb")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The listFeatureClasses method link in the Help also has a sample of moving shapefiles into a geodatabase using the copyFeatures_management tool. See this link for more information on it: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ListFeatureClasses/000v0000001n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ListFeatureClasses/000v0000001n000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:12:52 GMT</pubDate>
    <dc:creator>StephanieWendel</dc:creator>
    <dc:date>2021-12-11T13:12:52Z</dc:date>
    <item>
      <title>Converting folder of shape files to geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270202#M20826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a folder of 20 shape files and would like to covert folder to geodatabase, the code below will work and list the feature classes, but won't convert to geodatabase.&amp;nbsp; What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; env.workspace = "D:/GIS/Data/Aug_Files"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; fcs = arcpy.ListFeatureClasses("*")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.FeatureClassToGeodatabase_conversion("D:/GIS/Data/Aug_Files", "D:/GIS/PBCO2011/Planning.gdb")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message I get is "Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000732: Input Features: Dataset D:/GIS/Data/Aug_Files does not exist or is not supported .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 23:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270202#M20826</guid>
      <dc:creator>RickWarner</dc:creator>
      <dc:date>2011-08-31T23:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting folder of shape files to geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270203#M20827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rick&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FeatureClassToGeodatabase_conversion get a comma delimited list of feature classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You should build this list from the ListFeatureClasses&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; s = "[ "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s = s + '"' + fc + '"' + " ,"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # delete last comma and close brackets&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s = s[0:len(s) - 1] + " ]"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;have fun&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 04:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270203#M20827</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2011-09-01T04:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting folder of shape files to geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270204#M20828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it's the "D:/GIS/Data/Aug_Files" in this line of code that is causing the problem. &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;arcpy.FeatureClassToGeodatabase_conversion("D:/GIS/Data/Aug_Files", "D:/GIS/PBCO2011/Planning.gdb")&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody is right that you need to put your list of elements in this spot. Another way you can do it is like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = "D:/GIS/Data/Aug_Files"
fcs = arcpy.ListFeatureClasses("*")
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToGeodatabase_conversion(fc, "D:/GIS/PBCO2011/Planning.gdb")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The listFeatureClasses method link in the Help also has a sample of moving shapefiles into a geodatabase using the copyFeatures_management tool. See this link for more information on it: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ListFeatureClasses/000v0000001n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ListFeatureClasses/000v0000001n000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270204#M20828</guid>
      <dc:creator>StephanieWendel</dc:creator>
      <dc:date>2021-12-11T13:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting folder of shape files to geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270205#M20829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Stephanie and Mody, I got Stephanies to work right of way, still trying yours Mody. Again thanks so much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 18:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-folder-of-shape-files-to-geodatabase/m-p/270205#M20829</guid>
      <dc:creator>RickWarner</dc:creator>
      <dc:date>2011-09-01T18:18:01Z</dc:date>
    </item>
  </channel>
</rss>

