laptop and a wrench

Error

The updateConnectionProperties does not successfully update the source information on layers in the .aprx files when using dictionaries as to or from the connection properties.

Última publicación: May 14, 2019 ArcGIS Pro
Número de ID del error BUG-000122282
EnviadoMay 9, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.3.2
Sistema operativoWindows OS
Versión de sistema operativo2016 64 Bit
EstadoWill Not Be Addressed

Información adicional

when resourcing from one sql server database to another, the feature class name changes as well. Do something like this (looping through all the layers in the project):```lyr = m.listLayers()[0]cp = lyr.connectionPropertiescp['connection_info']['database'] = 'gdb1071en'cp['dataset'] = cp['dataset'].replace('gdb1061en', 'gdb1071en')lyr.updateConnectionProperties(lyr.connectionProperties, cp)```Also keep in mind that when using dictionaries in UpdateConnectionProperties, it works like a find and replace operation of common key/value pairs. See the following topic for more info: [https://pro.arcgis.com/en/pro-app/arcpy/mapping/updatingandfixingdatasources.htm](https://pro.arcgis.com/en/pro-app/arcpy/mapping/updatingandfixingdatasources.htm)

Pasos para reproducir

ID del error: BUG-000122282

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