laptop and a wrench

Error

"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
Número de ID del error BUG-000167322
EnviadoMay 8, 2024
Última modificaciónMarch 27, 2025
Relacionado conArcGIS Pro
Versión encontrada3.2.2
Sistema operativoWindows OS
Versión de sistema operativoN/A
Versión corregida3.4
EstadoFixed

Solución alternativa

  • 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.

Pasos para reproducir

ID del error: BUG-000167322

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga