hi there,
i want to add multiple items to erpnext from excel file.
i download item template and i add all my items that i want to add erpnext.
also i download template with data and change rows with new items and try to upload
when importing there is an error in all rows: Error row# 22 “doctype” is a required key
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/data_import/importer.py", line 382, in upload
doc = frappe.get_doc(doc)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 638, in get_doc
return frappe.model.document.get_doc(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 64, in get_doc
raise ValueError('"doctype" is a required key')
ValueError: "doctype" is a required key
what is the problem, how can i add multiple items from excel template. thanks.
Have you downloaded the correct template? and are you choosing the correct doctype during data upload? Also, try to use normal case while posting your queries, bold does not look good.
yes i download the template with data from item doctype. and i change boxes with new items then i upload it there is error.
i try to download template with data then i open fresh erpnext, when i try to upload it also gives same import error.
in excel template there is writing "if new item will inserted then empty the ID coloumn. i tryed it also gives always error
i think this is a language difference problem. when i export data from english erpnext and import to english system, it is ok. but i normally use turkish language. and there is turkish data inside exported excel file. Erpnext cant read turkish language in excel file. i think, the import export mechanism of erpnext can export different languaged excel but cant read some different language data. admins can lookup for this bug please?
i see that in english export file there is writing “DocType:” .but in turkish excel file there is writing “DOCTYPE”. i tried to correct that with “Doctype:” then it gives a different error “too many values to unpack”.
yes the UOM present both erpnext and exported excel file. the issue was seen on version 10.0.12
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/data_import/importer.py”, line 385, in upload
doc.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 233, in insert
raise e
DuplicateEntryError: (u’Item’, u’bbb’, IntegrityError(1062, u"Duplicate entry ‘bbb’ for key ‘PRIMARY’"))