cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get only one payload to appear in the message monitor in PI?

0 Kudos

Hello, PI experts:

The scenario is that we have to pick up a file from a Box FTP and send that file to a vendor's SFTP. However, it seems like two payloads are being created - the MainDocument payload which is basically blank and an attachment which contains the actual content that needs to be sent to the vendor.

I have already tried a payload swap, but it doesn't seem to be working. My colleague said that we shouldn't even be creating this MainDocument payload in the first place. Does anyone know the Java code needed in the message mapping in order to only create one payload (the attachment)? Are there any other configurations needed in either the enterprise services builder or the integration builder in order to create only one payload?

The reason why I believe the MainDocument payload is getting sent instead of the actual file is because of the dramatic reduction in size compared to when PI first picks up the file and when it is sends the file to the vendor. I also downloaded the MainDocument to my desktop and checked the file properties. The byte size is exactly the same as that in the resulting file being sent to the vendor.

Accepted Solutions (0)

Answers (1)

Answers (1)

azharshaikh
Active Contributor

Hello Elna,

Can you please check if you are using any additional File picking setup / option in you Sender Channel? Try using the exact file name match for polling & check the results.

Regards,

Azhar

Hi, Azhar,

Thanks for replying! However, I was using the exact file name matching in the FTP channel picking up the files from the Box account. This still created TWO payloads. I was able to solve this issue by doing a bit more research and finding an alternative Java code for the message mapping. Now I am only getting one payload.

Kind regards,

Elna Hantalasevic

former_member706326
Discoverer
0 Kudos

ehantalasevic Hello! I am having the same problem where I just need the file and not the MainDocument. How were you able to remove the other payload?