# 1. Solution exception:Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

**URL:** <https://discourse.mcneel.com/t/1-solution-exception-index-was-out-of-range-must-be-non-negative-and-less-than-the-size-of-the-collection-parameter-name-index/120945>\
**Category:** Grasshopper\
**Tags:** windows, question, rhino6\
**Created:** [March 23, 2021, 11:56am UTC](https://discourse.mcneel.com/t/1-solution-exception-index-was-out-of-range-must-be-non-negative-and-less-than-the-size-of-the-collection-parameter-name-index/120945 "2021-03-23T11:56:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarahmiri4](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sarahmiri4/32/292783_2.png) [@sarahmiri4](https://discourse.mcneel.com/u/sarahmiri4)\
**Post date:** [March 23, 2021, 11:56am UTC](https://discourse.mcneel.com/t/1-solution-exception-index-was-out-of-range-must-be-non-negative-and-less-than-the-size-of-the-collection-parameter-name-index/120945/1 "2021-03-23T11:56:06Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/2/f/d2ff91e2cec44594d473c9a6eaa081faa6aa796a.png)

Hi everyone!  
I have this code and I get “1. Solution exception:Index was out of range. Must be non-negative and less than the size of the collection.  
Parameter name: index” error halfway through the code.

Does anyone have any idea how to fix this?

Thank you so much,[error.3dm](https://discourse.mcneel.com/uploads/short-url/liqsJAEBc3HCRIDlUvZjNL9Wdcd.3dm) (70.6 KB) [error.gh](https://discourse.mcneel.com/uploads/short-url/hkOjwLQA12DTZvFsKFrmy2hcEQj.gh) (25.7 KB)

Sarah

---

<div class="post-metadata">

**Author:** ![inno](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/inno/32/544036_2.png) [@inno](https://discourse.mcneel.com/u/inno)\
**Post date:** [March 23, 2021, 2:04pm UTC](https://discourse.mcneel.com/t/1-solution-exception-index-was-out-of-range-must-be-non-negative-and-less-than-the-size-of-the-collection-parameter-name-index/120945/2 "2021-03-23T14:04:25Z")

</div>

there’s for sure a Move component that is missing input geometry 🙂

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/a/a/eaa94f2a668311b842acb2c52385e029ceef1ecf.png)

---

<div class="post-metadata">

**Author:** ![sarahmiri4](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sarahmiri4/32/292783_2.png) [@sarahmiri4](https://discourse.mcneel.com/u/sarahmiri4)\
**Post date:** [March 24, 2021, 4:35pm UTC](https://discourse.mcneel.com/t/1-solution-exception-index-was-out-of-range-must-be-non-negative-and-less-than-the-size-of-the-collection-parameter-name-index/120945/3 "2021-03-24T16:35:14Z")

</div>

Thank you so much @inno 😉 🙏 🙏
