Reaching error on 1.b D8 Terrain Processing

118 views
Skip to first unread message

Haley Anderson

unread,
Apr 10, 2019, 11:18:41 AM4/10/19
to ACPF Forum
Good morning! I am a senior working on a capstone project, and I have hit a bump in the road trying to run the ACPF model on part 1.b D8 Terrain Processing. Attached I have the error I am receiving. Any tips or tricks would be very helpful!

Thank you

- Haley Anderson
error.JPG

Jennifer Woodyard

unread,
Jul 24, 2019, 5:04:46 PM7/24/19
to ACPF Forum
Hi, I am receiving a similar error and was wondering if you ever figured out a solution, or if anyone else had any advice?

Thank you!
Jennifer
7-24-19.PNG

Innisfree McKinnon

unread,
Jul 24, 2019, 6:34:28 PM7/24/19
to Jennifer Woodyard, ACPF Forum
Hi Jennifer,
I was Haley's advisor on the project. The best advice we got is to follow the naming conventions as outlined in the ACPF handbook. Apparently you can end up with a lot of errors and the tools don't want to work if you don't name things properly. I believe that did solve the issue.
Innisfree

--
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/32ce65cd-9d81-4aa4-8f3d-c84dc0f1d245%40umn.edu.

Dan Haug

unread,
Aug 2, 2019, 12:40:44 PM8/2/19
to ACPF Forum, jenniferw...@gmail.com
I am receiving the exact same error message as Jennifer with the same script.  (D8 terrain processing in tools 1b or 1e)
The error only happens in Desktop.  I checked path names and that's not the issue.
It works fine with ArcGIS Pro, so I'm now using that to run some of the tools.
-Dan Haug


On Wednesday, July 24, 2019 at 5:34:28 PM UTC-5, Innisfree McKinnon wrote:
Hi Jennifer,
I was Haley's advisor on the project. The best advice we got is to follow the naming conventions as outlined in the ACPF handbook. Apparently you can end up with a lot of errors and the tools don't want to work if you don't name things properly. I believe that did solve the issue.
Innisfree

On Wed, Jul 24, 2019 at 4:04 PM Jennifer Woodyard <jenniferw...@gmail.com> wrote:
Hi, I am receiving a similar error and was wondering if you ever figured out a solution, or if anyone else had any advice?

Thank you!
Jennifer

On Wednesday, April 10, 2019 at 10:18:41 AM UTC-5, Haley Anderson wrote:
Good morning! I am a senior working on a capstone project, and I have hit a bump in the road trying to run the ACPF model on part 1.b D8 Terrain Processing. Attached I have the error I am receiving. Any tips or tricks would be very helpful!

Thank you

- Haley Anderson

--
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-...@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-...@umn.edu.

Alicia O'Hare

unread,
Jun 17, 2020, 12:02:25 PM6/17/20
to ACPF Forum, jenniferw...@gmail.com
Did anyone figure this out? I checked my naming conventions. 

James, David

unread,
Jun 17, 2020, 12:26:08 PM6/17/20
to Alicia O'Hare, ACPF Forum, jenniferw...@gmail.com
Alicia
Can you post a screenshot of the error and maybe a screenshot of the ACPF fgdb file listing from catalog

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

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 Alicia O'Hare <alicia.w...@gmail.com>
Sent: Wednesday, June 17, 2020 11:02 AM
To: ACPF Forum <acpf-...@umn.edu>
Cc: jenniferw...@gmail.com <jenniferw...@gmail.com>
Subject: Re: [ACPF Forum] Re: Reaching error on 1.b D8 Terrain Processing
 
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/bb970155-3a2a-4fed-8a63-bf895f4c24b4o%40umn.edu.




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.

Alicia O'Hare

unread,
Jun 17, 2020, 1:47:38 PM6/17/20
to ACPF Forum, alicia.w...@gmail.com, jenniferw...@gmail.com, davide...@usda.gov

Moore, Rick (MNIT)

unread,
Jun 17, 2020, 2:17:17 PM6/17/20
to Alicia O'Hare, ACPF Forum, jenniferw...@gmail.com, davide...@usda.gov

What version of ArcMap are you running?  ArcMap 10.5 originally had three arguments for flow direction but in version 10.6 they added the ability to choose a flow direction type.

 

Rick Moore

LiDAR Data Steward-GIS Analyst | Ecological and Water Resources

Minnesota IT Services | Partnering with Department of Natural Resources

117 Rogers Street

Mankato, MN, 56001

Desk: 507-389-8810

Office: 507-389-8800 | rick....@state.mn.us  | Lat 44.16322 Long -94.03001

Information Technology for Minnesota Government | mn.gov/mnit

Minnesota IT Services Logo

 

 

 

 

From: acpf-...@umn.edu <acpf-...@umn.edu> On Behalf Of Alicia O'Hare
Sent: Wednesday, June 17, 2020 12:48 PM
To: ACPF Forum <acpf-...@umn.edu>
Cc: alicia.w...@gmail.com; jenniferw...@gmail.com; davide...@usda.gov
Subject: Re: [ACPF Forum] Re: Reaching error on 1.b D8 Terrain Processing

 

This message may be from an external email source.

Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.

 


--
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/08e37b99-64a4-403d-a24e-8d575b33ff83o%40umn.edu.

Alicia O'Hare

unread,
Jun 17, 2020, 2:19:54 PM6/17/20
to ACPF Forum, alicia.w...@gmail.com, jenniferw...@gmail.com, davide...@usda.gov, rick....@state.mn.us
I'm using 10.5

James, David

unread,
Jun 17, 2020, 2:26:00 PM6/17/20
to Moore, Rick (MNIT), Alicia O'Hare, ACPF Forum, jenniferw...@gmail.com
Thanks Rick
Yes...I am sorry for that. You should be able to edit the D8 Terrain processing script and remove everything past the the Flow Direction raster declaration.

DEMFill = Fill(D8FlowDir)

I will work on updating the toolbox 

thanks
Dave James

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

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: Moore, Rick (MNIT) <rick....@state.mn.us>
Sent: Wednesday, June 17, 2020 1:17 PM
To: Alicia O'Hare <alicia.w...@gmail.com>; ACPF Forum <acpf-...@umn.edu>
Cc: jenniferw...@gmail.com <jenniferw...@gmail.com>; James, David <davide...@usda.gov>
Subject: RE: [ACPF Forum] Re: Reaching error on 1.b D8 Terrain Processing
 

Moore, Rick (MNIT)

unread,
Jun 17, 2020, 2:45:04 PM6/17/20
to OHare, Alicia - NRCS-CD, Buffalo, MN, James, David, Alicia O'Hare, ACPF Forum, jenniferw...@gmail.com

Per Dave suggestion, if you are using 10.5 or earlier, you can make the change to the following code to the HUC12TerrainProcessing.py on roughly line 35.

 

Change this:

    D8FlowDir = FlowDirection(DEMFill, "NORMAL", "", "D8")

To this:

    D8FlowDir = FlowDirection(DEMFill, "NORMAL", "")

 

The ManualCutterDamBuilder.py does not have the fourth argument in the Flow Direction line.

 

Rick Moore

LiDAR Data Steward-GIS Analyst | Ecological and Water Resources

Minnesota IT Services | Partnering with Department of Natural Resources

117 Rogers Street

Mankato, MN, 56001

Desk: 507-389-8810

Office: 507-389-8800 | rick....@state.mn.us  | Lat 44.16322 Long -94.03001

Information Technology for Minnesota Government | mn.gov/mnit

Minnesota IT Services Logo

 

 

 

 

From: OHare, Alicia - NRCS-CD, Buffalo, MN <Alicia...@mn.nacdnet.net>
Sent: Wednesday, June 17, 2020 1:29 PM
To: James, David <davide...@usda.gov>; Moore, Rick (MNIT) <rick....@state.mn.us>; Alicia O'Hare <alicia.w...@gmail.com>; ACPF Forum <acpf-...@umn.edu>
Cc: jenniferw...@gmail.com
Subject: RE: [ACPF Forum] Re: Reaching error on 1.b D8 Terrain Processing

 

Thanks for the input. For now I just ran the processes individually myself.

 

Best,

 

Alicia O’Hare

Water Resource Specialist

Wright Soil and Water Conservation District

311 Brighton Ave S Suite C

Buffalo, MN 55311

Alicia...@usda.gov

763-614-2919

Website www.wrightswcd.org

“Like us” on Facebook for updates!  

Eric Salas

unread,
Oct 14, 2020, 12:34:10 PM10/14/20
to ACPF Forum, Alicia...@mn.nacdnet.net, davide...@usda.gov, alicia.w...@gmail.com, jenniferw...@gmail.com, rick....@state.mn.us
Hello.  Is there any solution to this error yet?  I am having an error with 1.b too.  I am using ArcMap 10.6. I checked HUC12TerrainProcessing.py as suggested by Rick and got this:

 D8FlowDir = FlowDirection(DEMFill, "", "")
 D8FlowDir.save(OutputFlowDir)

Here's the error message I got:
****
Filling DEM
Calculating D8 Flow Direction
Failed script D8TerrainProcessing2...

Traceback (most recent call last):
  File "F:\ACPF_WatershedLearning\ACPF_V3_distribution_08072020\ACPF_V3_distribution_08072020\Scripts\HUC12TerrainProcessing.py", line 84, in <module>
    TerrainProcessing(DEM, ZFactor)
  File "F:\ACPF_WatershedLearning\ACPF_V3_distribution_08072020\ACPF_V3_distribution_08072020\Scripts\HUC12TerrainProcessing.py", line 37, in TerrainProcessing
    D8FlowDir = FlowDirection(DEMFill, "", "")
  File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\sa\Functions.py", line 2371, in FlowDirection
    flow_direction_type)
  File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\sa\Utils.py", line 53, in swapper
    result = wrapper(*args, **kwargs)
  File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\sa\Functions.py", line 2365, in Wrapper
    flow_direction_type)
  File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\geoprocessing\_base.py", line 510, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
ExecuteError: ERROR 999999: Error executing function.
Failed to execute (FlowDirection).

Failed to execute (D8TerrainProcessing2).
***

 

From: James, David <david...@usda.gov>
Sent: Wednesday, June 17, 2020 1:26 PM
To: Moore, Rick (MNIT) <rick...@state.mn.us>; Alicia O'Hare <alicia.w...@gmail.com>; ACPF Forum <acpf-...@umn.edu>
Cc: jenniferw...@gmail.com
Subject: Re: [ACPF Forum] Re: Reaching error on 1.b D8 Terrain Processing

 

Thanks Rick

Yes...I am sorry for that. You should be able to edit the D8 Terrain processing script and remove everything past the the Flow Direction raster declaration.

 

DEMFill = Fill(D8FlowDir)

 

I will work on updating the toolbox 

 

thanks

Dave James

 

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

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

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

 


Reply all
Reply to author
Forward
0 new messages