diff --git a/api-openbis-python3-pybis/src/python/pybis/openbis_object.py b/api-openbis-python3-pybis/src/python/pybis/openbis_object.py index d351da7485764e7616f76691ce64798b8cd1b7bb..d19d90b8663914cd324e08e4130962df82702553 100644 --- a/api-openbis-python3-pybis/src/python/pybis/openbis_object.py +++ b/api-openbis-python3-pybis/src/python/pybis/openbis_object.py @@ -71,9 +71,10 @@ class OpenBisObject: # put the properties in the self.p namespace (without checking them) if "properties" in data: for key, value in data["properties"].items(): - data_type = self.p._property_names[key.lower()]['dataType'] - if data_type in ("ARRAY_INTEGER", "ARRAY_REAL", "ARRAY_STRING", "ARRAY_TIMESTAMP"): - value = self.formatter.to_array(data_type, value) + if self.p.type: + data_type = self.p._property_names[key.lower()]['dataType'] + if data_type in ("ARRAY_INTEGER", "ARRAY_REAL", "ARRAY_STRING", "ARRAY_TIMESTAMP"): + value = self.formatter.to_array(data_type, value) self.p.__dict__[key.lower()] = value # object is already saved to openBIS, so it is not new anymore