Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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")
share|improve this question
    
This sounds like an issue with file permissions on your computer, as opposed to any error in your script. Could you post the full code to see if we can find a better solution? –  sgrieve Oct 9 '12 at 7:12
    
this code acts fine when workspace is at any other drive without c. If workspace is at c drive, code gives this error. –  Emi Oct 9 '12 at 8:49
1  
What is the exact path on the c drive? Many functions will fail if the path and/or filename contain spaces. –  Dan Patterson Oct 9 '12 at 17:00
    
I use ""(double quote) for the path name. And this problem occurs for some raster files. some raster files work well in c drive. –  Emi Oct 10 '12 at 4:15
    
i found the exact same problem -- throws error on C: but not on other drives. probably an ArcGIS error. –  gotanuki Feb 11 '13 at 20:35
add comment

1 Answer

up vote 3 down vote accepted

If this problem occurs for some raster files and others not, you might check the length of the name of the raster file. I remember also having that problem, but I don't remember if the magic name length was 8,11 or 13 characters. I know it sounds odd these days to have short names, but nevertheless might be worth to test.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.