Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24890

Improve error message by showing critical missing info such as field name

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.10
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Importer

      Description

      Getting the following error when trying to import documents with the Bulk Importer REST API (nuxeo-platform-importer plugin)

      2018-04-18 12:27:30,016 ERROR [Nuxeo-Importer-1] [org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask] Error during import
      org.nuxeo.ecm.core.api.validation.DocumentValidationException: 2 constraint violation(s) thrown. First one is: ‘Value is required.’, call DocumentValidationException.getViolations() to get the others
      at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:701)
      at org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory.defaultCreateLeafNode(DefaultDocumentModelFactory.java:144)
      at org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory.createLeafNode(DefaultDocumentModelFactory.java:115)
      at org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.doCreateLeafNode(GenericThreadedImportTask.java:213)
      at org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.recursiveCreateDocumentFromNode(GenericThreadedImportTask.java:336)
      at org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.recursiveCreateDocumentFromNode(GenericThreadedImportTask.java:331)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: