KB-1516 Email with duplicate message ids in email field cannot go to two different processmodeluuid#### email addresses in Appian Cloud

Symptoms

When an email is sent to 2 aliased addresses, Appian Cloud receives 2 emails with the same Message-ID attribute in the email headers and see these messages in the logs:

20:54:08,120 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,120 [Appian EmailHandlerBean - 16] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
20:54:08,136 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,136 [Appian EmailHandlerBean - 16] INFO com.appiancorp.messaging.MessagePublisherServiceImpl - Ignored duplicate message [MessageType=Email, UserName=ANONYMOUS, DestinationPMUUID=[0036d806-319a-8000-5451-680000680000, 0036da50-2502-8000-5451-680000680000, 0009d4c7-b3db-8000-5451-680000680000], DestinationPMID=null, DestinationProcessID=null, DestinationEventPersistentID=null]
20:54:08,136 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,136 [Appian EmailHandlerBean - 16] INFO com.appiancorp.messaging.MessagePublisherServiceImpl - Duplicate message on execution server. id=null
20:54:08,136 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,136 [Appian EmailHandlerBean - 16] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
20:54:08,137 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,137 [Appian EmailHandlerBean - 16] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
20:54:08,142 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,142 [Appian EmailHandlerBean - 16] INFO com.appiancorp.messaging.MessagePublisherServiceImpl - Ignored duplicate message [MessageType=Email, UserName=ANONYMOUS, DestinationPMUUID=[0036d806-319a-8000-5451-680000680000, 0036da50-2502-8000-5451-680000680000, 0009d4c7-b3db-8000-5451-680000680000], DestinationPMID=null, DestinationProcessID=null, DestinationEventPersistentID=null]
20:54:08,143 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,143 [Appian EmailHandlerBean - 16] INFO com.appiancorp.messaging.MessagePublisherServiceImpl - Duplicate message on execution server. id=null
20:54:08,143 INFO [stdout] (Appian EmailHandlerBean - 16) 2016-12-01 20:54:08,143 [Appian EmailHandlerBean - 16] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design

Note: Aliased addresses are configured in the custom.properties under the conf.mailhandler.alias.<recipientName>=<routing> property

In summary:

Case Result
1 email, multiple aliased emails Duplicate Message-ID emails rejected
Distinct emails to individual aliased emails Unique Message-IDs, all expected processes kicked off
1 email, multiple processmodeluuid#### emails Duplicate Message-IDs, all expected processes kicked off
Distinct emails to individual processmodeluuid#### emails Unique Message-IDs, all expected processes kicked off

Cause

This behavior is expected. Appian Cloud will reject one of the emails with duplicate message IDs.

Action

To get both processes working, do one of the following :

Sent Received by Cloud Result
2 emails to individual aliased emails 2 emails to individual processmodeluuid#### emails, different Message-IDs 2 processes started
1 email, 2 processmodeluuid#### emails 2 emails to individual processmodeluuid#### emails, same Message-ID 2 process started, Duplicate rejected
2 emails to individual processmodeluuid#### emails 2 emails to individual processmodeluuid#### emails, different Message-IDs 2 processes started

Affected Versions

This article applies to all versions of Appian Cloud.

Last Reviewed: February 2018

Related
Recommended