I have a model with an iterator that produces a selection of records each iteration. I would like to get the values of a field from every record, and compile the values into a single coma delimited string.
I have attempted to use an embedded python tool to use a search cursor over these records, but it does not seem to work. I get a runtime error: cannot open '<<field name>>'
Is it is possible to run a python script tool with a cursor as a sub tool to loop through the selected records to get the field values and append them to the string? Is there a better way of doing this?
Solved! Go to Solution.
Duplicate please see answers Re: How to get field values from every feature, and place them in a comma seperated string?