Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jul 24, 2018 at 08:08 AM

    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.



    Add comment
    10|10000 characters needed characters exceeded

    • 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