Duplicate messages

The Global Mailbox supports uploading and downloading of messages with same names (duplicate) through SFTP and FTP.

Duplicate message support is case insensitive. For example, if you have a message with name test, and another one with TEST or teST then the messages are considered as duplicate of each other. When you download a message with duplicate name, the newest extractable message is downloaded. If extraction count is configured for the newest file, and if the extraction count of the file reaches 0 remaining extractions, then the next download fetches the next newest duplicate file.

To upload or download a duplicate message, you must set the com.ibm.mailbox.messages.allowDuplicates property to true when you register Sterling B2B Integrator with Global Mailbox. If com.ibm.mailbox.messages.allowDuplicates property is set to false, and you upload a message with the same name, the new message overwrites the existing message.
Important: If you set com.ibm.mailbox.messages.allowDuplicates to true and upload files with same name, duplicate files with different timestamp are created. Later if you set com.ibm.mailbox.messages.allowDuplicates to false, then every time a business process runs, a file with the duplicate name is deleted until the data in the mailbox aligns with the configuration of the com.ibm.mailbox.messages.allowDuplicates property.

The listDuplicates property in the ftpserver.properties and sftpserver.properties files controls how the FTP Server adapter and the SFTP Server adapter handle presence of multiple files with same name in a mailbox. When the property is set to true, the FTP and SFTP Server adapters list all the duplicate messages. When the property is set to false, only the newest file is shown in the list.

Additionally, for FTP and SFTP transfers, you can configure the Support for concurrent duplicate named file transfers parameter, which is available in the FTP and SFTP Server adapter configuration wizards. Currently, Limited and Full (resume of file transfers not supported) options are supported for Global Mailbox. For more information about the parameter and supported options, see the FTP Server Adapter topic.

For FTP and SFTP transfers, if you configure the FTP or SFTP Server adapter to enable Global Mailbox, and also select the option Full, concatenate duplicate-named files on a GET (resume of file transfers not supported), the adapter ignores the concatenation request when operating on Global Mailbox. Instead, the adapter returns the newest message with the name that is specified in the request. If you enable Global Mailbox and concatenation, a warning message, stating that the concatenation setting is ignored, is printed in the adapter logs.