while trying to insert records via bench data-import i get the following error
" frappe.exceptions.ValidationError: Invalid or corrupted content for import"
the complete command i am using is
bench --site site1.local data-import --file /opt/bench/currencies/test.csv --doctype ‘Currency Exchange’ --type Insert
the used csv file imports without any issues via “Web Data Import” and has the header
Date,From Currency,To Currency,Exchange Rate
1- Create Data Import and Save
2- Upload your file (you will see the file_url once the file attached, you will use it next)
3- bench --site site1.local data-import --file /private/files/test.csv --doctype ‘Currency Exchange’ --type Insert