Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Trouble when assining pdf document to Document Form

Avatar

Former Community Member
Hi!



I'm not able to set a PDF document (type document) into an empty variable of type Document Form. Beforehand, the PDF document has been written to filesystem and will be restored later in another process (using Read Document service). I set the document to the Document Form using the output variable of the "Read Document" service: /process_data/faxDocForm/object/@document = document



The following error occurs when setting to document to the Document Form:



i Caused by: java.lang.RuntimeException: FormInstanceId or ProcessId must be set in order to flush document

at

i com.adobe.idp.taskmanager.form.impl.binarycontent.BinaryContentFormInstance.flushDocument(BinaryContentFormInstance.java:168)

at

i com.adobe.idp.taskmanager.form.impl.binarycontent.BinaryContentFormInstance.setDocument(BinaryContentFormInstance.java:115)



Does anyone know this problem? Would be cool to receive any hints!

Regards, Nico
1 Reply

Avatar

Former Community Member
I could solve this problem at my own. The crucial point is that a document always needs to be represented by a document variable (type document!).



Workaround:

1. Read document and assign it to a document variable.

2. Afterwards set the document to the Document Form variable.



That's it.

Nico