# ERROR: BoundsError: attempt to access 85124553-element Array{UInt8,1} at index \[4:85124553, 2\]

**URL:** <https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983>\
**Category:** New to Julia\
**Created:** [June 5, 2019, 9:40pm UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983 "2019-06-05T21:40:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stu/32/8772_2.png) [@stu](https://discourse.julialang.org/u/stu)\
**Post date:** [June 5, 2019, 9:40pm UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983/1 "2019-06-05T21:40:54Z")

</div>

```julia
symbols = data[4:end, 2]

```

The above code is throwing the error in the title and I cannot figure out why.  
The below code that I run right before it in my file works just fine and I know and have checked that there are at least 2 columns in data.

```julia
probes = data[4:end, 1]

```

Does anyone know what is happening? I am reading in data from a CSV using a the CSV package.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [June 5, 2019, 9:45pm UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983/2 "2019-06-05T21:45:04Z")

</div>

You seem to be accessing a `Vector` (`Array{UInt8,1}`) which does not have a second dimension, so you can’t use that `, 2]` part. Julia allows indexing with extra dimensions if the index is `1`, so thats why the second example does not throw. Normally indexing a vector is done with one index, e.g. `data[4:end]` etc.

---

<div class="post-metadata">

**Author:** ![stu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stu/32/8772_2.png) [@stu](https://discourse.julialang.org/u/stu)\
**Post date:** [June 6, 2019, 12:33am UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983/3 "2019-06-06T00:33:01Z")

</div>

What is meant by second dimension? Does that mean that it has more than one column? because if so it does have more than one column

---

<div class="post-metadata">

**Author:** ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Post date:** [June 6, 2019, 12:50am UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983/4 "2019-06-06T00:50:15Z")

</div>

Can you share the full code + csv file where you’re seeing this issue? It’s possible there’s a bug in the CSV.jl code that is causing this issue underneath, but in order to diagnose, I need a way to reproduce the problem, even if you can just share the file/code w/ me privately.

---

<div class="post-metadata">

**Author:** ![stu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stu/32/8772_2.png) [@stu](https://discourse.julialang.org/u/stu)\
**Post date:** [June 6, 2019, 4:05pm UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983/5 "2019-06-06T16:05:22Z")

</div>

How would I message you specifically?

---

<div class="post-metadata">

**Author:** ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Post date:** [June 6, 2019, 6:13pm UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983/6 "2019-06-06T18:13:26Z")

</div>

Discourse has a way to private message on here. Or my email is on my GitHub profile [https://github.com/quinnj](https://github.com/quinnj)

---

<div class="post-metadata">

**Author:** ![stu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stu/32/8772_2.png) [@stu](https://discourse.julialang.org/u/stu)\
**Post date:** [June 7, 2019, 2:54pm UTC](https://discourse.julialang.org/t/error-boundserror-attempt-to-access-85124553-element-array-uint8-1-at-index-4-85124553-2/24983/7 "2019-06-07T14:54:44Z")

</div>

Emailed.
