# Packaging Problem - Index (zero based) must be greater than or equal to zero and less than the size of the argument list

**URL:** <https://forums.unrealengine.com/t/packaging-problem-index-zero-based-must-be-greater-than-or-equal-to-zero-and-less-than-the-size-of-the-argument-list/435806>\
**Category:** Platform & Builds\
**Tags:** size, index, unreal-engine, question\
**Created:** [October 17, 2018, 12:41pm UTC](https://forums.unrealengine.com/t/packaging-problem-index-zero-based-must-be-greater-than-or-equal-to-zero-and-less-than-the-size-of-the-argument-list/435806 "2018-10-17T12:41:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2973aa5e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2973aa5e](https://forums.unrealengine.com/u/anonymous_user_2973aa5e)\
**Post date:** [October 17, 2018, 12:41pm UTC](https://forums.unrealengine.com/t/packaging-problem-index-zero-based-must-be-greater-than-or-equal-to-zero-and-less-than-the-size-of-the-argument-list/435806/1 "2018-10-17T12:41:16Z")

</div>

Hi guys! I am a complete noob in programming and I have this error when I try to package a project.

**Index (zero based) must be greater than or equal to zero and less than the size of the argument list**

Has anyone had the same problem? Can someone give me a clue how to fix it? Thank you in advance for any help you can give me.  
link text

---

<div class="post-metadata">

**Author:** ![xadamxful](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xadamxful](https://forums.unrealengine.com/u/xadamxful)\
**Post date:** [November 9, 2018, 11:44am UTC](https://forums.unrealengine.com/t/packaging-problem-index-zero-based-must-be-greater-than-or-equal-to-zero-and-less-than-the-size-of-the-argument-list/435806/2 "2018-11-09T11:44:56Z")

</div>

I’m also having this problem, can anybody help?

---

<div class="post-metadata">

**Author:** ![TactileVisions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tactilevisions/32/1194626_2.png) [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Post date:** [November 15, 2018, 1:49pm UTC](https://forums.unrealengine.com/t/packaging-problem-index-zero-based-must-be-greater-than-or-equal-to-zero-and-less-than-the-size-of-the-argument-list/435806/3 "2018-11-15T13:49:09Z")

</div>

Just ran into this problem too while trying to package my project for the Epic MegaJam. Any ideas?

---

<div class="post-metadata">

**Author:** ![TactileVisions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tactilevisions/32/1194626_2.png) [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Post date:** [November 15, 2018, 3:08pm UTC](https://forums.unrealengine.com/t/packaging-problem-index-zero-based-must-be-greater-than-or-equal-to-zero-and-less-than-the-size-of-the-argument-list/435806/4 "2018-11-15T15:08:56Z")

</div>

This is what fixed it for me:

I went into the installed applications in Windows, searched for Visual Studio and clicked on modify:

 ![259478-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/9/2699c3b50cd62996414c29df075c7c17333a5e79.jpeg)

After a moment a window appears:

 ![259479-capture2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/3/ea3d304a4a700350bd02eeb9a124cb86a7342cc4.jpeg)

If you have any updates pending **make sure to update Visual Studio straight away**. This was the final fix for me, but there’s probably one more thing that you have to do. Click on “modify” (which may be hidden under “more”). In the window that pops up select “Desktop development with C++” and begin the installation using the button in the lower right corner.

 ![259480-capture3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/7/ba7b09e75ea8bb0dbbff579c9f272c5e11edd444.jpeg)

If after the installation it still doesn’t work, restart your PC and try again.

---

<div class="post-metadata">

**Author:** ![Outtadabox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Outtadabox](https://forums.unrealengine.com/u/Outtadabox)\
**Post date:** [March 16, 2020, 5:30pm UTC](https://forums.unrealengine.com/t/packaging-problem-index-zero-based-must-be-greater-than-or-equal-to-zero-and-less-than-the-size-of-the-argument-list/435806/5 "2020-03-16T17:30:00Z")

</div>

My issue was a problem with UE4 communicating w Visual Studio after upgrading to Windows 10. Just to add to this solution: Be sure under Editor Preferences/General/Source Code/Accessor, that your version of Visual Studio is selected in the drop down menu.
