The code below causes ArcGIS Pro to crash. This is part of an add-in written in C#. The parameters are calling two FeatureLayers the inFeatures and nearFeatures. I have triple checked the features so my only guess is the Alias name I am using for the tool is wrong but I seem to have tried everything. Any tips?
The tool name is "near_analysis". From Python Script geoprocessing tool name you need to change group and tool name places and change '.' to '_'.
arcpy.analysis.Near(r"Sites", r"'Customers'", "1000 Meters", "NO_LOCATION", "NO_ANGLE", "PLANAR")