# Load error using JLD

**URL:** <https://discourse.julialang.org/t/load-error-using-jld/44704>\
**Category:** New to Julia\
**Created:** [August 10, 2020, 5:47pm UTC](https://discourse.julialang.org/t/load-error-using-jld/44704 "2020-08-10T17:47:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nash/32/14482_2.png) [@Nash](https://discourse.julialang.org/u/Nash)\
**Post date:** [August 10, 2020, 5:47pm UTC](https://discourse.julialang.org/t/load-error-using-jld/44704/1 "2020-08-10T17:47:21Z")

</div>

I have encountered the same problem as the OP at this Stackoverflow link: https://stackoverflow.com/questions/50817008/error-using-load-with-jld. Like for that OP, the load command works for an earlier dataset with the same name. I suspect that somewhere in a process the data has been corrupted. In my case, my data is updated every minute.

Does anyone have a solution to the problem or at least know about the issue? I am thinking about making an automatic update of the file, and in the event of the stated error, automatically reverting to the latest backup.

Perhaps a relevant question is “what are the alternatives to JLD?” I simply need to store the content of an array, which changes in size over an iteration…

---

<div class="post-metadata">

**Author:** ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Post date:** [August 10, 2020, 5:58pm UTC](https://discourse.julialang.org/t/load-error-using-jld/44704/2 "2020-08-10T17:58:51Z")

</div>

Some alternatives include:

- JLD2.jl
- BSON.jl

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [August 10, 2020, 8:37pm UTC](https://discourse.julialang.org/t/load-error-using-jld/44704/3 "2020-08-10T20:37:31Z")

</div>

For loading and saving during a process, `Serialize` would be a good option.  
Then, once the process finishes, CSV.jl would be an option for bullet proof long-term storage.  
JLD2.jl states in its README that it is no longer actively maintained and has several known bugs. I still use it, but I save “essential” data that I can’t afford to lose in another format for backup.

---

<div class="post-metadata">

**Author:** ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Post date:** [August 10, 2020, 9:51pm UTC](https://discourse.julialang.org/t/load-error-using-jld/44704/4 "2020-08-10T21:51:03Z")

</div>

Just FYI JLD2 is maintained again.

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [August 10, 2020, 11:29pm UTC](https://discourse.julialang.org/t/load-error-using-jld/44704/5 "2020-08-10T23:29:39Z")

</div>

Good news - thanks. Juliahub is still showing a readme that says it’s not maintained - that’s where I looked.
