06-10-2016 11:22 AM
Hi all, I've customized our Bulk import form but I'm facing to issues with some fields.
If I upload a PDF or ODT file, there is no problem but when I try to upload a txt file, there is an exception caused by fileds which.
All fields which use a custom vocabulary or the ldap username autocomplete are not accepted.
For exemple, I'have a single vocabulary called "ulr:meeting_type" When I import a PDF file, there is no problem, but when I import a txt file, nuxeo throws this exception :
Do you know why ?
****** chain ****** Name: FileManager.ImportWithMetaDataInSeam Exception: OperationException Caught error: Failed to invoke operation Document.Update Caused by: org.nuxeo.ecm.core.api.model.PropertyNotFoundException: ulr:meeting_type ****** Hierarchy calls ****** org.nuxeo.ecm.automation.core.operations.services.FileManagerImport org.nuxeo.ecm.automation.core.operations.document.UpdateDocument
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:232)
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115)
at org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent.execute(BatchManagerComponent.java:283)
at org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent.execute(BatchManagerComponent.java:249)
at org.nuxeo.ecm.webapp.action.ImportActions.importDocumentsThroughBatchManager(ImportActions.java:293)
at org.nuxeo.ecm.webapp.action.ImportActions.importDocuments(ImportActions.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
06-10-2016 03:20 PM
The txt file could be mapped to another doctype (Note) hence the error.
06-13-2016 03:01 PM
Mohamed,
06-14-2016 08:35 AM
Hi Yousuf Nejati
06-14-2016 08:37 AM
Hi pibou Bouvret
06-14-2016 08:54 AM
In the contribution I mentionned, the "NoteImporter" plugin tries to create a Note document when a file whose MIME type is "text/plain" is imported.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.