I have 60K+ records to import, so using the new importer is not much of an option for me. I thought I’d just try uploading a csv file to the server and using bench import-csv or bench data-import to upload the records instead.
Here is the command I am using: bench --site site1.local import-csv ../Contacts.csv
And here is the error I am getting: frappe.exceptions.ValidationError: Please do not change the rows above Start entering data below this line
To be clear, I am simply uploading a CSV file with the headers I get from the Data Import tool in ERPNext. There is no line that says “Please do not change the rows…”; the file starts with the headers rows. I keep seeing references to more complicated CSV files for importing data around the forums and in videos, but I have no idea where they come from or even if I should be using them.
There’s nothing to screenshot really - as I said, it’s jut a row of headers I got from the data import tool. That’s all I get from the GUI - that single row of headers, which is why I’m stumped.
I can use the template to upload a limited number of rows from my data via ERPNext’s import GUI. The full data set doesn’t work with the import-csv command. I haven’t tried it with a limited data set, but the error doesn’t give me any reason to think it would work differently.
It sounds like bulk import is quasi-broken in 12 if there’s no where to get the template files from the interface. What is the/is there a recommended way to proceed?
I think you can still get the older template in version 12. Search for Data Import Legacy in the awesombar (Ctrl/Cmd + G) and select the doctype. You’ll get the option to export the template.
Copy over the data from your current file to this newer one and run the import again and check.
The import-csv command expects a Template that adheres to the deprecated Data Import Legacy format. The data-import command expects the current Data Import template format.
You can find reference to the data-import command here: