cancel
Showing results for 
Search instead for 
Did you mean: 

cmis import from excel file

acarey
Champ in-the-making
Champ in-the-making

Hello,

I have written a script to import some files from an excel list into nuxeo.

I have managed to put some documents of "cmis:document" type into the defult-domain folder, though if I change in my excel file the type for "feuilledetemps", which is my custom nuxeo type, I get the following error:

2012-11-12 09:07:17,785 ERROR [main] (CmisAtomImporter.java:112) - 
org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Bad Request
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:399)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:481)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getTypeDefinitionInternal(AbstractAtomPubService.java:737)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:79)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:137)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getTypeDefinition(SessionImpl.java:474)
at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(ObjectFactoryImpl.java:284)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:612)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:96)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:410)
at com.savoirfairelinux.repository.importer.cmis.CmisAtomImporter.addDocument(CmisAtomImporter.java:155)
at com.savoirfairelinux.repository.importer.cmis.CmisAtomImporter.doImport(CmisAtomImporter.java:91)
at com.savoirfairelinux.repository.client.RepositoryImporter.run(RepositoryImporter.java:46)
at com.savoirfairelinux.repository.client.Main.main(Main.java:43)

I have defined my nuxeo type properly and Managed to upload documents directly in the nuxeo application. How am I supposed to indicate to cmis that "feuilledetemps" is a valid type?

Help would really be appreciated.

Regards,

Alice

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

This is the error on the client side. What's the error on the server side?

julienboulay
Champ in-the-making
Champ in-the-making

For importing files from an Excel list into Nuxeo, you can try to use Talend and its tAdvancedCMISOutput component.

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.