AnsweredAssumed Answered

Why is exe path added to workspace path when saving raster?

Question asked by jon.morris on Jun 9, 2015
Latest reply on Jun 9, 2015 by jon.morris

I'm trying to save a raster to an sde workspace, but get the following error:

ERROR 000875: Output raster: c:\program files (x86)\arcgis\desktop10.2\bin\Database Connections\test.sde\LatNorth's workspace is an invalid output workspace.

Sample code:

INWorkspace = arcpy.GetParameterAsText(0)
InputLatitude = arcpy.Raster(INWorkspace + "\\" + StageAge + "_Latitude")
LatNorth = Con((InputLatitude > 0), InputLatitude)"LatNorth")

(StageAge is just a string)


I have also tried:

OUTWorkspace = arcpy.env.workspace, "LatNorth"))


What is the correct syntax for saving a raster to sde? This isn't documented, or if it is, it's well hidden.