We encountered the same problem.
It turned out that the csv file wasn't properly formed (every line ended with a semicolon) but still showed up nicely in the preview window. To fix the error, we simply fixed fixed the csv file by removing the semicolons.