This error has been holding me up for months. The actual error I receive when trying to write my .sol files is
Soil Tables: error – Index was outside the bounds of the array.:IN,mWriteInputFiles.sol
I am using ArcMap 10.2.2 and SWAT 2012.10.18. I downloaded the SWAT US SSURGO soil database from the SWAT website and installed in my C:\SWAT\ArcSWAT\Databases folder.
I have isolated the problem to be 101 records in my soil data with no corresponding MUID in the SSURGO_Soils table found in the SWAT US SSURGO soil database (SWAT_US_SSURGO_Soils.mdb). When I removed these records I was able to write the .sol tables. My soil data was downloaded from the USDA-NRCS Web Soil Survey website: Soil Survey Geographic Database (SSURGO) and shapefiles for the following NC counties: Alexander, Alleghany, Anson, Cabarrus, Caldwell, Catawba, Davidson, Davie, Forsyth, Guilford, Iredell, Mecklenburg, Montgomery, Randolph, Richmond, Rowan, Stanly, Stokes, Surry, Union, Watauga, Wilkes, and Yadkin; and for the following: Lancaster, SC; Carroll and Patrick Counties, Virginia. The coordinate system is GCS WGS 1984 and I re-projected all the data to NC State Plane: NAD 83, State Plane, NC FIPS 3200, meters.
To determine the missing soil records I used ArcMap to view and join the SSURGO database tables with my soil data. The table I joined to my soil data was the SSURGO_Soils table found in SWAT_US_SSURGO_Soils.mdb using MUID values and MUKEY values in my soil data.
I then created a soil file of all the records that do not have matches in the SSURGO_Soils table and it appears that Caldwell county (in NC) has no records included in the SSURGO database. There are a few additional ones mainly in Stokes, but also Davie, Stanly, Montgomery and others. The SSURGO database was last updated October 2012. The county data was last updated September 2014 for tabular and December 2013 for spatial (these dates come from the WSS website; I actually downloaded the data in May 2014 and do not know the tabular date). I do not believe that the soils in Caldwell County are completely different from that of the neighboring counties. It appears to me that the 101 soil records are missing from the SWAT_US_SSURGO_Soils.mdb or that the MUIDs were misidentified by the NRCS.
Has anyone else had an issue like this? How were you able to solve it? If there is a way to re-assign these soils to another similar soil, how do I go about doing that? Is there some type of table to use with soil characteristics? I’m not a soil scientist, so I admit this is probably beyond my knowledge.
Thanks for your help. I'm trying to use SWAT to model the Yadkin Pee Dee watershed to determine the impacts of land use and climate change on the Uwharrie National Forest for my Master's Thesis.