cancel
Showing results for 
Search instead for 
Did you mean: 

Bulk importer - diable bulk mode in documentation seems not correct

Benjamin_JALON
Confirmed Champ
Confirmed Champ

Hi, I follow the documentation here : https://doc.nuxeo.com/nxdoc/nuxeo-bulk-document-importer/ That says to put that to disable bulk mode :

<extension target="org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent" point="importerConfiguration"> 
  <importerConfig> 
    <bulkMode>false</bulkMode> 
  </importerConfig> 
</extension>

I have a null pointer exception here :

            Class<? extends DefaultDocumentModelFactory> docFactoryClass = descriptor.getDocumentModelFactory().getDocumentModelFactoryClass();

I gonna try to fix that with this contribution :

<?xml version="1.0" encoding="UTF-8"?>
<component name="com.nuxeo.disable.bulk.mode" version="1.0.0">
<require>org.nuxeo.ecm.platform.importer.service.jaxrs.contrib</require>
<extension target="org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent" point="importerConfiguration">
<importerConfig sourceNodeClass ="org.nuxeo.ecm.platform.importer.source.FileWithMetadataSourceNode" >
<bulkMode>false</bulkMode>
<documentModelFactory leafType="File" folderishType="Folder" documentModelFactoryClass="org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory" />
<enablePerfLogging>true</enablePerfLogging>
</importerConfig>
</extension>
</component>

What do you think ?

1 ACCEPTED ANSWER

Manon_Lumeau
Star Contributor
Star Contributor

Hi Benjamin!

Thank you very much for your help! I created a JIRA ticket to fix the page, if you want to follow its resolution.

Regards,

Manon

View answer in original post

4 REPLIES 4

Benjamin_JALON
Confirmed Champ
Confirmed Champ

It seems working. Maybe this can be fixed in the documentation ?

Welcome back Benjamin !!!

Hello Benjamin,

Manon_Lumeau
Star Contributor
Star Contributor

Hi Benjamin!

Thank you very much for your help! I created a JIRA ticket to fix the page, if you want to follow its resolution.

Regards,

Manon

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.