Keyerror in Habitat Quality

Hello,

I am receiving an error on my habitat quality model. There is a keyerror in the process of model running. The error is” exception found while running natcap. invest. habitat_quality”. I do not know the specific issues so that I do not know how to deal with it.

I have attached my log file and the screenshot of the error as well.

Thank you for the attempt.
natcap.invest.habitat_quality-log-2019-05-25–15_19_01.txt (4.9 KB)

Hi @heyaya

Thank you for posting the log file. Assuming that there is a “HABITAT” field in your sensitivity table (which is required), check the format of your sensitivity.csv file. Look at it in a text editor and see if the values are separated by commas (not semicolons or any other character), and if there is a blank line at the bottom of the file, delete it. See if either of those things helps.

~ Stacie

Just to add here @heyaya, it looks like you’re using a really old version of InVEST (version 3.3.3). I’d strongly suggest upgrading to the latest InVEST 3.7.0 to take advantage of the latest fixes to this model. InVEST can be downloaded here: http://naturalcapitalproject.stanford.edu/invest