I am attempting to pass 1,400 distance values into the multiple ring buffer tool using a model I created based on the answer to the following question asked 9 years ago regarding this question (ArcMap instead of ArcGIS Pro). See previous question/answer here: How to pass distances to Multiple Ring Buffer in ModelBuilder?
I was able to successfully replicate the nested models in ModelBuilder, but it seems as if there is a ArcGIS Pro python issue with passing a table of values (distances) for the multiple ring buffer tool. I am using ArcGIS Pro version 2.8.29751 When I run attempt to run the model, I receive the below error next to my Input_Features of the multiple ring buffer tool:
ERROR 032659 updateParameters Error: Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\arcobjects\_base.py", line 90, in _get
return convertArcObjectToPythonObject(getattr(self._arc_object, attr_name))
AttributeError: ParameterObject: Get attribute: values does not exist
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Analysis Tools.tbx\MultipleRingBuffer.tool\tool.script.validate.py", line 71, in <module>
if shape_type != 'Polygon':
File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Analysis Tools.tbx\MultipleRingBuffer.tool\tool.script.validate.py", line 46, in updateParameters
input_fc = self.params[0].valueAsText
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\arcobjects\_base.py", line 96, in _get
(attr_name, self.__class__.__name__))
NameError: The attribute 'values' is not supported on this instance of Parameter.
Main Model:
Sub Model:
I haven the set the Distance column as the group field in the iterator so that shouldn't be the issue.
Is this type of model compatible with ArcGIS Pro where a list of values based off a field (type double) are used as the input to the distance parameter in the multiple ring buffer tool?
I have tested the nested models in ArcMap 10.5 and it worked successfully. The issue is run time. If I'm able to run in ArcGIS Pro, I suspect that ArcGIS Pro would run quicker but maybe not. I also tested to see if this was because I had too many distances by deleting all, but 4 rows of distance values and it still doesn't work in ArcGIS Pro.