diff --git a/src/fmu/sumo/uploader/_sumofile.py b/src/fmu/sumo/uploader/_sumofile.py index 2430421..c1efcb3 100644 --- a/src/fmu/sumo/uploader/_sumofile.py +++ b/src/fmu/sumo/uploader/_sumofile.py @@ -130,6 +130,15 @@ def upload_to_sumo(self, sumo_parent_id, sumoclient, sumo_mode): and self.metadata.get("data").get("format") in ["openvds", "segy"] ): self.metadata["data"]["format"] = "openvds" + if "vertical_domain" not in self.metadata["data"]: + result.update( + { + "status": "rejected", + "metadata_upload_response_status_code": 500, + "metadata_upload_response_text": "File upload cannot be attempted; this is a seismic data object but it does not have a value for data.vertical_domain." + } + ) + return result try: response = self._upload_metadata(