AnsweredAssumed Answered

Why would this simple buffer script fail?

Question asked by olcoil on Apr 17, 2012
Latest reply on Apr 17, 2012 by olcoil
(the script was straight from the ESRI python tutorial)

>>> #Buffer the roads feature class for each distance in the distance list ... import arcpy ... arcpy.env.workspace = r"C:\PETER PENG\ppTests.gdb" ... fc = "TestApr17" ... distanceList= ["100 meters", "200 meters", "400 meters"] ... #loop thru ea distance in the distanceList ... for dist in distanceList: ...     outName = fc+"_"+dist ...     arcpy.Buffer_analysis(fc, outName, dist) ... print "Finished buffering" ...  Runtime error <class 'arcgisscripting.ExecuteError'>: ERROR 000210: Cannot create output C:\PETER PENG\ppTests.gdb\TestApr17_100 meters Failed to execute (Buffer).  >>> 

- Tried the non-python method: Buffer tool in toolbox, worked!
- Tried different file path names, taking away "_". Does Python not accept " "(space)? I thought raw data was fine?
- Message Log attached
- Have no idea how to get this simple script to work, any help appreciated!