# Error message on the InVEST Nutrient Delivery Ratio Model

**URL:** <https://community.naturalcapitalalliance.org/t/error-message-on-the-invest-nutrient-delivery-ratio-model/554>\
**Category:** Software Support\
**Tags:** ndr\
**Created:** [October 15, 2019, 4:26pm UTC](https://community.naturalcapitalalliance.org/t/error-message-on-the-invest-nutrient-delivery-ratio-model/554 "2019-10-15T16:26:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nina](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@nina](https://community.naturalcapitalalliance.org/u/nina)\
**Post date:** [October 15, 2019, 4:26pm UTC](https://community.naturalcapitalalliance.org/t/error-message-on-the-invest-nutrient-delivery-ratio-model/554/1 "2019-10-15T16:26:38Z")

</div>

Hello! I am getting an error message on the InVEST Nutrient Delivery Ratio Model, but I checked each input and I was unable to find the wrong place. I need to ask for help!

Attach the result text message for your reference, thank you for your help!  
[InVEST-Nutrient-Delivery-Ratio-Model-(NDR)-log-2019-10-15–16\_47\_12.txt](https://community.naturalcapitalalliance.org/uploads/short-url/r4DGsEsfx8YKQrHUo2AhUsyilLB.txt) (3.4 KB)

 ![messageImage_1571129968171](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/1X/ee3a810fa367943a38d7e80ed1fa4fab2ba8d816.jpeg)

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [October 18, 2019, 12:21am UTC](https://community.naturalcapitalalliance.org/t/error-message-on-the-invest-nutrient-delivery-ratio-model/554/2 "2019-10-18T00:21:53Z")

</div>

Thanks for posting. It’s hard to say what the problem is exactly. If you would like to send a link to your input data I will try to reproduce the problem.

Another option is to go to `File > Settings` and change the `Logfile logging threshold` and `Taskgraph logging threshold` to `DEBUG`. And then share your logfile again. I can’t promise that will reveal the problem though.

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [October 18, 2019, 11:48pm UTC](https://community.naturalcapitalalliance.org/t/error-message-on-the-invest-nutrient-delivery-ratio-model/554/3 "2019-10-18T23:48:13Z")

</div>

Okay thanks for sending your data. It seems there are a couple of issues related to your watersheds layer.

First, there was one feature in there (Morocco) that does not represent a watershed, and overlaps all of the others. That was not directly causing this error, but I don’t think you will get valid results with that polygon.

Second, there were some invalid geometries in the other watershed polygons. A future version of InVEST handle’s that problem more elegantly, without crashing, but for now I removed those invalid vertices and successfully got past that step of the model. I also noticed that some of the watersheds slightly overlap each other, or have small gaps between them. That might not be a problem, but you might also consider a better datasource for the waterhsed polygons.

Attached is the layer with fixed geometry. [Try\_subwatershed.zip](https://community.naturalcapitalalliance.org/uploads/short-url/myweKSjmy74MvwNpit6kouhTHBy.zip) (40.9 KB)
