Select to view content in your preferred language

Error when using Aggregate Points in script tool

259
1
Jump to solution
4 weeks ago
JohnButcher
Emerging Contributor

I am having an issue running the GeoAnalytics Aggregate Points tool in a script.

Specifically, I seem to be stumbling on the "summary fields" option. I have my code set as follows:

arcpy.geoanalytics.AggregatePoints(inFeature, "output_name", 'BIN',None, 'HEXAGON', '500 Meters',None,None,None, ['ele_count','SUM'])

Running this line of code results in this error:

ERROR 000800: The value is not a member of COUNT | SUM | MEAN | MIN | MAX | STDDEV | VAR | RANGE | ANY.

I have tried changing "SUM" to title-case ("Sum") and multiple variations of quotation marks and no quotation marks, comma and no comma, square bracket and no square brackets. 

The documentation is frustratingly unclear on how to structure this option in the code.

What am I missing?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

The python documentation does need work, but I am wondering if it needs a list of lists.

You have...  ['ele_count','SUM']

try   ...  [['ele_count','SUM']]

If that doesn't work, I would try Tech Support and flag the documentation page .... Feedback on this topic ... on the bottom right of the help topic page


... sort of retired...

View solution in original post

1 Reply
DanPatterson
MVP Esteemed Contributor

The python documentation does need work, but I am wondering if it needs a list of lists.

You have...  ['ele_count','SUM']

try   ...  [['ele_count','SUM']]

If that doesn't work, I would try Tech Support and flag the documentation page .... Feedback on this topic ... on the bottom right of the help topic page


... sort of retired...