Denitrifying practice error

89 views
Skip to first unread message

Dan Haug

unread,
Sep 17, 2018, 7:23:11 PM9/17/18
to ACPF Forum
I've been trying out the new riparian analysis tools from version 3 and have been getting a lot of cryptic 999999 error messages.  I have been able to resolve some of these by deleting temporary files in the scratch workspace or changing the geoprocessing settings.
However, this same error has popped up both on ArcGIS 10.6.1 and ArcGIS Pro, which makes me think that there's an issue with Extract by Mask.



Start Time: Monday, September 17, 2018 5:47:44 PM
Running script e.  Denitrifying Practices...
Minimum organic matter of 1.7 percent
Maximum coarse soils percentage of 65.0 percent
35.0 percent of area within 20 meters of stream must meet all soils criteria
35.0 percent of area within 90 meters of stream must consist of slopes between 2 and 8 percent
Maximum bank height of 12 feet, or 365.76 cm
Creating non overlapping zones
Calculating bank height
Generating mask where all soils criteria are met:
1. Average organic matter is greater than 1.7 percent from the surface to a depth of 100 cm
2. Maximum coarse soil percentage, defined as the weight percentage of particles greater than .05mm diameter, does not exceed 50% at a depth of 50-150 cm
3. Drainage Class is 'Very Poorly Drained', 'Poorly Drained', 'Somewhat Poorly Drained', or 'Moderately Well Drained'
Failed script e.  Denitrifying Practices...
Traceback (most recent call last):
  File "C:\GIS\ACPF_V3_Pro\Scripts\DenitrifyingPractices.py", line 701, in <module>
    SuitableSoils, OM, Sand, DrainClass = SoilInputs(gSSURGO, SoilProfileTable, elev_mask, MinOM, MaxCoarse)
  File "C:\GIS\ACPF_V3_Pro\Scripts\DenitrifyingPractices.py", line 316, in SoilInputs
    soils_mask = ExtractByMask(gSSURGO_copy, elev_mask)
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Functions.py", line 7285, in ExtractByMask
    in_mask_data)
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Utils.py", line 53, in swapper
    result = wrapper(*args, **kwargs)
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\sa\Functions.py", line 7281, in Wrapper
    out_raster)
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 496, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError:  ERROR 999999: Something unexpected caused the tool to fail. Please refer to the error help for potential solutions, or contact Esri Technical Support http://esriurl.com/support.
Function Read Error [Local Function]
Function Read Error [Local Function]
The table was not found.
The table was not found. [fras_blk_reach_ras]
The table was not found. [VAT_reach_ras]
Failed to execute (ExtractByMask).
 Failed to execute (e.DenitrifyingPractices).
Failed at Monday, September 17, 2018 5:56:50 PM (Elapsed Time: 9 minutes 5 seconds)

Amanda Ross

unread,
Aug 15, 2019, 3:13:40 PM8/15/19
to ACPF Forum
I'm running into this same error right now. Were you ever able to figure out what caused this (or find a workaround)?

Thanks!

matthew romanko

unread,
Jun 3, 2020, 1:49:52 PM6/3/20
to ACPF Forum
I am getting the same error. Is there any advice on this yet?


Running script e.  Denitrifying Practices...
Minimum organic matter of 1.7 percent
Maximum coarse soils percentage of 65.0 percent
35.0 percent of area within 20 meters of stream must meet all soils criteria
35.0 percent of area within 90 meters of stream must consist of slopes between 2 and 8 percent
Maximum bank height of 12 feet, or 365.76 cm
Creating non overlapping zones
Calculating bank height
Generating mask where all soils criteria are met:
1. Average organic matter is greater than 1.7 percent from the surface to a depth of 100 cm
2. Maximum coarse soil percentage, defined as the weight percentage of particles greater than .05mm diameter, does not exceed 50% at a depth of 50-150 cm
3. Drainage Class is 'Very Poorly Drained', 'Poorly Drained', 'Somewhat Poorly Drained', or 'Moderately Well Drained'
Failed script e.  Denitrifying Practices...
Traceback (most recent call last):
  File "C:\Data\ACPF\ACPF_V3_Pro\Scripts\DenitrifyingPractices.py", line 701, in <module>
    SuitableSoils, OM, Sand, DrainClass = SoilInputs(gSSURGO, SoilProfileTable, elev_mask, MinOM, MaxCoarse)
  File "C:\Data\ACPF\ACPF_V3_Pro\Scripts\DenitrifyingPractices.py", line 316, in SoilInputs

Amanda Ross

unread,
Jun 22, 2020, 3:52:40 PM6/22/20
to matthew romanko, ACPF Forum
Hi Matthew,

Sorry for the late reply. The fix seems to be to save the elevation mask rather than keeping it as a feature layer. If you add "elev_mask.save("elev_mask")" after the mask is created (around line 299), that should do it.

--
The ACPF Forum is an online group for discussing technical issues related to using the ACPF tools. Anyone can view the discussions at https://groups.google.com/a/umn.edu/d/forum/acpf-group. Only members can participate in discussions. Join the group by sending an email to acpf-group...@umn.edu
---
You received this message because you are subscribed to the Google Groups "ACPF Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acpf-group+...@umn.edu.
To view this discussion on the web visit https://groups.google.com/a/umn.edu/d/msgid/acpf-group/d55ba715-2fd5-4769-b6c1-7e5107d90694%40umn.edu.

James, David

unread,
Jun 22, 2020, 3:56:45 PM6/22/20
to Amanda Ross, matthew romanko, ACPF Forum
Yes, typically you must save a mask to somewhere tothe disk to have it be valid. I am surprised that this made it this far.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

David James

USDA/ARS National Laboratory for Agriculture

   and the Environment

1015 N. University Blvd., Ames, Iowa 50011

Work: (515) 294-6858 Cell: (515) 451-5304

davide...@usda.gov

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 


From: acpf-...@umn.edu <acpf-...@umn.edu> on behalf of Amanda Ross <amanda...@gmail.com>
Sent: Monday, June 22, 2020 2:52 PM
To: matthew romanko <matthew...@gmail.com>
Cc: ACPF Forum <acpf-...@umn.edu>
Subject: Re: [ACPF Forum] Re: Denitrifying practice error
 




This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

matthew romanko

unread,
Jul 1, 2020, 1:13:40 PM7/1/20
to ACPF Forum
This fixed the error! Thank you so much!!

Matthew 
Reply all
Reply to author
Forward
0 new messages