laptop and a wrench

不具合

An error occurs while using 'sde.next_rowid' to insert a row into a table using Python.

最後に公開された状態: June 6, 2017 ArcSDE/Enterprise Geodatabase
不具合 ID 番号 BUG-000094187
送信されましたFebruary 13, 2016
最終更新日June 5, 2024
適用対象ArcSDE/Enterprise Geodatabase
見つかったバージョン10.3
オペレーティング システムWindows OS
オペレーティング システムのバージョン7.0 64 Bit
ステータスNon-Reproducible

参考情報

Next_RowID takes a table that is registered with the geodatabase as an input parameter and returns the next value for the ObjectID (RowID) field. You can use this value when you are inserting a row to the table using SQL. When executing through ArcGIS we pass the execution through the ODBC driver, and SQL Server will use sp_describe_first_result_set to return the metadata for the first possible result set of the Transact-SQL batch. Because of this behavior via the Microsoft ODBC client driver, you must include WITH RESULT SETS NONE into the execution of NEXT_ROWID. i.e. import arcpy sql="DECLARE @oid INT; DECLARE @owner nvarchar(128) = 'dbo'; DECLARE @table nvarchar(128) = 'TABTEST'; EXEC dbo.next_rowid @owner , @table, @oid OUTPUT WITH RESULT SETS NONE; INSERT INTO dbo.TABTEST(OBJECTID,NAME,C1) VALUES (@oid,'prvni',1);" con = arcpy.ArcSDESQLExecute(r'Database Connections\enterpriseGDB.sde') con.execute(sql)

再現の手順

不具合 ID: BUG-000094187

ソフトウェア:

  • ArcSDE/Enterprise Geodatabase

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

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

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

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

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

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

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