Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

RuntimeError: DescribeData: Method connectionProperties does not exist

$
0
0
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

Viewing all articles
Browse latest Browse all 2485

Trending Articles