Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Problem "send Email with Attachment"

Avatar

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

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

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

Avatar

11-08-2008

Hi,

Thanks.

But how can it be done ?

Can I get attributes of Document Form ?

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

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

Avatar

12-08-2008

Workbench ES Help documents the attributes for all variable types.



For Document Form, click Data Items in this topic:



http://livedocs.adobe.com/livecycle/es/wb_help/00000752.html



scott

Avatar

13-08-2008

Hi,

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



rO0ABXNyABZjb20uYWRvYmUuaWRwLkRvY3VtZW50yAEFUxsO+CEDACNJAAtfY2FsbGJhY2tJZFoADV9kZXNlcmlhbGl6ZWRJABBfZGlzcG9zYWxUaW1lb3V0WgAJX2Rpc3Bvc2VkWgAZX2lzRGlzcG9zYWxUaW1lb3V0RGVmYXVsdFoAE19pc1RyYW5zYWN0aW9uQm91bmRKAAdfbGVuZ3RoSQAOX21heElubGluZVNpemVaAAhfb3duRmlsZVoAC19wYXNzaXZhdGVkWgALX3BlcnNpc3RlbnRJABFfc2VuZGVyQ2FsbGJhY2tJZFoAEV9zZW5kZXJQYXNzaXZhdGVkWgARX3NlbmRlclBlcnNpc3RlbnRJAA5fc2VuZGVyVmVyc2lvbkkABl9zdGF0ZUwAC19hdHRyaWJ1dGVzdAATTGphdmEvdXRpbC9IYXNoTWFwO0wACF9jYWNoZUlkdAAfTGNvbS9hZG9iZS9pZHAvRG9jdW1lbnRDYWNoZUlEO0wADF9jYWxsYmFja1JlZnQAIUxjb20vYWRvYmUvaWRwL0lEb2N1bWVudENhbGxiYWNrO0wADF9jb250ZW50VHlwZXQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAC19kYXRhQnVmZmVydAAeTGNvbS9hZG9iZS9zZXJ2aWNlL0RhdGFCdWZmZXI7TAAPX2V4cGlyYXRpb25UaW1ldAAQTGphdmEvbGFuZy9Mb25nO0wABV9maWxldAAOTGphdmEvaW8vRmlsZTtMABBfZ2x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oxLjguMS4xNikgR2Vja28vMjAwODA3MDIgRmlyZWZveC8yLjAuMC4xNnQAC2Vudmlyb25tZW50dAEHJkhUVFBfQUNDRVBUX0xBTkdVQUdFPWZyLGZyLWZyO3E9MC44LGVuLXVzO3E9MC41LGVuO3E9MC4zJkhUVFBfSE9TVD1pdGVtLTU1NjY3OjgwODAmSFRUUF9VU0VSX0FHRU5UPU1vemlsbGEvNS4wIChXaW5kb3dzOyBVOyBXaW5kb3dzIE5UIDUuMTsgZnI7IHJ2OjEuOC4xLjE2KSBHZWNrby8yMDA4MDcwMiBGaXJlZm94LzIuMC4wLjE2JkNPTlRFTlRfVFlQRT1hcHBsaWNhdGlvbi9wZGYmQ09OVEVOVF9MRU5HVEg9NDcwOTQ1JlNFUlZFUl9OQU1FPWl0ZW0tNTU2Njd4dzcALWFkb2JlL2lkcC9Eb2N1bWVudFB1bGxTZXJ2YW50L2Fkb2JlamJfc2VydmVyMQAAAAAABy+heA==



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

thanks.

Avatar

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

Avatar

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.

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

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

Avatar

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