AnsweredAssumed Answered

Problem with Workspace when it is SQL Geodatabase

Question asked by nikfal on Jan 9, 2018
Latest reply on Jan 10, 2018 by nikfal

I am developing a arcpy tool. The output would be saved in a parameter with  "Workspace" Data type as follows:

 

When the workspace is a folder everything is fine. However when I enter a SQL Geo-database as follow:

 

ArcGIS adds its root (i.e. c:\windows\system32)  to the output workspace and causes Error as follows:

Note that the output comes from masking a raster by a polygon as follows:

outExtractByMask = arcpy.sa.ExtractByMask(observationLayer, Study_Area)
finalRaster = os.path.join(Output_Raster,observationLayer)
outExtractByMask.save(finalRaster)

 

Any solution?

Outcomes