<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1163 "Could not process received email... Message could not be sent... java.lang.NumberFormatException: For input string: "id1234"" error thrown when sending an email to an alias</title><link>https://community.appian.com/support/w/kb/380/kb-1163-could-not-process-received-email-message-could-not-be-sent-java-lang-numberformatexception-for-input-string-id1234-error-thrown-when-sending-an-email-to-an-alias</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1163 "Could not process received email... Message could not be sent... java.lang.NumberFormatException: For input string: "id1234"" error thrown when sending an email to an alias</title><link>https://community.appian.com/support/w/kb/380/kb-1163-could-not-process-received-email-message-could-not-be-sent-java-lang-numberformatexception-for-input-string-id1234-error-thrown-when-sending-an-email-to-an-alias</link><pubDate>Mon, 23 Jul 2018 03:59:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:842fcd17-2ac7-4986-8234-373d5dee0050</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/380/kb-1163-could-not-process-received-email-message-could-not-be-sent-java-lang-numberformatexception-for-input-string-id1234-error-thrown-when-sending-an-email-to-an-alias#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 7/23/2018 3:59:58 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Sending an email to an alias fails to trigger the configured process model. The following messages are seen in the application server log&lt;/p&gt;
&lt;pre&gt;[Appian EmailHandlerBean - 0] ERROR com.appiancorp.messaging.MessagePublisherServiceImpl - Could not process received email

INFO  [stdout] (Appian EmailHandlerBean - 0) java.lang.NumberFormatException: For input string: &amp;quot;id1234&amp;quot;
&lt;/pre&gt;
&lt;p&gt;AND&lt;/p&gt;
&lt;pre&gt;[Appian EmailHandlerBean - 0] ERROR com.appiancorp.mdb.EmailHandlerBean - Error receiving message in EmailHandlerBean MDB

INFO  [stdout] (Appian EmailHandlerBean - 0) javax.mail.MessagingException: Message could not be sent;

INFO  [stdout] (Appian EmailHandlerBean - 0)   nested exception is:

10:41:35,044 INFO  [stdout] (Appian EmailHandlerBean - 0)   java.lang.NumberFormatException: For input string: &amp;quot;id1234&amp;quot;
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This happens because of a misconfiguration in the &lt;strong&gt;custom.properties&lt;/strong&gt; file, specifically in the &lt;code&gt;conf.mailhandler.alias&lt;/code&gt; part. The routing prefixes were likely misconfigured, which means the system won&amp;rsquo;t be able to find the right process model to trigger.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;The misconfiguration likely happened in the routing prefix. The value &lt;code&gt;processmodelid1234&lt;/code&gt; was probably used as opposed to &lt;code&gt;processmodel1234&lt;/code&gt; (the latter being the correct value). Thus, the value &lt;code&gt;id1234&lt;/code&gt; becomes the ID that the system looks when it should be looking for &lt;code&gt;1234&lt;/code&gt;. Once this is corrected in the &lt;strong&gt;custom.properties&lt;/strong&gt; file and the site is restarted, you will get around this error.&lt;/p&gt;
&lt;p&gt;A separate recommendation would be to always use &lt;code&gt;processmodeluuid&lt;/code&gt; because this parameter does not change when moving the model through different environments and always remains constant.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html"&gt;Sending an Email Message to a Process&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1163 "Could not process received email... Message could not be sent... java.lang.NumberFormatException: For input string: "id1234"" error thrown when sending an email to an alias</title><link>https://community.appian.com/support/w/kb/380/kb-1163-could-not-process-received-email-message-could-not-be-sent-java-lang-numberformatexception-for-input-string-id1234-error-thrown-when-sending-an-email-to-an-alias/revision/1</link><pubDate>Tue, 28 Feb 2017 20:12:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:842fcd17-2ac7-4986-8234-373d5dee0050</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/380/kb-1163-could-not-process-received-email-message-could-not-be-sent-java-lang-numberformatexception-for-input-string-id1234-error-thrown-when-sending-an-email-to-an-alias#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 2/28/2017 8:12:25 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Sending an email to an alias fails to trigger the configured process model. The following messages are seen in the application server log&lt;/p&gt;
&lt;pre&gt;[Appian EmailHandlerBean - 0] ERROR com.appiancorp.messaging.MessagePublisherServiceImpl - Could not process received email

INFO  [stdout] (Appian EmailHandlerBean - 0) java.lang.NumberFormatException: For input string: &amp;quot;id1234&amp;quot;
&lt;/pre&gt;
&lt;p&gt;AND&lt;/p&gt;
&lt;pre&gt;[Appian EmailHandlerBean - 0] ERROR com.appiancorp.mdb.EmailHandlerBean - Error receiving message in EmailHandlerBean MDB

INFO  [stdout] (Appian EmailHandlerBean - 0) javax.mail.MessagingException: Message could not be sent;

INFO  [stdout] (Appian EmailHandlerBean - 0)   nested exception is:

10:41:35,044 INFO  [stdout] (Appian EmailHandlerBean - 0)   java.lang.NumberFormatException: For input string: &amp;quot;id1234&amp;quot;
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This happens because of a misconfiguration in the &lt;strong&gt;custom.properties&lt;/strong&gt; file, specifically in the &lt;code&gt;conf.mailhandler.alias&lt;/code&gt; part. The routing prefixes were likely misconfigured, which means the system won&amp;rsquo;t be able to find the right process model to trigger.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;The misconfiguration likely happened in the routing prefix. The value &lt;code&gt;processmodelid1234&lt;/code&gt; was probably used as opposed to &lt;code&gt;processmodel1234&lt;/code&gt; (the latter being the correct value). Thus, the value &lt;code&gt;id1234&lt;/code&gt; becomes the ID that the system looks when it should be looking for &lt;code&gt;1234&lt;/code&gt;. Once this is corrected in the &lt;strong&gt;custom.properties&lt;/strong&gt; file and the site is restarted, you will get around this error.&lt;/p&gt;
&lt;p&gt;A separate recommendation would be to always use &lt;code&gt;processmodeluuid&lt;/code&gt; because this parameter does not change when moving the model through different environments and always remains constant.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html"&gt;Sending an Email Message to a Process&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email&lt;/div&gt;
</description></item></channel></rss>