laptop and a wrench

Bug

The arcpy.analysis.Near tool in a Python script returns inconsistent and incorrect results.

Last Published: April 14, 2021 ArcGIS Pro
Bug ID Number BUG-000137726
SubmittedFebruary 25, 2021
Last ModifiedJune 10, 2025
Applies toArcGIS Pro
Version found2.6
Operating SystemWindows OS
Operating System Version10.0
StatusAs Designed

Additional Information

This issue is due to the codes. The search radius is overwritten by the distance running after first point. Change the distance variable name to something else to fix it.

Steps to Reproduce

Bug ID: BUG-000137726

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options