No Connection String from Arcpy Describe ArcSDE workspace

02-06-2014 01:51 PM
Occasional Contributor
I'm using ArcGIS for Desktop 10.2.1 and I'm trying to use arcpy.Describe to get a connection string from an ArcSDE connection. My ArcSDE database is 10.2. However, the connectionString parameter from the arcpy.Describe method returns an empty string as if the workspace was not SDE. Is this a bug or intentional?

>>> conn = arcpy.Describe(r'Database Connections\Master GIS Data.sde')
>>> print conn.connectionString

Tags (2)
0 Kudos
3 Replies
Esri Esteemed Contributor
Hi Nicholas,

This appears to be a bug.  I would recommend logging an incident with Tech Support to have this bug logged, and to see if there is a possible workaround.
0 Kudos
Occasional Contributor
I ran into a similar problem.  See this thread:

Long story short, if you are using OS authentication, make sure the user the script is running as has permissions to the sde database.
0 Kudos
Regular Contributor

I ran into the same problem. My workaround was to use the workspacepath property in the layer class

0 Kudos