laptop and a wrench

Bogue

The ArcPy, 'updateConnectionProperties' function fails to update the properties of the enterprise geodatabase layers as expected when feature classes reside within feature datasets.

Dernière publication: March 29, 2018 ArcGIS Pro
Numéro d’ID de bogue BUG-000112777
EnvoiMarch 28, 2018
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée2.0.1
Système d’exploitationWindows OS
Version du système d’exploitation7
StatutWill Not Be Addressed

Informations supplémentaires

This is as designed. This is consistent with how it works in ArcMap. A feature class can be replaced with a different name, even in a feature dataset. Refer to the code example below: find_dict = {'connection_info': {'database': 'C:\Temp\FeatureDatasets\GreatLakes_1.gdb'}, 'dataset': 'GreatLakes', 'workspace_factory': 'File Geodatabase'} replace_dict = {'connection_info': {'database': 'C:\Temp\FeatureDatasets\GreatLakes_2.gdb'}, 'dataset': 'GreatLakesNEW', 'workspace_factory': 'File Geodatabase'} l.updateConnectionProperties(find_dict, replace_dict) According to a web help documentation, geodatabase feature datasets are part of a workspace and their names should not be included in the workspace path. If a feature class is moved into or out of a geodatabase feature dataset within the same workspace, nothing should be done in terms of updating map documents or layer file data sources. If a dataset is moved into a different workspace, but of the same workspace type, provide a path to the new workspace, without the geodatabase feature dataset name.

Étapes pour reproduire

ID de bogue: BUG-000112777

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement