I think it is a fluke on the data import transaction, I have tried 2 documents of data import: journal entry and purchase invoice.
Both have the same issue, but after repairing the csv file it still fail to import with the same error.
I make new data import transaction with the same csv file and it worked properly. Both for the purchase invoice and journal entry.
The old transaction still shows error, though. But it does not matter since the data is already in the ERP.