I created a tool that uses service areas to group points that are within a certain distance from one another along a network (in my case, a river system). Overall, the tool works. However, when I run it, the Generate Service Areas geoprocessing step does not produce polygons around all input point 'facilities' when run with the Python code.
I tried running the same datasets manually with the Network Analyst toolbar and window and all polygons were successfully created. I also tried running the same dataset through the Generate Service Areas geoprocessing tool and it also generated all polygons as expected.
However, when I run the Python code snippet from the Python window or from within my custom tool, it randomly skips polygon creation for several of the point 'facilities'. This is my code snippet for the generate service areas step:
species_pts = 'species_pts' sep_distance = 500 scratchGeodatabase = r'C:\Users\mmoore\Documents\ArcGIS\Default.gdb' arcpy.GenerateServiceAreas_na(species_pts,sep_dist,"Meters",network,os.path.join(scratchGeodatabase,"service_area"),Polygons_for_Multiple_Facilities="MERGE",Detailed_Polygons="DETAILED_POLYS")
Anyone have an idea as to why this may be somewhat randomly skipping polygon creation around several points?