VERIFIED SOLUTION i
Product Feature: Printing-General Output
Only Static or Split Personalized PDF Content may be optional. In other words if the personalized PDF attachments are being submitted to a batch Outbound Profile as a single compound file then an attachment is expected to be in that compound file for every message represented in the associated DIJ. For real-time Outbound Profiles there is no restriction on when either Static or Personalized Content may be set to optional.
An optional static attachment is attached to an e-mail by setting the value of the AttachName1 DIJ field to the name of the file that needs to be attached. e-Messaging expects to find a file of the specified name in the folder that is configured for Attachment 1 in e-Messaging Outbound Profile. If a filename is specified which cannot be found in this folder then e-Messaging will raise an exception. If the value of the AttachName1 DIJ field is left blank then no file will be attached to the e-mail for Attachment 1, provided Attachment 1 is set to optional in e-Messaging Outbound Profile. Otherwise, if Attachment 1 is not optional, then e-Messaging will raise an exception.
For personalized PDF attachments, e-Messaging expects to find either a single compound PDF file, or an individual PDF file for each message. In the case of a single compound PDF file, the main part of the filename must equal that of the DIJ being processed and the order of documents in the compound PDF file MUST match the order of the message descriptions in the DIJ. In the case of individual PDF files, the PDF file to be attached to the first message described in the DIJ is main_part_of_DIJ_filename_0000001.pdf, then main_part_of_DIJ_filename_0000002.pdf, etc. The numbering in the individual PDF filenames MUST match the order of the message descriptions in the DIJ being processed. By default, this would always be the case, provided the compound or split PDF and DIJ are generated by the same Generate job. Additional content verification based on Document Instance ID can be configured in an e-Messaging Outbound Profile, to guarantee that the correct content is always attached to a given message.
UPDATED: October 30, 2017