-
Type: Improvement
-
Status: In Progress
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 9.10
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Importer
-
Tags:
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)
- is related to
-
NXP-24949 add getViolations() to DocumentValidationException
- Open