shekhawatravi

RuntimeError: DescribeData: Method connectionProperties does not exist

Discussion created by shekhawatravi on Dec 23, 2013
Latest reply on Dec 23, 2013 by jskinner-esristaff
I want to get the connection Details from sdeConnection file.
<someName>.sde file
e.g. serverName, service, user, password etc.

for this I am writing following script.

import arcpy

desc = arcpy.Describe("C:\TEMP\sdeCon\connection.sde")
conPop = desc.connectionProperties()

@ above line it get error-- "RuntimeError: DescribeData: Method connectionProperties does not exist"

can some one please help, why so is happening, and how can I get the connection details from SdeFile.


NOTE:: Even I am getting the same issue in both ArcGIS 10 and 10.1
and I have set the path as C:\Python26\ArcGIS10.0 for ArcGIS 10 and C:\Python26\ArcGIS10.1 for ArcGIS 10.1

Outcomes