diff --git a/geonode/upload/handlers/common/vector.py b/geonode/upload/handlers/common/vector.py index 3bd103212e5..732ae37fea6 100644 --- a/geonode/upload/handlers/common/vector.py +++ b/geonode/upload/handlers/common/vector.py @@ -1440,10 +1440,11 @@ def _commit_upsert(self, model_obj, OriginalResource, upsert_key, layer_iterator ) chunk_index += 1 except Exception as e: - msg = f"Error occurred during feature save in Batch {chunk_index} with error: {str(e)}" + logger.exception(f"Error occurred during feature save in Batch {chunk_index} ({str(e)})") + msg = f"Error occurred during feature save in Batch {chunk_index}" if exec_obj and layers: self._create_error_log(exec_obj, layers, [{"error": msg}]) - raise UpsertException(msg) + raise UpsertException("An internal error occurred while processing the upsert operation.") return valid_create, valid_update