Preprocessing error for RIOS

mij212mij212 Member
edited May 2014 in Pre/Post-Processing
Hi all:

I am trying to use the ArcGIS RIOS preprocessing toolbox for erosion control, and I met the following error message. Anyone could kindly suggest me how to correct the error and move on from here please?

Many thanks

Mingkai

Start Time: Fri May 23 12:46:12 2014
Running script RIOS-Pre-Processing...

Validating arguments...

Erosion Control selected, checking required inputs:
DEM
Erosivity
Erodibility
Soil depth
Land use/land cover
Land use/land cover general class table
RIOS general coefficient table
Threshold flow accumulation
Riparian buffer distance

Checking input raster projections...

Creating hydrology layers...


Processing Erosion Control objective...

Mapping coefficients to landcover...

Error mapping coefficients to landcover: ERROR 999999: Error executing function.
The operation could not be completed because the script engine has not been initialized to a valid language.
Failed to execute (CalculateField).


Error processing Erosion Control objective: ERROR 999999: Error executing function.
The operation could not be completed because the script engine has not been initialized to a valid language.
Failed to execute (CalculateField).


Error running script
:
Failed to execute (RIOS-Pre-Processing).
Failed at Fri May 23 12:51:15 2014 (Elapsed Time: 5 minutes 3 seconds)

Comments

  • mlacayomlacayo Member
    There are a few similar posts on the ArcGIS forums:

    http://forums.arcgis.com/threads/42675-Field-calculator-error
    http://forums.arcgis.com/threads/32337-vbScript-no-longer-works-in-Field-Calculator-or-Label-Expressions?p=299848&posted=1#post299848

    The problem seems to be related to having uninstalled McAfee antivirus software. Could that be your problem?

    Here is their proposed solution, let us know if that helps:

    http://support.esri.com/cn/knowledgebase/techarticles/detail/41057
    1. Download the McAfee Consumer Product Removal Tool (MCPR) and refer to the instructions: How to uninstall or reinstall supported McAfee products using the Consumer Products Removal tool (MCPR).

    2. Navigate to the directory where the MCPR file was saved.

    3. Right-click MCPR.exe and select 'Run as Administrator'.

    4. Follow the prompts.

    5. When the message is received 'CleanUp Successful', restart the computer.
  • mij212mij212 Member
    I have tried to use the MCPR tool, and narrowed down my watershed area to a sub-basin. Here's what I get:

    Start Time: Wed Jun 04 16:06:16 2014
    Running script RIOS-Pre-Processing...

    Validating arguments...

    Erosion Control selected, checking required inputs:
    DEM
    Erosivity
    Erodibility
    Soil depth
    Land use/land cover
    Land use/land cover general class table
    RIOS general coefficient table
    Threshold flow accumulation
    Riparian buffer distance

    Phosphorus Retention selected, checking required inputs:
    DEM
    Erosivity
    Erodibility
    Soil depth
    Land use/land cover
    Land use/land cover general class table
    RIOS general coefficient table
    Threshold flow accumulation
    Riparian buffer distance

    Nitrogen Retention selected, checking required inputs:
    DEM
    Soil depth
    Land use/land cover
    Land use/land cover general class table
    RIOS general coefficient table
    Threshold flow accumulation
    Riparian buffer distance

    Flood Mitigation selected, checking required inputs:
    DEM
    Precipitation depth for wettest month
    Soil texture
    Land use/land cover
    Land use/land cover general class table
    RIOS general coefficient table
    Threshold flow accumulation
    Riparian buffer distance

    Checking input raster projections...
    dem_willam does not appear to be projected. It is assumed to be in meters.
    eros_willam2 does not appear to be projected. It is assumed to be in meters.
    erod_willam2 does not appear to be projected. It is assumed to be in meters.
    soilz_willam does not appear to be projected. It is assumed to be in meters.
    lu_willam does not appear to be projected. It is assumed to be in meters.
    wet_willam does not appear to be projected. It is assumed to be in meters.
    texture_willam does not appear to be projected. It is assumed to be in meters.

    Creating hydrology layers...


    Processing Erosion Control objective...

    Mapping coefficients to landcover...

    Creating downslope retention index...

    Defining flow direction channels...



    Error defining flow direction channels: ERROR 010240: Could not save raster dataset to C:\Users\...\Intermediate\flowdir_chan with output format GRID.
    Failed to execute (SingleOutputMapAlgebra).


    Error processing Erosion Control objective: ERROR 010240: Could not save raster dataset to C:\Users\...\Intermediate\flowdir_chan with output format GRID.
    Failed to execute (SingleOutputMapAlgebra).


    Error running script
    :
    Failed to execute (RIOS-Pre-Processing).
    Failed at Wed Jun 04 16:06:49 2014 (Elapsed Time: 33.00 seconds)

    Any idea what this error message means?

    Thanks

    Mingkai
  • swolnyswolny Member, NatCap Staff
    Hi Mingkai -

    First, do make sure that all of your input layers are in the same projected coordinate system. This is important for both pre-processing and RIOS.

    When I've seen that error about not being able to save raster dataset, it's usually related to running out of disk space, having spaces in the input pathnames
    (such as C:\My Project\ instead of C:\My_Project), some sort of corruption in the output folder. Please make sure that you do not have spaces in the path names (this is an ArcGIS issue only), check your disk space and permissions, delete the output folder and start fresh, and if all else fails, try making a new ArcGIS map and starting fresh there.

    Hopefully one of those things will help...

    ~ Stacie
  • mij212mij212 Member
    Dear Stacie:

    Thanks, Stacie, The problem is that there's a space in the file path. Thanks very much!

    Mingkai
  • mij212mij212 Member
    Dear Stacie:

    While I successfully ran the RIOS pre-processing tool, now I met a new problem. The error message is "Error 24 - too many files open". Any comments on what I can do please?

    I've attached a full log.

    Thanks very much

    Mingkai

  • RichRich Administrator, NatCap Staff
    Hi Mingkai, a 'too many files open' is an operating system level error, and a little tricky for us to handle. Most operating systems can have around 500 files open at a time which should be fine for RIOS that needs maybe 80-100. It's possible that there are other processes running on your system that have a bunch of files open at the same time. Any chance you could reboot your computer, try to run RIOS without launching any other programs, and see if it gets you through to the end?
Sign In or Register to comment.