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).
Solved! Go to Solution.
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")
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")
Yes! We had an additional ( ' ) thank you for your assistance.
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")
The error message or lack thereof would be important
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).
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