laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: May 14, 2019 ArcGIS Pro
Bug-ID-Nummer BUG-000122282
EingereichtMay 9, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version2.3.2
BetriebssystemWindows OS
Betriebssystemversion2016 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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)

Schritte zur Reproduzierung

Bug-ID: BUG-000122282

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln