Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to determine the size of a flat file attachment in a mail sender cc?


I use PI 7.11

I have a scenario where a flat file attachment is being picked up by a MailSender adapter and if the size of the attached flat file is larger that 500 bytes the receiver is A and if the attachment is less that 500 bytes the receiver is B.

I have checked the Context Object list in the Conditions section of Receiver Determination, and it seems, that only the file adapter allows for validation on the file size.

I contemplated an extended receiver determination but the attachment is a flat file which just needs to be passed thru without being converted to an XML document, so my source document is not of XML format.

An other but not very nice way would be to use an intermediate folder to drop the attachment in and from there use a file sender adapter and thus get access to the filesize attribute in my receiver determination, but I would like to avoid this.

Any suggestions?

BR MIkael

Former Member
Not what you were looking for? View more on this topic or Ask a question