Highlighted

Problem "send Email with Attachment"

Avatar

Guest

11-08-2008

Hi,

I want send an Email with Attachment but I can't attach "xfa","Document Form" type to my mail.

I have :



Cannot coerce object: com.adobe.idp.taskmanager.form.impl.binarycontent.BinaryContentFormInstance@49dda9 of type: com.adobe.idp.taskmanager.form.impl.binarycontent.BinaryContentFormInstance to type: interface java.util.List: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: com.adobe.idp.taskmanager.form.impl.binarycontent.BinaryContentFormInstance@49dda9 of type: com.adobe.idp.taskmanager.form.impl.binarycontent.BinaryContentFormInstance to type: interface java.util.List

at com.adobe.idp.dsc.util.CoercionUtil.toMap(CoercionUtil.java:1201)

at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:981)



and more.



Any ideas?

Thanks.

Replies

Highlighted

Jasmin_Charbonn

11-08-2008

The Email with Attachment expects the content of attachment to be in a 'document' variable.



If you want to attach the a Document Form, you would have to extract the content of that variable and put it in a 'document' variable.



Jasmin
Highlighted

Jasmin_Charbonn

12-08-2008

Sure you can.



You can use a xPath expression in a setValue. Something like /process_data/MyDocumentForm/object/document.



This will give you data for the Document Form variable.



Jasmin
Highlighted

Avatar

Guest

13-08-2008

Hi,

When I put /process_data/NameForm/object/@document in a String I have :



rO0ABXNyABZjb20uYWRvYmUuaWRwLkRvY3VtZW50yAEFUxsO+CEDACNJAAtfY2FsbGJhY2tJZFoADV9kZXNlcmlhbGl6ZWRJABBfZGlzcG9zYWxUaW1lb3V0WgAJX2Rpc3Bvc2VkWgAZX2lzRGlzcG9zYWxUaW1lb3V0RGVmYXVsdFoAE19pc1RyYW5zYWN0aW9uQm91bmRKAAdfbGVuZ3RoSQAOX21heElubGluZVNpemVaAAhfb3duRmlsZVoAC19wYXNzaXZhdGVkWgALX3BlcnNpc3RlbnRJABFfc2VuZGVyQ2FsbGJhY2tJZFoAEV9zZW5kZXJQYXNzaXZhdGVkWgARX3NlbmRlclBlcnNpc3RlbnRJAA5f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hwdABNc2Vzc2lvbl93ZnRhc2tmb3JtaWQ3MTYvLi4vZG9jbTEyMTg2MjEyOTMwMDgvY2YwNjhmNzAyMmI0MjA4ODAzNzllOGRiZjNiNDk1YTR0AA9hcHBsaWNhdGlvbi9wZGZwc3IAEWphdmEudXRpbC5IYXNoTWFwBQfawcMWYNEDAAJGAApsb2FkRmFjdG9ySQAJdGhyZXNob2xkeHA/QAAAAAAADHcIAAAAEAAAAAN0AAx0ZW1wbGF0ZVBhdGh0ACcvUE9Dcy9GVCBTSSBSSC9Gb3JtdWxhaXJlQWJzZW5jZSBWMi5wZGZ0AAl1c2VyQWdlbnR0AFlNb3ppbGxhLzUuMCAoV2luZG93czsgVTsgV2luZG93cyBOVCA1LjE7IGZyOyBydjoxLjguMS4xNikgR2Vja28vMjAwODA3MDIgRmlyZWZveC8yLjAuMC4xNnQAC2Vudmlyb25tZW50dAEHJkhUVFBfQUNDRVBUX0xBTkdVQUdFPWZyLGZyLWZyO3E9MC44LGVuLXVzO3E9MC41LGVuO3E9MC4zJkhUVFBfSE9TVD1pdGVtLTU1NjY3OjgwODAmSFRUUF9VU0VSX0FHRU5UPU1vemlsbGEvNS4wIChXaW5kb3dzOyBVOyBXaW5kb3dzIE5UIDUuMTsgZnI7IHJ2OjEuOC4xLjE2KSBHZWNrby8yMDA4MDcwMiBGaXJlZm94LzIuMC4wLjE2JkNPTlRFTlRfVFlQRT1hcHBsaWNhdGlvbi9wZGYmQ09OVEVOVF9MRU5HVEg9NDcwOTQ1JlNFUlZFUl9OQU1FPWl0ZW0tNTU2Njd4dzcALWFkb2JlL2lkcC9Eb2N1bWVudFB1bGxTZXJ2YW50L2Fkb2JlamJfc2VydmVyMQAAAAAABy+heA==



I tried to put this in a xfa but it didn't work.

thanks.
Highlighted

Avatar

Guest

13-08-2008

in the email component for the attachment variable,drill down into the documentForm object and select the document node.This will send the document as email attachment

girish

mergeandfuse@gmail.com
Highlighted

Avatar

Guest

14-08-2008

Hi,

I tried to put in Attachments field :

/process_data/NameForm/object/@document



I have an exception to "Send Email with Attachments":

Cannot coerce object ...



And I tried to put /process_data/NameForm/object/@document in a document variable but I have the same exception type.
Highlighted

Jasmin_Charbonn

14-08-2008

Try to put it in an document variable instead of accessing the property of the Document Form. The way you do it should be fine, but for some reason LC might not like it.



Just use a setValue before and extract the document in a document variable and see if that works.



Jasmin
Highlighted

Avatar

Guest

18-08-2008

Hi,

I tried to put /process_data/NameForm in a document variable (with a setValue) and send it, but exception.

I tried to put /process_data/NameForm/object/@document in a document variable, with a setValue, and, after, export this document variable(with exportData) in an other document variable and send it, but exception.

Thanks