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.