Error: 000732: Dataset does not exist or is not supported ArcPy

13729
6
Jump to solution
12-21-2017 11:49 AM
JoseSanchez
Frequent Contributor

Hello everyone,

I created a Model Builder and added a Copy process and it works fine. I export this same Model Builder to Python and now when I run it, it shows the following error message:

# Process: Copy
arcpy.Copy_management(SDEView, PointLayer "FeatureClass")

  File "C:\Program Files\ArcGIS\Server\ArcPy\arcpy\management.py", line 3950, in Copy
    raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Data:  .......   does not exist or is not supported
Failed to execute (Copy).

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

perhaps you are missing a comma or something... this line is just wrong because your last parameter is incorrect or it should be 2 parameters instead of 1

arcpy.Copy_management(SDEView, PointLayer "FeatureClass")

 

View solution in original post

6 Replies
DanPatterson_Retired
MVP Emeritus

perhaps you are missing a comma or something... this line is just wrong because your last parameter is incorrect or it should be 2 parameters instead of 1

arcpy.Copy_management(SDEView, PointLayer "FeatureClass")

 

JoseSanchez
Frequent Contributor

Yes! We had an additional ( ' ) thank you for your assistance.

0 Kudos
KeithAddison1
Frequent Contributor

I'm baffled why I get this error running this bit of code:

import arcpy
arcpy.env.workspace = "F:/test"
arcpy.Buffer_analysis("Road1", "Road1_B", "10 Meters")

0 Kudos
DanPatterson_Retired
MVP Emeritus

The error message or lack thereof would be important

0 Kudos
KeithAddison1
Frequent Contributor

Same as OP's.  What else could be going wrong?  The data exists and is valid, from everything I can tell the syntax is valid.

ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Features: Dataset Road1 does not exist or is not supported
Failed to execute (Buffer).

0 Kudos
DanPatterson_Retired
MVP Emeritus

if they are shapefiles, you need the file extension. If they are in a geodatabase, you need the geodatabase name.

In any event a full path needs to be formed to the file location whether it is in a folder or a geodatabase

0 Kudos