Summing but not all attributes during Spatial Join

Discussion created by polinabee on May 13, 2014
Latest reply on Dec 8, 2017 by Holisticbynature
Hi, I am writing a script that is supposed to output an arithmetic function based on a spatial join of census tracts to a multipart buffer layer.

The function requires some census tract features summed (aka all tract populations within a buffer range get summed together) but other features to remain as attributes of that tract.

I have no experience with FieldMapping objects, and would like to start off by specifying which attributes get summed. Seems simple, but I have not found a template I can easily follow online, so.... any ideas?

I had originally assumed it would be as easy as simply setting the merge rule, but it seems that I would have to create a whole new object, and the ArcGIS help is very confusing for Field Mapping.