11-12-2012 10:18 AM
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
11-12-2012 11:32 AM
This is the error on the client side. What's the error on the server side?
01-09-2013 10:02 AM
For importing files from an Excel list into Nuxeo, you can try to use Talend and its tAdvancedCMISOutput component.
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.