laptop and a wrench

Bug

"NameError: name 'self' is not defined" error is displayed when using the Join Features (GeoAnalytics Server tool) in ArcGIS Pro 3.2.x with ArcGIS Enterprise 11.1.

ArcGIS Pro
Bug-ID-Nummer BUG-000167322
EingereichtMay 8, 2024
Zuletzt geändertMarch 27, 2025
Gilt fürArcGIS Pro
Gefunden in Version3.2.2
BetriebssystemWindows OS
BetriebssystemversionN/A
Behoben in Version3.4
StatusFixed

Workaround

  • When navigating to C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Scripts\ga_server_joinfeatures.py and open the tool script, an error is displayed due to the inability to reference self in the main function. However, in the other functions, it can be referenced since it is sent as a function parameter.
  • Comment the lines 51 to 54:

# includeDistance and distanceUnit were exposed at 11.2:

 #if PortalVersion() < 2023.2: # 11.2

  #self.params[14].enabled = False

  #self.params[15].enabled = False

  • Copy the lines 52 to 54 and paste them inside the updateParameters function:

def updateParameters(self):

 """Modify the values and properties of parameters before internal

   validation is performed. This method is called whenever a parameter

  has been changed."""

if PortalVersion() < 2023.2: # 11.2

  self.params[14].enabled = False

  self.params[15].enabled = False

  • Run the Join Features (GeoAnalytics Server tool) once again.

Schritte zur Reproduzierung

Bug-ID: BUG-000167322

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln