Select to view content in your preferred language

Use data from SDE connections in python scripts

384
1
01-30-2012 10:45 AM
HåkonSolberg
New Contributor
With ArcGIS 10, after migrating our geodatabase from file geodatabase to SDE (ms sql express), our python scripts have stopped working.

sample:
import arcpy

arcpy.env.workspace = r'C:\Sandbox'
TempName = 'TempStorageDB.sde\\TempStorageDB.DBO.name'

arcpy.MakeFeatureLayer_management(TempName, 'TempName')

print 'Finished!


This outputs:
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Features: Dataset TempStorageDB.sde\TempStorageDB.DBO.name does not exist or is not supported.

What are we missing here?
0 Kudos
1 Reply
HåkonSolberg
New Contributor
Nevermind, reinstalling SP3 did the trick.
0 Kudos