laptop and a wrench

Error

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

Última publicación: December 27, 2019 ArcGIS Pro
Número de ID del error BUG-000127252
EnviadoDecember 10, 2019
Última modificaciónDecember 12, 2024
Relacionado conArcGIS Pro
Versión encontrada2.4.2
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

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)

Pasos para reproducir

ID del error: BUG-000127252

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga