From c9e8a293a479530f0c09f63331de784ccc165afe Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 10 Dec 2025 11:30:13 +0530 Subject: [PATCH] fix: validate import columns only if type is insert --- frappe/core/doctype/data_import/importer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/core/doctype/data_import/importer.py b/frappe/core/doctype/data_import/importer.py index 2df0cf3df5..67507ef169 100644 --- a/frappe/core/doctype/data_import/importer.py +++ b/frappe/core/doctype/data_import/importer.py @@ -647,7 +647,8 @@ class ImportFile: elif extension == "xls": data = read_xls_file_from_attached_file(content) - self.validate_columns_of_import_file(data) + if self.import_type == INSERT: + self.validate_columns_of_import_file(data) return data