cancel
Showing results for 
Search instead for 
Did you mean: 

Mail with csv attachment - Swap and Transform.

former_member183909
Active Participant
0 Kudos

Hi

I have a Mail Sender adapter configured to read emails and transform the attached .csv file into XML.

The Sender channel processes the message OK but the payload for my message type contains no body.   I have checked that my content conversion parameters are correct by using them in a Sender File Content Conversion channel and the same attached file that I am using in an email attachment will transform just fine.  It must be something to do with the way I'm using these modules.

In the Mail Sender comms channel I am using the additional Modules

AF_Modules/PayloadSwapBean

AF_Modules/MessageTransformBean

I have also tried to use just the MessageTransformBean with Transform.ContentDisposition  = attachment;filename="COMPETENCYREPORT.csv"

Regardless this also only produces an XML message with no body.  This is seen out of the Sender Comms Channel in the RWB.

Why is this so ?

<?xml version="1.0" encoding="utf-8"?>

<ns:mt_Competency xmlns:ns="urn:mycompany.com:LMS:Competency">

</ns:mt_Competency>

Here's one of the different permutations that I've tried;

Accepted Solutions (1)

Accepted Solutions (1)

former_member183909
Active Participant
0 Kudos

Had to remove the xml.endSeparator

Now it works.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Instead of Payload-Name use Content-Description and then check?

PayloadSwapBean     swap.keyName     Content-Description

Thanks

Amit Srivastava