cmis import from excel file

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

0 votes

0 answers

1833 views

ANSWER

This is the error on the client side. What's the error on the server side?
11/12/2012

For importing files from an Excel list into Nuxeo, you can try to use Talend and its tAdvancedCMISOutput component. This component is available on Talend Exchange : http://www.talendforge.org/exchange/index.php?eid=733&product=tos&action=view&nav=1,1,1
01/09/2013