# JLD and FileIO StackOverflowError: error when saving EPL fixtures data

**URL:** <https://discourse.julialang.org/t/jld-and-fileio-stackoverflowerror-error-when-saving-epl-fixtures-data/13139>\
**Category:** Data\
**Created:** [August 10, 2018, 3:05am UTC](https://discourse.julialang.org/t/jld-and-fileio-stackoverflowerror-error-when-saving-epl-fixtures-data/13139 "2018-08-10T03:05:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [August 10, 2018, 3:05am UTC](https://discourse.julialang.org/t/jld-and-fileio-stackoverflowerror-error-when-saving-epl-fixtures-data/13139/1 "2018-08-10T03:05:40Z")

</div>

I run the below code, which should work on your computer if you have all the packages installed. Basically it downloads some CSV from [football-data.co.uk](http://football-data.co.uk) and tries to save it as a JLD file. The last line always gives an error . The issue has been raised [JLD and FileIO StackOverflowError: error when saving EPL fixtures data · Issue #213 · JuliaIO/JLD.jl · GitHub](https://github.com/JuliaIO/JLD.jl/issues/213)

> Error encountered while saving “C:\Users\my\_user\_id\fixtures.jld”.  
> Fatal error:  
> ERROR: StackOverflowError:

```julia
using HTTP, DataFrames, RCall, DataFramesMeta, uCSV, FileIO

season_start = 1993:2017
seasons = lpad.(mod.(season_start,100),2,0) .* lpad.(mod.(season_start.+1,100),2,0)
urls = "http://www.football-data.co.uk/mmz4281/" .* seasons .* "/E0.csv"

@rput urls
R"""
library(data.table)
fixtures = rbindlist(lapply(urls, read.csv), fill=T, use.names=T)
fst::write_fst(fixtures,"fixtures.fst")
"""
@rget fixtures;

# get rid of empty rows
fixtures = @where(fixtures, length.(string.(:Date)) .!= 0);
FileIO.save("fixtures.jld","fixtures",fixtures)

```
