cancel
Showing results for 
Search instead for 
Did you mean: 

Customize BulkImporter

Mohamed_Belmokh
Star Contributor
Star Contributor

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)
5 REPLIES 5

pibou_Bouvret
Elite Collaborator
Elite Collaborator

The txt file could be mapped to another doctype (Note) hence the error.

Yousuf_Nejati
Star Contributor
Star Contributor

Mohamed,

Mohamed_Belmokh
Star Contributor
Star Contributor

Hi Yousuf Nejati

Mohamed_Belmokh
Star Contributor
Star Contributor

Hi pibou Bouvret

pibou_Bouvret
Elite Collaborator
Elite Collaborator

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.

Getting started

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.