Item Price data importing failing - Item Price None not found

Hi all, I’m trying to import a Google Sheet with item pricing split up into multiple price lists per supplier, but when I try to import Item Price I get:

Item Price None not found

Traceback (most recent call last):
File “apps/frappe/frappe/core/doctype/data_import/importer.py”, line 147, in import_data
doc = self.process_doc(doc)
File “apps/frappe/frappe/core/doctype/data_import/importer.py”, line 242, in process_doc
return self.update_record(doc)
File “apps/frappe/frappe/core/doctype/data_import/importer.py”, line 266, in update_record
existing_doc = frappe.get_doc(self.doctype, doc.get(id_field.fieldname))
File “apps/frappe/frappe/init.py”, line 1176, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 74, in get_doc
return controller(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 106, in init
self.load_from_db()
File “apps/frappe/frappe/model/document.py”, line 149, in load_from_db
frappe.throw(
File “apps/frappe/frappe/init.py”, line 522, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 490, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 442, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Item Price None not found

For those looking for this, found the solution from Error updating price list via data import - I was trying to update records rather than insert new records. Changing it into an Insert job fixed it

1 Like