# CSV misbehavior

**URL:** <https://discourse.julialang.org/t/csv-misbehavior/38484>\
**Category:** General Usage\
**Created:** [April 30, 2020, 1:52pm UTC](https://discourse.julialang.org/t/csv-misbehavior/38484 "2020-04-30T13:52:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mayar/32/16426_2.png) [@mayar](https://discourse.julialang.org/u/mayar)\
**Post date:** [April 30, 2020, 1:52pm UTC](https://discourse.julialang.org/t/csv-misbehavior/38484/1 "2020-04-30T13:52:19Z")

</div>

hello all,

I have 2 similar files saved as comma delimited (CSV)  
I can read only one of them.  
When I try to read the other one  
I get this message

 ![yyy](https://global.discourse-cdn.com/julialang/original/3X/b/6/b6b34870b54b71b66a46276fd6882bc22bd34767.png)

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 30, 2020, 2:02pm UTC](https://discourse.julialang.org/t/csv-misbehavior/38484/2 "2020-04-30T14:02:11Z")

</div>

Are you sure that the file exists (and the path provided is correct?)

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [April 30, 2020, 5:29pm UTC](https://discourse.julialang.org/t/csv-misbehavior/38484/3 "2020-04-30T17:29:05Z")

</div>

The message is saying it’s “not valid”. What I would try to do is edit the file to only include the first 2 lines. True loading that. If it’s still not valid then maybe you can share the file?

If the first 2 lines are valid, then there is a probably a line in it somewhere that GS.jl is barfing on. Try removing the last half of the lines, and load. If it works, add half the deleted lines back. If it fails, delete the half the remaining lines. Keep doing that until you can figure out which line is giving you the issue.

---

<div class="post-metadata">

**Author:** ![mayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mayar/32/16426_2.png) [@mayar](https://discourse.julialang.org/u/mayar)\
**Post date:** [May 1, 2020, 6:10am UTC](https://discourse.julialang.org/t/csv-misbehavior/38484/4 "2020-05-01T06:10:32Z")

</div>

What I did is  
I deleted the file  
and created it from scratch  
it worked  
but I did not know the reason ☹

---

<div class="post-metadata">

**Author:** ![mayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mayar/32/16426_2.png) [@mayar](https://discourse.julialang.org/u/mayar)\
**Post date:** [May 1, 2020, 6:11am UTC](https://discourse.julialang.org/t/csv-misbehavior/38484/5 "2020-05-01T06:11:14Z")

</div>

I deleted the file and  
created it again
