11-11-2015 05:07 PM
I've generated a file using Studio Automation Chain operator Conversion >> Render Document. This works fine; if I add "User Interface -> Download File afterwards, the desired file is downloaded. I'd like to attach this file to the document from which it was rendered, using xpath files:files. Unfortunately, when I click the user action button, I get this error: "Failed to inject parameter 'document'. Seems it is missing from the context. Operation: Blob.Attach"
Here is my automation chain:
The error I get is: Caught error: Failed to invoke operation BlobHolder.Attach Caused by: java.lang.NullPointerException ****** Hierarchy calls ****** org.nuxeo.ecm.automation.core.operations.FetchContextDocument org.nuxeo.ecm.automation.core.operations.SetVar org.nuxeo.ecm.automation.core.rendering.operations.RenderDocument org.nuxeo.ecm.automation.core.operations.services.BlobHolderAttach .... Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation BlobHolder.Attach
Any suggestions? I'm using Nuxeo 6.0 and have applied HF1-22.
11-11-2015 09:42 PM
Figured out the answer. Instead of this line: Context.SetVar: name: currentMyDoc value: “@{Document['uid:uid']}” I needed this line: Context.SetVar: name: currentMyDoc value: “@{Document.id}”
11-11-2015 09:42 PM
Figured out the answer. Instead of this line: Context.SetVar: name: currentMyDoc value: “@{Document['uid:uid']}” I needed this line: Context.SetVar: name: currentMyDoc value: “@{Document.id}”
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.