laptop and a wrench

不具合

Using the 'Create Database Connection String' command fails for versioning workflows in Python.

最後に公開された状態: December 27, 2019 ArcGIS Pro
不具合 ID 番号 BUG-000127252
送信されましたDecember 10, 2019
最終更新日December 12, 2024
適用対象ArcGIS Pro
見つかったバージョン2.4.2
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスWill Not Be Addressed

参考情報

CreateDatabaseConnectionString can be used instead of connection files, when there is an automated geoprocessing workflow (script or model) that uses database or enterprise geodatabase datasets. Generate a connection string which can be used as input to any geoprocessing tool that supports the specified dataset type, rather than using a path to the database through the connection file workspace. ListVersions requires the input to be either the path to a connection file as an argument to the function. Alternatively, set the workspace environment to the connection file. CreateDatabaseConnection is the correct tool to use as an input for ListVersions: e.g. new_db_connection = arcpy.CreateDatabaseConnection_management("C:\\TEMP", "connection_file.sde", "SQL_SERVER", "sql_server_instance", "DATABASE_AUTH", "gdb", "gdb", "SAVE_USERNAME", "database_name", "#", "TRANSACTIONAL", "dbo.DEFAULT") versionList = arcpy.ListVersions(new_db_connection) print (versionList)

再現の手順

不具合 ID: BUG-000127252

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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