I am having a same problem and could not make it work right. Do you have a sample workflow for this, could you please post it here to share? I appreciated
Thanks a lot,
Hi Han Dao,
If you are facing an exception of the form "com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@335d of type: [B to type: interface org.w3c.dom.Document.", It is because the system is trying to cast a Byte Stream into w3c Document and failing. To resolve this we can explicitly cast this byte stream to appropriate data type (String in previous example). To do so we can use a SetValue operation.
As an example
/process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email -> /process_data/facilityAuthority/object/@email
results in the exception
so we can modify it to
/process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email -> string(/process_data/facilityAuthority/object/@email)
Please let me know if this does not resolve your issue.