AnsweredAssumed Answered

automate sde database license: python arcpy's EnableEnterpriseGeodatabase_management returns 000837 error i.e., "...not correct workspace type" no matter how I spedify.  Does this command really work?

Question asked by hfoster on Mar 4, 2015
Latest reply on Mar 5, 2015 by TMorgan-esristaff

Hi all,

I manage a number of SDE databases and would like to update the yearly re-licensing with a python script.  The script model:

 

import arcpy

arcpy.EnableEnterpriseGeodatabase("C:\myconnections\database1.sde", "C:\authfiles\keycodes")

 

when the correct path + file references are substituted, always returns the error:

arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.

ERROR 000837: The workspace is not the correct workspace type.

Failed to execute (EnableEnterpriseGeodatabase).

 

I've tried the various arcpy.ClearWorkspaceCache_management() and arcpy.env commands as suggested by other posts, but no go.

 

Thankee, -Howard Foster

 

 

 

Outcomes