<?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: Move SHP to gdb and ArcView license (newbie frustration)!!! in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362520#M28605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would try changing the following section of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Set environment settings
env.workspace = "C:/Users/a391665/Documents/AAAAPERSONALE/rugareto"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:/park", "test4")

# Set local variables
outWorkspace = "c:/park/test4.gdb"


&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Set environment settings
env.workspace = "C:\\Users\\a391665\\Documents\\AAAAPERSONALE\\rugareto"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:\\park", "test4")

# Set local variables
outWorkspace = "c:\\park\\test4.gdb"


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:53:45 GMT</pubDate>
    <dc:creator>ScottBlankenbeckler</dc:creator>
    <dc:date>2021-12-11T16:53:45Z</dc:date>
    <item>
      <title>Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362517#M28602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I need to do is move all the files into an mxd to a newly created gdb, chechking prj, and update mxd reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ArcGIS 10 SP4, license ArcView&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I studied a bit of Python and get familiar with basic, then I copied some written code and pasted all together, attached is the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My frustration is that i can???t even move my shp files to a created gdb, is that because of my ArcView license?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLEASE PLEASE PLEASE HELP&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import system modules
import arcpy
from arcpy import env
import os
 
# Set environment settings
env.workspace = "C:/Users/a391665/Documents/AAAAPERSONALE/rugareto"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:/park", "test4")
 
# Set local variables
outWorkspace = "c:/park/test4.gdb"


# Use ListFeatureClasses to generate a list of shapefiles in the
#&amp;nbsp; workspace shown above.
fcList = arcpy.ListFeatureClasses()
 
# Execute CopyFeatures for each input shapefile
for shapefile in fcList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Determine the new output feature class path and name
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFeatureClass = os.path.join(outWorkspace, shapefile.strip(".shp"))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(shapefile, outFeatureClass)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 14:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362517#M28602</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2012-04-11T14:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362518#M28603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What does the error say (if any)? It shouldn't have anything to do with your licenses, both tools you use are available to ArcView.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: maybe try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.CopyFeatures_management(shapefile, outWorkspace + os.sep + shapefile.rstrip(".shp"))
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362518#M28603</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362519#M28604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the error I get when I run it on Python, even after your edit suggestion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Percorsi.shp does not exist or is not supported Failed to execute (CopyFeatures). "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What does the error say (if any)? It shouldn't have anything to do with your licenses, both tools you use are available to ArcView.&lt;BR /&gt;&lt;BR /&gt;edit: maybe try:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.CopyFeatures_management(shapefile, outWorkspace + os.sep + shapefile.rstrip(".shp"))
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362519#M28604</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2021-12-11T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362520#M28605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would try changing the following section of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Set environment settings
env.workspace = "C:/Users/a391665/Documents/AAAAPERSONALE/rugareto"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:/park", "test4")

# Set local variables
outWorkspace = "c:/park/test4.gdb"


&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Set environment settings
env.workspace = "C:\\Users\\a391665\\Documents\\AAAAPERSONALE\\rugareto"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:\\park", "test4")

# Set local variables
outWorkspace = "c:\\park\\test4.gdb"


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362520#M28605</guid>
      <dc:creator>ScottBlankenbeckler</dc:creator>
      <dc:date>2021-12-11T16:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362521#M28606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Scott I did it, here is the error on Python Window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Percorsi.shp does not exist or is not supported Failed to execute (CopyFeatures). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is what I get from PythonWin interactive window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 312, in RunScript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Users\a391665\Desktop\Script2.py", line 10, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFileGDB_management("C:\\park", "test4")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 9453, in CreateFileGDB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: ERROR 000258: Output C:\park\test4.gdb already exists&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CreateFileGDB).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I would try changing the following section of code&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Set environment settings
env.workspace = "C:/Users/a391665/Documents/AAAAPERSONALE/rugareto"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:/park", "test4")

# Set local variables
outWorkspace = "c:/park/test4.gdb"


&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;to &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Set environment settings
env.workspace = "C:\\Users\\a391665\\Documents\\AAAAPERSONALE\\rugareto"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:\\park", "test4")

# Set local variables
outWorkspace = "c:\\park\\test4.gdb"


&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362521#M28606</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2021-12-11T16:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362522#M28607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;ExecuteError: ERROR 000258: Output C:\park\test4.gdb already exists&lt;BR /&gt;Failed to execute (CreateFileGDB).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go to your C:\park directory and delete the test4.gdb and rerun the script&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 15:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362522#M28607</guid>
      <dc:creator>ScottBlankenbeckler</dc:creator>
      <dc:date>2012-04-11T15:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362523#M28608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a file called "Percorsi.shp"? In the folder "C:/Users/a391665/Documents/AAAAPERSONALE/rugareto"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, after you import os, check if the gdb exists. If it does, delete it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if os.path.exists("c:/park/test4.gdb"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("c:/park/test4.gdb")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362523#M28608</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T16:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362524#M28609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry guys, I noticed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is so precious.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wasn't able to add the "overwrite..." but I deleted the gdb and got it working from the PythonWin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I have this error in the Python Win:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Percorsi.shp does not exist or is not supported Failed to execute (CopyFeatures). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you have a file called "Percorsi.shp"? In the folder "C:/Users/a391665/Documents/AAAAPERSONALE/rugareto"?&lt;BR /&gt;&lt;BR /&gt;Also, after you import os, check if the gdb exists. If it does, delete it.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if os.path.exists("c:/park/test4.gdb"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("c:/park/test4.gdb")
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362524#M28609</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2021-12-11T16:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362525#M28610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luca:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you add some print statements into your code to see that each step completes successfully?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg: print("fcList completed successfully") after the line fcList = arcpy.ListFeatureClasses()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, maybe print out the name of each featureclass in your fcList as there might be other data types in that folder such as a file geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darren's comment to check for the existence of the gdb would be helpful as you would need to delete the gdb each time as it gets created early on in your python script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 15:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362525#M28610</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-04-11T15:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362526#M28611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do have Percorsi.shp but it doesn't seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sorry guys, I noticed.&lt;BR /&gt;&lt;BR /&gt;Your help is so precious.&lt;BR /&gt;I wasn't able to add the "overwrite..." but I deleted the gdb and got it working from the PythonWin.&lt;BR /&gt;Although I have this error in the Python Win:&lt;BR /&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Percorsi.shp does not exist or is not supported Failed to execute (CopyFeatures). &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 15:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362526#M28611</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2012-04-11T15:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362527#M28612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it work in PythonWin, but in the Python Window I get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CreateFileGDB completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outWorkspace completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fcList completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Percorsi.shp does not exist or is not supported Failed to execute (CopyFeatures). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I do have Percorsi.shp but it doesn't seem to work.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 15:59:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362527#M28612</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2012-04-11T15:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362528#M28613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What kind of data is stored in Percorsi.shp? Point? Line? Poly? other? Have you checked to see if the shapefile is corrupt? Also make sure the file is not in use elsewhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 16:00:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362528#M28613</guid>
      <dc:creator>ScottBlankenbeckler</dc:creator>
      <dc:date>2012-04-11T16:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362529#M28614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luca:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you add a print statement for each feature class that you loop through in the specified directory?&amp;nbsp; This might be a clue of a problem with the shapefile name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362529#M28614</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-04-11T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362530#M28615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Percorsi.shp is a polyline shape, I can get it into gdb running the script from PythonWin but from the Python window I get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CreateFileGDB completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outWorkspace completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fcList completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Percorsi.shp does not exist or is not supported Failed to execute (CopyFeatures).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Luca:&lt;BR /&gt;&lt;BR /&gt;Can you add a print statement for each feature class that you loop through in the specified directory?&amp;nbsp; This might be a clue of a problem with the shapefile name.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 06:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362530#M28615</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2012-04-12T06:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362531#M28616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;IMG src="http://www.infoocean.info/avatar2.jpg" /&gt;&lt;SPAN&gt;What does the error say (if any)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 09:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362531#M28616</guid>
      <dc:creator>DaphneEdison</dc:creator>
      <dc:date>2012-04-12T09:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362532#M28617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;IMG src="http://www.infoocean.info/avatar2.jpg" /&gt;What does the error say (if any)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CreateFileGDB completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outWorkspace completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fcList completed successfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Percorsi.shp does not exist or is not supported Failed to execute (CopyFeatures).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 09:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362532#M28617</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2012-04-12T09:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362533#M28618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;here is what I was able to accomplish (thank to your help obviously):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import system modules
import arcpy
from arcpy import env
import os

&amp;nbsp;&amp;nbsp;&amp;nbsp; 
# Set environment settings
env.workspace = "C:\\Users\\a391665\\Documents\\AAAAPERSONALE\\rugareto\\GIS"
print("env.workspace completed successfully")

#check GDB exist
if os.path.exists("c:\\park\\test4.gdb"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("c:\\park\\test4.gdb")

# Execute CreateFileGDB
arcpy.CreateFileGDB_management("C:\\park", "test4")
print("CreateFileGDB completed successfully")

# Set local variables
outWorkspace = "c:\\park\\test4.gdb"
print("outWorkspace completed successfully")

# Iterate
def fcs_in_workspace(workspace):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print os.path.join(workspace, fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToGeodatabase_conversion(fc, outWorkspace)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.CopyFeatures_management(fc, "c:\\park\\test4.gdb")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print os.path.join(workspace, fc, "TO GDB")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for ws in arcpy.ListWorkspaces():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs_in_workspace(os.path.join(workspace, ws))

fcs_in_workspace("C:\\Users\\a391665\\Documents\\AAAAPERSONALE\\rugareto\\GIS")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dunno why, but in the first try I was able to use "arcpy.CopyFeatures_management" but in this script looping through the subfolders I only can get it working with "arcpy.FeatureClassToGeodatabase_conversion"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362533#M28618</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2021-12-11T16:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362534#M28619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luca:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you add the print statement for the feature classes in fcList earlier on in the loop before python hits the error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is where I would put additional print statements for debugging purposes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Execute CopyFeatures for each input shapefile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for shapefile in fcList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; # Determine the new output feature class path and name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; print("The feature class " + shapefile + " now has the focus") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; outFeatureClass = os.path.join(outWorkspace, shapefile.strip(".shp"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; print("The path to the feature class that has the focus is " + outFeatureClass) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; arcpy.CopyFeatures_management(shapefile, outFeatureClass)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might need to change shapefile and outFeatureClass variables to strings if python says they are not in the correct format to be printed out. I think this might provide some additional clues to the problem of python seeing the shapefile that you want copied into the file geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 11:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362534#M28619</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-04-12T11:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362535#M28620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't get it, if I add your code I have an error in line 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the last code posted, that works except "arcpy.CopyFeatures_management"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Luca:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Can you add the print statement for the feature classes in fcList earlier on in the loop before python hits the error?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Here is where I would put additional print statements for debugging purposes:&amp;nbsp; &lt;BR /&gt;# Execute CopyFeatures for each input shapefile&amp;nbsp; &lt;BR /&gt;for shapefile in fcList:&amp;nbsp; &lt;BR /&gt; # Determine the new output feature class path and name&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;print("The feature class " + shapefile + " now has the focus")&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; outFeatureClass = os.path.join(outWorkspace, shapefile.strip(".shp"))&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;print("The path to the feature class that has the focus is " + outFeatureClass)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; arcpy.CopyFeatures_management(shapefile, outFeatureClass)&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;You might need to change shapefile and outFeatureClass variables to strings if python says they are not in the correct format to be printed out. I think this might provide some additional clues to the problem of python seeing the shapefile that you want copied into the file geodatabase.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 12:29:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362535#M28620</guid>
      <dc:creator>LucaMoiana</dc:creator>
      <dc:date>2012-04-12T12:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Move SHP to gdb and ArcView license (newbie frustration)!!!</title>
      <link>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362536#M28621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide a screenshot of the error message you get, as well as the latest version of the code that you are running?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 12:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/move-shp-to-gdb-and-arcview-license-newbie/m-p/362536#M28621</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-04-12T12:53:57Z</dc:date>
    </item>
  </channel>
</rss>

