I am trying to use the ConcatenateRowValues tool provided by ESRI. My overall code for my script is working fine except when it tries to use the ConcantenateRowValues Tool. I start by importing the proper toolbox and then attempt to get my script to access it. Below is my code to do this:
arcpy.ImportToolbox("C:/Users/'USERNAME'/Desktop/BaseLayer/ConcatenateRowValue101/ConcatenateRowValues101.tbx")
arcpy.ConcatenateRowValues_AA(hlint, "SHORT_DESC", "NAME", "Hydro_Line", "-")
The Error that's returned is:
Runtime error
Traceback (most recent call last):
File "<string>", line 67, in <module>
File "C:\Users\'USERNAME'\Desktop\BaseLayer\ConcatenateRowValue101\ConcatenateRowValues101.tbx", line 54, in ConcatenateRowValues
/jVXV+BHwwJ5+Gfgv/wnbP8A+NV2Eo+ZTjHPQ9qlR60cIvojBSkupxw+Avwvz/yTTwX/AOE7Z/8A
AttributeError: Object: Tool or environment <ConcatenateRowValues_AA> not found
This is a different error from when an invalid function name is called on arcpy
:
>>> arcpy.ConcatenateRowValuesASDF_AA(hlint, "SHORT_DESC", "NAME", "Hydro_Line", "-")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ConcatenateRowValuesASDF_AA'
That means ArcPy is seeing the model but not wanting to run it. Why not? What's the reason for the Tool or environment <ConcatenateRowValues_AA> not found
error?
AA
is the toolbox's built in alias.