improve Assets import logs in relationship to violation of unique constraint

XMLWordPrintable

      At the moment the Assets import logs print an exception where a unique constraint on an attribute set as unique is violated but they do not print which item value is violating it.

      Ex.

      • an attribute serial number is set as unique
      • the import source try to import a serial number which already exists in another object in the object type
      • following exception is thrown out:
      Error messages: context: rlabs-insight-attribute-5762; messages: [ErrorMessage {i18nKey='rlabs.insight.i18n.constraint.violation.unique', parameters=[Name of the attrribute], additionalMessage=null}
      

      As above example the error report the cause and the attribute name but not the actual value which cannot be duplicated.

      Adding the offending value as well would make a research quite more easier.

            Assignee:
            Andrew Bui
            Reporter:
            Tiziana Marchionni (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: