diff --git a/erpnext/manufacturing/doctype/bom_creator/bom_creator.py b/erpnext/manufacturing/doctype/bom_creator/bom_creator.py index 531fe9826f9..84f10f1c1ee 100644 --- a/erpnext/manufacturing/doctype/bom_creator/bom_creator.py +++ b/erpnext/manufacturing/doctype/bom_creator/bom_creator.py @@ -313,6 +313,7 @@ class BOMCreator(Document): frappe.msgprint(_("BOMs created successfully")) except Exception: + frappe.db.rollback() traceback = frappe.get_traceback(with_context=True) self.db_set( {