diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 51b601f0b7ad0c2ca31250ef1865fa6e9ff06b4b..43a1600dbae4a4cbc6e64e82a37c6a5f32dfb49d 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -1982,8 +1982,8 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
           portal_id = key.split('/')[-1]
           portal_type = pt._getOb(portal_id)
         except AttributeError:
-          LOG("portal types not found : ", 100, portal_id)
-          continue
+          raise AttributeError, "Portal type '%s' not found while " \
+              "installing %s" % (portal_id, self.getTitle())
         property_list = self._objects.get(key, [])
         old_property_list = old_objects.get(key, ())
         object_property_list = getattr(portal_type, self.class_property, ())