Hi,
I used the bench command data-import (using terminal) for importing the data into ERPNext DocType.
When the Data import is completed, there are no logs or any information in the terminal window. But there were some issues with some of the records it seems and they are not imported.
How to get the log file of this import process - basically I am looking for the records which are not imported due to some functional errors. My question is how to check the error log and the records which are failed through.
I have exactly the same issue. At the moment I’m looking for missing entries that didn’t get imported, importing that transaction through the GUI to get the error log. It’s a long winded approach
Okay, I have an answer. I’m using ERPNext V15, the errors are in the Data Import Log.
Open ERPNext using the search bar look up Data Import Log. Each individual error is logged.
A large clean up job if you have just imported 10K rows with several hundred errors. However, the logs are there.
Thanks for the details on the log. Let me check this up.
An update on this. I’ve updated my frappe/erpnext system and the data import logs are no longer available that I can find. Nor can I see any logs from a command line import. Putting it back out there, does anyone know where the logs are now stored? Is there a hidden switch for the bench command to export the logs to a file?
Another Update:
I’ve found the logs. I asked AI to do a deep dive on this one. While it didn’t give me the exact answer, it prompted some further ideas. The results is found at the link below.
There may be other ways of finding it or creating a shortcut, however, I searched for the Doctype of type Data Import Log. I clicked on the doc type and then clicked ‘Go to Data Import Log List’
All my logs from my CLI desk import command where there!
I’m logged in a Administrator so I have the appropriate rights.