laptop and a wrench

不具合

"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
不具合 ID 番号 BUG-000167322
送信されましたMay 8, 2024
最終更新日March 27, 2025
適用対象ArcGIS Pro
見つかったバージョン3.2.2
オペレーティング システムWindows OS
オペレーティング システムのバージョンN/A
修正されたバージョン3.4
ステータスFixed

対処法

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

再現の手順

不具合 ID: BUG-000167322

ソフトウェア:

  • ArcGIS Pro

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動