AnsweredAssumed Answered

Error On ArcPy Merge

Question asked by BEHSEINI on Aug 19, 2015
Latest reply on Aug 20, 2015 by rastrauch

Using ArcGIS 10.2 Desktop I am trying to run a Merge function by Arcpy as

 

 

    # Set environment settings

    env.workspace = "E:\\GIS\\ROR"

   

    path = "E:\\GIS\\Data\\"

    featureClass = "band-tailed_pigeon.shp"

    InputFeature = path + featureClass

    FinaloutLocation = "E:\\GIS\\Data\\Final"

 

 

    dissolve_1 = "dissolved_1.shp"

    dissolve_2 = "dissolved_2.shp"

    dissolve_3 = "dissolved_3.shp"

    dissolve_4 = "dissolved_4.shp"

    dissolve_5 = "dissolved_5.shp"

    # Process: Merge

    inFeaturesToMerge = [dissolve_1,dissolve_2,dissolve_3,dissolve_4,dissolve_5]

    arcpy.Merge_management(inFeaturesToMerge, FinaloutLocation)

 

 

but I am getting this error:

 

 

    ExecuteError: Failed to execute. Parameters are not valid.

    ERROR 000725: Output Dataset: Dataset E:\GIS\Data\Final already exists.

 

 

Can you please let me know why this is happening?

 

 

Thanks

Outcomes