When attempting to start a process via email, at least one the following errors is seen in the application server log:
Error 1:
ERROR com.appiancorp.messaging.MessagePublisherServiceImpl - Could not process received email java.lang.NumberFormatException: For input string: "<XXXX>"
Error 2:
ERROR com.appiancorp.mdb.EmailHandlerBean - Error receiving message in EmailHandlerBean MDB javax.mail.MessagingException: Message could not be sent; nested exception is: java.lang.NumberFormatException: For input string: "<XXXX>" ... Caused by: java.lang.NumberFormatException: For input string: "<XXXX>"
This issue occurs when an invalid character is found in the parameter after the corresponding destination key (process, processmodel, event) in the email address used to start the process.
For instance, in process<id>@appian.com, <id> should only consist of numbers, but if a non-numeric character is inserted somewhere in the <id> parameter, then the NumberFormatException error will be thrown.
process<id>@appian.com
<id>
Refer to Sending an Email Message to a Process for more information.
There are two solutions:
process<id>@domain.com
event<eventId>@domain.com
processmodel<id>@domain.com
processmodeluuid<model_uuid>@domain.com
This article applies to all versions of Appian.
Last Reviewed: March 2017