0

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')
PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Nov 5, 2014 at 6:04

1 Answer 1

2

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)
vTab.addRow(2)
vTab.addRow(10)
vTab.addRow(50)
inFeature = 'myPointLayer'
outFeature = 'Test_Output.shp'
bufferUnit = "Meters"
arcpy.MultipleRingBuffer_analysis(inFeature, outFeature, vTab, bufferUnit, 'distance','ALL')
answered Nov 5, 2014 at 10:03
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.