| Numéro d’ID de bogue |
BUG-000122282 |
| Envoi | May 9, 2019 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS Pro |
| Version trouvée | 2.3.2 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 2016 64 Bit |
| Statut | Will Not Be Addressed
L’équipe de développement a examiné le problème ou la demande et a décidé qu’ils ne seraient pas traités. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
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)
Étapes pour reproduire
ID de bogue: BUG-000122282
Logiciel: