outRegionGrp = RegionGroup(inRaster,"EIGHT", "WITHIN", "ADD_LINK", valToIgnore)
arcgisscripting.ExecuteError: ERROR 999999: Error executing function. Workspace or data source is read only. The table was not found. [VAT_RegionG_Con_1] A column was specified that does not exist. The table was not found. [VAT_RegionG_Con_1] The operation was attempted on an empty geometry. ERROR 010274: Error in writing to table. ERROR 010067: Error in executing grid expression. Failed to execute (RegionGroup).
While workspace is at c drive, this error occurs. But while workspace is at other drives, this error does not happen.
import arcpy from arcpy import env from arcpy.sa import * env.outputCoordinateSystem = spatialReferance env.scratchWorkspace = workspacePath env.workspace = workspacePath try: checkExtensionStatus = arcpy.CheckExtension("Spatial") if checkExtensionStatus != "Available" : raise LicenseError(checkExtensionStatus) checkOutExtensionStatus = arcpy.CheckOutExtension("Spatial") if checkOutExtensionStatus != "CheckedOut" : raise CheckOutExtensionException(checkOutExtensionStatus) outRegionGrpRaster = RegionGroup(inRaster, "EIGHT", "WITHIN", "ADD_LINK", inputFalseConstantValue) finally: arcpy.CheckInExtension("Spatial")