diff --git a/Products/zms/_objattrs.py b/Products/zms/_objattrs.py
index 392d2d178..624a41350 100644
--- a/Products/zms/_objattrs.py
+++ b/Products/zms/_objattrs.py
@@ -723,14 +723,17 @@ def isActive(self, REQUEST):
def formatObjAttrValue(self, obj_attr, v, lang=None):
#-- DATATYPE
- datatype = obj_attr.get('datatype_key', _globals.DT_UNKNOWN)
+ try:
+ datatype = obj_attr.get('datatype_key', _globals.DT_UNKNOWN)
+ except:
+ datatype = _globals.DT_UNKNOWN
#-- VALUE
if isinstance(v, str):
chars = ''.join([ x for x in string.whitespace if x != '\t'])
v = v.strip(chars)
# Retrieve v from options.
- if 'options' in obj_attr:
+ if obj_attr is not None and 'options' in obj_attr:
options = obj_attr['options']
try:
i = options.index(int(v))
diff --git a/Products/zms/import/exampledb.metaobj.xml b/Products/zms/import/exampledb.metaobj.xml
index 456800ad8..50f1840c3 100644
--- a/Products/zms/import/exampledb.metaobj.xml
+++ b/Products/zms/import/exampledb.metaobj.xml
@@ -14,7 +14,7 @@