AnsweredAssumed Answered

ListDatasets problem with Geoprocessing Service

Question asked by mmmh_surv_analyze on Oct 30, 2014
Latest reply on Nov 6, 2014 by mmmh_surv_analyze

I create a Python Script as Show below to print the list of Datasets in arcpy.AddMessage() this script run successfully for (*.gdb, *.sde) but when publish this script as Geoprocessing Service it work successfully for (*.gdb) only and return empty list for (*.sde).

Note: The two workspaces I used as “E:\WSTest.gdb” and “E:\WSTest.sde” where SDE is for SQL Server Express 2008R2

WS_in is string for the path of Workspace

import arcpy
WS_in = arcpy.GetParameterAsText(0)
arcpy.env.workspace = WS_in
lst = arcpy.ListDatasets()
for i in lst: