Select to view content in your preferred language

arcpy.da.Describe should return the same data as arcpy.Describe for a workspace (it does not currently)

1694
6
08-24-2023 02:55 PM
Status: Implemented
Labels (1)
AJR
by
Frequent Contributor

The arcpy.Describe function when used against an enterprise geodatabase connection returns the server information (authentication_mode, database, user, instance, etc.) via. the connectionProperties method.  This information isn't available when using arcpy.da.Describe and it should be.

6 Comments
ShaunWalbridge
Status changed to: Under Consideration

Thanks for your submission. This makes good sense and we'll look into the discrepancy.

AJR
by

Still an issue in AGP 3.4.3

HannesZiegler
Status changed to: In Product Plan

We're working on this!  This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check the product life cycle information to get an idea of when to expect the next release.  

VenkataKondepati

Good to fix this issue in future release so it can have consistent results.

HannesZiegler
Status changed to: Implemented

Hi all, thank you for your patience - this has been implemented in ArcGIS Pro 3.6, arcpy.da.Describe now returns the full set of connection properties, matching arcpy.Describe:

>>> desc = arcpy.da.Describe(conn_file)
>>> pprint (desc.get("connectionProperties")) {'authentication_mode': 'DBMS', 'database': 'geoprocessing', 'instance': 'sde:postgresql:<machine>', 'is_geodatabase': 'true', 'server': '<machine>', 'user': '<user>', 'version': 'sde.DEFAULT'}
JoshuaBixby

@HannesZiegler , great news, thanks for sharing and for getting the functionality fixed/updated.