# InVEST 3.6.0 Habitat Quality Error

**URL:** <https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44>\
**Category:** Software Support\
**Tags:** habitat-quality\
**Created:** [April 20, 2019, 11:14pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44 "2019-04-20T23:14:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsa\_seun](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/rsa_seun/32/33_2.png) [@rsa\_seun](https://community.naturalcapitalalliance.org/u/rsa_seun)\
**Post date:** [April 20, 2019, 11:14pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/1 "2019-04-20T23:14:55Z")

</div>

Hello learned scientists,  
I do need help to resolve this tough error.  
I have been working on this (Habitat Quality) ecosystem service and in the process of running the model, it got stuck at the point in which it generated an error stating that it could not convert string to float. The actual error goes thus (ValueError: could not convert string to float).  
Please how do I go in resolving this. I have attached the accompanying error message to this.  
Thank you for the attempt.

[InVEST-Habitat-Quality-log-2019-04-20–21\_33\_38.txt](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/1X/3e208997b9d4c74e01301471606f32c858b77d95.txt) (3.7 KB)

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [April 22, 2019, 3:10pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/2 "2019-04-22T15:10:21Z")

</div>

Hi @rsa_seun -

Thanks for posting your log file. Is it possible that one of your input tables (threats or sensitivity) contains string characters in a field that should be numbers? One thing that might cause that is using commas as decimal separators instead of periods (so, giving a value of 0,5 instead of 0.5 - the latter is what’s required.)

Another possibility is that the CSV file is actually saving with values separated by semicolons instead of commas. Check the file in a text editor to see (it won’t show up if you just look at the table in Excel) and change the output format to use commas instead and see if that helps.

~ Stacie

---

<div class="post-metadata">

**Author:** ![rsa\_seun](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/rsa_seun/32/33_2.png) [@rsa\_seun](https://community.naturalcapitalalliance.org/u/rsa_seun)\
**Post date:** [April 30, 2019, 2:03pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/3 "2019-04-30T14:03:35Z")

</div>

Hi @swolny

Thank you for your response to my request. I have patiently and carefully edit and re-edit the threats and sensitivity tables to remove any inconsistencies with data formats. The error remains. I don’t know what else to do. Please can I send the entire dataset to you via email so that you can guide me on what to do going forward.  
Thank you for the time.

'Seun

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [April 30, 2019, 2:26pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/4 "2019-04-30T14:26:11Z")

</div>

Sure, 'Seun, send your inputs and I’ll look at them: swolny@stanford.edu.

~ Stacie

---

<div class="post-metadata">

**Author:** ![rsa\_seun](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/rsa_seun/32/33_2.png) [@rsa\_seun](https://community.naturalcapitalalliance.org/u/rsa_seun)\
**Post date:** [April 30, 2019, 2:45pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/5 "2019-04-30T14:45:24Z")

</div>

Hi Stacie,

Many thanks for the immense assistance. I have re-edited the tables. And, the model was completed in less than 2 seconds!

I honestly appreciate your response and kind support.

Regards.

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [April 30, 2019, 3:23pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/6 "2019-04-30T15:23:02Z")

</div>

Excellent, I’m glad to hear it. Would you please share what you did to fix the problem? Then others can benefit from your experience.

~ Stacie

---

<div class="post-metadata">

**Author:** ![Pier](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Pier](https://community.naturalcapitalalliance.org/u/Pier)\
**Post date:** [August 10, 2023, 4:24pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/7 "2023-08-10T16:24:00Z")

</div>

Hi everybody! I have the same problem! I tried to operate on the csv tab but the error still exists.  
I need to have comma values in my csv tab but i found that if i remove the comma, the model runs correctly.  
How can I go on? Can I share my tab with you?

- Pier

---

<div class="post-metadata">

**Author:** ![esoth](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@esoth](https://community.naturalcapitalalliance.org/u/esoth)\
**Post date:** [August 10, 2023, 6:34pm UTC](https://community.naturalcapitalalliance.org/t/invest-3-6-0-habitat-quality-error/44/8 "2023-08-10T18:34:15Z")

</div>

@Pier,  
If you have commas in your table values, you need to use a different delimiter (such as semicolons) to separate the values. You can set the delimiter when you export the CSV from your spreadsheet software.
