# TypeError: 'NoneType' object has no attribute '\_\_getitem\_\_'

**URL:** <https://community.naturalcapitalalliance.org/t/typeerror-nonetype-object-has-no-attribute-getitem/735>\
**Category:** Software Support\
**Tags:** hra\
**Created:** [January 10, 2020, 11:06am UTC](https://community.naturalcapitalalliance.org/t/typeerror-nonetype-object-has-no-attribute-getitem/735 "2020-01-10T11:06:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucStrydom](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@LucStrydom](https://community.naturalcapitalalliance.org/u/LucStrydom)\
**Post date:** [January 10, 2020, 11:06am UTC](https://community.naturalcapitalalliance.org/t/typeerror-nonetype-object-has-no-attribute-getitem/735/1 "2020-01-10T11:06:24Z")

</div>

Hi there,

I am getting the following error when trying to run the HRA model:

**TypeError: ‘NoneType’ object has no attribute ‘getitem’.**

Please see attached log and csv files: [exposure\_consequence\_criteria.csv](https://community.naturalcapitalalliance.org/uploads/short-url/56OvsT18iFAqemyTrhHsVfEJmf0.csv) (7.2 KB) [InVEST-Habitat-Risk-Assessment-log-2020-01-10–12\_42\_39.txt](https://community.naturalcapitalalliance.org/uploads/short-url/8N5Ks9ByKVciMxjeYtmh9xGOeSi.txt) (8.6 KB)

Can you use kml files or do you need UTM projected SHP files for each vector file?

---

<div class="post-metadata">

**Author:** ![LucStrydom](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@LucStrydom](https://community.naturalcapitalalliance.org/u/LucStrydom)\
**Post date:** [January 13, 2020, 8:01am UTC](https://community.naturalcapitalalliance.org/t/typeerror-nonetype-object-has-no-attribute-getitem/735/2 "2020-01-13T08:01:52Z")

</div>

Nevermind I got it working.

---

<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:** [January 13, 2020, 3:59pm UTC](https://community.naturalcapitalalliance.org/t/typeerror-nonetype-object-has-no-attribute-getitem/735/3 "2020-01-13T15:59:06Z")

</div>

Hi @LucStrydom -

Glad you got it working, and can you share how, in case it helps someone else?

~ Stacie

---

<div class="post-metadata">

**Author:** ![LucStrydom](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@LucStrydom](https://community.naturalcapitalalliance.org/u/LucStrydom)\
**Post date:** [January 14, 2020, 6:07am UTC](https://community.naturalcapitalalliance.org/t/typeerror-nonetype-object-has-no-attribute-getitem/735/4 "2020-01-14T06:07:30Z")

</div>

Sure. The problem was that one of my “stressor” vector files was a line feature (kml). I created a small buffer to convert it to a polygon and that seemed to do the trick.
