diff --git a/frappe/client.py b/frappe/client.py index 39f49e23fc..2b80a17feb 100644 --- a/frappe/client.py +++ b/frappe/client.py @@ -278,7 +278,7 @@ def bulk_update(docs): for doc in docs: doc.pop("flags", None) try: - existing_doc = frappe.get_doc(doc.pop("doctype"), doc.pop("docname")) + existing_doc = frappe.get_doc(doc["doctype"], doc["docname"]) existing_doc.update(doc) existing_doc.save() except Exception: