Bad format csv file in Learning

Issue #468 resolved
Manuel Luque created an issue

When in OpenMarkov GUI I go to "Tools", "Learning", and I try to open the csv file attached here, I get the error screen of the file png that I attached here, and in the OpenMarkov message window it appears the next stack of method calls:

java.io.IOException: Bad format csv file: Empty file.

at org.openmarkov.io.database.excel.CSVDataBaseIO.load (CSVDataBaseIO.java:111)

at org.openmarkov.learning.gui.LearningDialog.loadCaseFile (LearningDialog.java:1012)

Comments (4)

  1. Manuel Luque reporter

    Manuel, Jorge has found out that there is some kind of problem related to the encoding of the file (he says the file seems to be in a format different from UTF-8). If you run in Linux the next command (with the csv file attached here):

    file -i A-B-C-D-100K.csv

    You should see something like:

    A-B-C-D-100K.csv: text/csv; charset=iso-8859-1

    (Please, remember that Javier is using Microsoft Windows).

    (I have now generated a csv database file from a Bayesian network in Linux, and the generated file appears with charset us-ascii).

  2. Log in to comment