I have 5 buffers to perform using 5 fields of a shapefile. I try to run it with the following code:
Buffers = ['JF1','JF2','JF3','FF','FB'] env.workspace = "C:\Mydirectory\Myfile.shp" network = "C:\Mydirectory\Myfile.shp" out = "C:\Myoutputdirectory\Myfinaldirectory" for buff in Buffers: arcpy.Buffer_analysis(network, out, buff,)
But when I do it I receive the following error:
ExecuteError: Failed to execute. Parameters are not valid. ERROR 000725: Output Feature Class: Dataset Myfinaldirectory.shp already exists. Failed to execute (Buffer).
What is the problem?