diff --git a/insights/insights/doctype/insights_query/insights_query.py b/insights/insights/doctype/insights_query/insights_query.py index a58136a27..ea092b7ad 100644 --- a/insights/insights/doctype/insights_query/insights_query.py +++ b/insights/insights/doctype/insights_query/insights_query.py @@ -216,7 +216,8 @@ def update_query_results(self, results): "results_row_count": len(results) - 1, } ) - query_result.db_update() + with suppress(frappe.exceptions.UniqueValidationError): + query_result.db_update() def before_fetch(self): if hasattr(self.variant_controller, "before_fetch"):