I have a python script that merges 12 shapefiles into 1 shapefile with about 75k total records. I want to dissolve the latter shapefile on a particular field, and SUM another field, so my final shapefile has 12 records in it based on the dissolve field.
I can do this in ArcMap 10.2 with no problem, but when I do it from my python script outside of ArcMap, my final shapefile, instead of having 12 dissolved records, has about 20 (some are repeats). The field I dissolve on is a text field with distance such as 1000mile.shp, 2000mile.shp, etc...
Anyone know a workaround to make this work out of my python script?
arcpy.Dissolve_management(fc, "dissolvetracts.shp", "dist_band", [["LGH001","SUM"], ["Shape_area","SUM"]], "MULTI_PART", "DISSOLVE_LINES")