I'm trying to use Value table in python to do a multiple ring buffer in ArcGIS 10.1 and I'm getting the following error: ExecuteError: Failed to execute. Parameters are not valid. ERROR 000735: Distances: Value is required Failed to execute (MultipleRingBuffer).

Here's the code:

arcpy.env.workspace = Path
vTab = arcpy.ValueTable()
vTab.setRow = (0, "2")
vTab.setRow = (1, "10")
vTab.setRow = (2, "50")
inFeature = 'Test.shp'
outFeaute = 'Test_Output.shp'
dist = vTab
bufferUnit = "meters"
arcpy.MultipleRingBuffer_analysis(inFeature, outFeaute, dist, bufferUnit, '','ALL')

There were a few syntax errors with the code. Rather than attempt to explain each one I have rewritten your code to show you how you should have written it. The main problem is that your vTab object was not being correctly updated.

arcpy.env.workspace = "c:/temp"
vTab = arcpy.ValueTable(1)
inFeature = 'myPointLayer'
outFeature = 'Test_Output.shp'
bufferUnit = "Meters"
arcpy.MultipleRingBuffer_analysis(inFeature, outFeature, vTab, bufferUnit, 'distance','ALL')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.