on 07-20-2018 11:01 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.