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.

Last Published: May 14, 2019 ArcGIS Pro
Bug ID Number BUG-000122282
SubmittedMay 9, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.3.2
Operating SystemWindows OS
Operating System Version2016 64 Bit
StatusWill Not Be Addressed

Additional Information

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)

Steps to Reproduce

Bug ID: BUG-000122282

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options