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 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项