laptop and a wrench

不具合

When using the Data Access module with the UpdateCursor class, row values cannot be updated to null.

最後に公開された状態: October 16, 2015 ArcGIS Pro
不具合 ID 番号 BUG-000091314
送信されましたOctober 9, 2015
最終更新日January 20, 2024
適用対象ArcGIS Pro
見つかったバージョン1.1
サーバー プラットフォームN/A
クライアント プラットフォームN/A
Version Fixed3.1
ステータスFixed

参考情報

The issue is fixed in the ArcGIS Pro 3.1 release. To protect backward compatibility, the default behavior remains as is, but there is a new keyword argument for da.UpdateCursor and da.InsertCursor to allow explicit overriding of default values with null.

対処法

Use the old update cursor or use the Calculate Field geoprocessing tool.

def workaround0():

rows=arcpy.UpdateCursor(os.path.join(geodatabase, fcName))

for row in rows:

row.intField = None

rows.updateRow(row)

def workaround1():

arcpy.CalculateField_management(os.path.join(geodatabase, fcName), 'thisField', 'getNone()', 'PYTHON_9.3', r'def getNone():\n return None')

再現の手順

不具合 ID: BUG-000091314

ソフトウェア:

  • ArcGIS Pro

ArcGIS の専門家からヘルプを受ける

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

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

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

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