diff --git a/product/ERP5Type/mixin/matrix.py b/product/ERP5Type/mixin/matrix.py
index 57e3894de0cfc39110bd469dd72bea151ada08a6..e16b79c72cac362cfdf197a11dd481aeb04697b7 100644
--- a/product/ERP5Type/mixin/matrix.py
+++ b/product/ERP5Type/mixin/matrix.py
@@ -30,7 +30,9 @@ from Products.ERP5Type.Globals import InitializeClass, PersistentMapping
 from Acquisition import aq_base
 from AccessControl import ClassSecurityInfo
 from Products.ERP5Type import Permissions
+from Products.ERP5Type.ConsistencyMessage import ConsistencyMessage
 from Products.ERP5Type.Utils import cartesianProduct, INFINITE_SET
+
 from Products.ERP5Type.Accessor.Constant import PropertyGetter as ConstantGetter
 
 from zLOG import LOG
@@ -480,12 +482,13 @@ class Matrix(object):
     to_delete_set = set()
     error_list = []
     def addError(error_message):
+      error_message = "XMLMatrix inconsistency: " + error_message
       if fixit:
         error_message += ' (fixed)'
-      error = (self.getRelativeUrl(),
-               'XMLMatrix inconsistency',
-               102,
-               error_message)
+      error = ConsistencyMessage(self,
+                                 object_relative_url=self.getRelativeUrl(),
+                                 message=error_message,
+                                 mapping={})
 
       error_list.append(error)