laptop and a wrench

Erro

"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 do Erro BUG-000167322
EnviadoMay 8, 2024
Última ModificaçãoMarch 27, 2025
Aplica-se àArcGIS Pro
Versão encontrada3.2.2
Sistema OperacionalWindows OS
Versão do Sistema OperacionalN/A
Versão Fixa3.4
StatusFixed

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000167322

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download