cancel
Showing results for 
Search instead for 
Did you mean: 

'An error occured' - Document of type 'picture' created through PHP automation client

Kimberley_Masse
Champ on-the-rise
Champ on-the-rise

I'm using the PHP automation client to bulk import some images. When I create document 'file' everything works fine, but if I change it to 'picture' it seems to work and I get a response like: _{"entity-type":"document","repository":"default","uid":"6f71c94b-92e6-48ef-a3bb-bc20ed9ddce7","path":"/default-domain/workspaces/Sample Content/13445.jpg","type":"Picture","state":"project","parentRef":"e5ff9e6a-a019-4fc8-a0e0-167db9eb6488","isCheckedOut":true,"changeToken":"1470662900757","title":"13445.jpg","lastModified":"2016-08-08T13:28:20.75Z","facets":["Versionable","Publishable","Picture","Commentable","HasRelatedText"]}_ But then when I go to click on the document I get 'An error occurred'. Even trying an empty picture through curl has the same issue: _curl -X POST -H 'Content-Type: applicat, "properties": {"dc:title": "My great new picture"}}' http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/Sample%20Content_ Any advice on any config/parameters I'm missing? Or other ways to achieve this? Thanks

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

"An error occurred" Yes but what error? Please check the server logs.

Kimberley_Masse
Champ on-the-rise
Champ on-the-rise

Hi. The full error log is http

Kimberley_Masse
Champ on-the-rise
Champ on-the-rise

Retrying with the automation client (instead of curl/the API) this is now working fine - I think there may have been an issue with permissions.

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.