Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

copy features error in python and not modelbuilder

$
0
0
Code:

import arcpy
from arcpy import env
arcpy.env.overwriteOutput = True
arcpy.CopyFeatures_management("U:\GIS_Data\Geodatabase\TEST_2.mdb\lines\other_line", "U:\TEST_2.gdb\lines\other_line")

Quote:

Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\management.py", line 2227, in CopyFeatures raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset U:\GIS_Data\Geodatabase\TEST_2.mdb\lines\other_line does not exist or is not supported WARNING 000725: Output Feature Class: Dataset U:\TEST_2.gdb\lines\other_line already exists. Failed to execute (CopyFeatures).
I have tried taking out the underscores. Geoprocessing options are set to overwrite as well. The biggest issue is the line that does not exist/not supported

Any ideas?

Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles



Latest Images